reaction-trigger-transition.lua should work now.

develop
expwnent 2014-11-15 00:06:10 -05:00
parent 59ef4e0cc2
commit ba8b964f8d
2 changed files with 3 additions and 1 deletions

@ -5,6 +5,8 @@ DFHack Future
lua/persist-table.lua: a convenient way of using persistent tables of arbitrary structure and dimension in Lua lua/persist-table.lua: a convenient way of using persistent tables of arbitrary structure and dimension in Lua
Fixes: Fixes:
full-heal: Updated with proper argument handling. full-heal: Updated with proper argument handling.
scripts/modtools/reaction-trigger-transition.lua
should produce the correct syntax now
New scripts: New scripts:
scripts/ scripts/
adaptation.rb adaptation.rb

@ -101,7 +101,7 @@ for _,reaction in ipairs(df.global.world.raws.reactions) do
reactionTriggerStr = reactionTriggerStr .. ' -syndrome ' .. maybeQuote(syndrome.syn_name) .. '' reactionTriggerStr = reactionTriggerStr .. ' -syndrome ' .. maybeQuote(syndrome.syn_name) .. ''
end end
if command and commandStr then if command and commandStr then
reactionTriggerStr = reactionTriggerStr .. ' -command ' .. command reactionTriggerStr = reactionTriggerStr .. ' -command [ ' .. command .. ']'
end end
if (not command or command == '') and (not syndrome.syn_name or syndrome.syn_name == '') then if (not command or command == '') and (not syndrome.syn_name or syndrome.syn_name == '') then
--output = output .. '#' --output = output .. '#'