|
|
@ -198,6 +198,8 @@ end
|
|
|
|
|
|
|
|
|
|
|
|
scriptArgs={...}
|
|
|
|
scriptArgs={...}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
utils=require('utils')
|
|
|
|
|
|
|
|
|
|
|
|
validArgs = validArgs or utils.invert({
|
|
|
|
validArgs = validArgs or utils.invert({
|
|
|
|
'startup',
|
|
|
|
'startup',
|
|
|
|
'all',
|
|
|
|
'all',
|
|
|
@ -206,8 +208,6 @@ validArgs = validArgs or utils.invert({
|
|
|
|
'multi'
|
|
|
|
'multi'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
utils=require('utils')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
args = utils.processArgs({...}, validArgs)
|
|
|
|
args = utils.processArgs({...}, validArgs)
|
|
|
|
|
|
|
|
|
|
|
|
eventful=require('plugins.eventful')
|
|
|
|
eventful=require('plugins.eventful')
|
|
|
@ -220,4 +220,4 @@ else
|
|
|
|
if not reaction.code:find('DFHACK_WISH') then return nil end
|
|
|
|
if not reaction.code:find('DFHACK_WISH') then return nil end
|
|
|
|
hackWish(unit)
|
|
|
|
hackWish(unit)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|