From 0df2d71506b78d367dc31da8867fbd33d9fd6b9a Mon Sep 17 00:00:00 2001 From: expwnent Date: Sat, 4 Oct 2014 21:52:28 -0400 Subject: [PATCH 1/2] Fix repeat.lua documentation. --- scripts/repeat.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/repeat.lua b/scripts/repeat.lua index fe9afb026..0c08d8fa8 100644 --- a/scripts/repeat.lua +++ b/scripts/repeat.lua @@ -24,13 +24,13 @@ if args.help then print this help message repeat -cancel bob cancels the repetition with the name bob - repeat -name jim -time delay -timeUnits units -printResult true -command printArgs 3 1 2 + repeat -name jim -time delay -timeUnits units -printResult true -command [ printArgs 3 1 2 ] -name sets the name for the purposes of cancelling and making sure you don't schedule the same repeating event twice if not specified, it's set to the first argument after -command -time delay -timeUnits units delay is some positive integer units is some valid time unit for dfhack.timeout(delay,timeUnits,function) - -command ... + -command [ ... ] specify the command to be run ]]) return From 0471294b1e053139212fa4202956b8d7c7a6940a Mon Sep 17 00:00:00 2001 From: expwnent Date: Sat, 4 Oct 2014 21:54:07 -0400 Subject: [PATCH 2/2] Fix syndrome-util. --- library/lua/syndrome-util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/lua/syndrome-util.lua b/library/lua/syndrome-util.lua index 90e699de7..083c90371 100644 --- a/library/lua/syndrome-util.lua +++ b/library/lua/syndrome-util.lua @@ -119,7 +119,7 @@ function isValidTarget(unit,syndrome) end for caste,creature in ipairs(syndrome.syn_affected_creature) do local affectedCreature = creature.value - local affectedCaste = syndrome.syn_affectedCaste[caste].value + local affectedCaste = syndrome.syn_affected_caste[caste].value if affectedCreature == unitRaceName and (affectedCaste == unitCasteName or affectedCaste == "ALL") then affected = true end