743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
|
end;
canInteract = function(self, with)
return true; -- TODO
end;
trigger = function(self, which, how)
--print('trigger', which, dump(how))
local p
local wld = self.entity:get_wielded_item()
if which == 'maneuver' then
p = self.power.maneuver
elseif which == 'retarget' then
self.action.prog = {}
elseif wld and not wld:is_empty() then
|
|
743
744
745
746
747
748
749
750
751
752
753
754
755
756
|
end;
canInteract = function(self, with)
return true; -- TODO
end;
trigger = function(self, which, how)
local p
local wld = self.entity:get_wielded_item()
if which == 'maneuver' then
p = self.power.maneuver
elseif which == 'retarget' then
self.action.prog = {}
elseif wld and not wld:is_empty() then
|