local CONST = require 'config.const'
|
local Suspicion = require 'systems.suspicion'
|
local Base = require 'profession.base'
|
|
Base.register('phantom', function(unit, ability)
|
unit:add_state(CONST.STATE_INVISIBLE)
|
unit:set_transparent_when_invisible(false)
|
unit:set_move_collision(1, false)
|
|
unit:add_attr('移动速度', 1.5, '增益')
|
|
clicli.timer.wait(4.0, function()
|
unit:remove_state(CONST.STATE_INVISIBLE)
|
unit:set_move_collision(1, true)
|
unit:add_attr('移动速度', -1.5, '增益')
|
end)
|
|
Suspicion.add(unit, 20)
|
end)
|
|
return Base
|