From 1d07aebdae212055e13656d37291776aac637d9b Mon Sep 17 00:00:00 2001 From: expwnent Date: Sat, 28 Jun 2014 03:01:05 -0400 Subject: [PATCH] Added example for repeatedly running lua fixes to dfhack.init-example. --- dfhack.init-example | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dfhack.init-example b/dfhack.init-example index f23aad233..52e6596ea 100644 --- a/dfhack.init-example +++ b/dfhack.init-example @@ -208,6 +208,12 @@ log-region # patch the material objects in memory to fix cloth stockpiles fix/cloth-stockpile enable +# civs don't bring blood +#:lua dfhack.onStateChange.onLoadBloodDel = function(state) if state == SC_WORLD_LOADED then dfhack.run_command('repeat -time 1 months -command fix/blooddel) end end + +# run growth bug regularly +#:lua dfhack.onStateChange.onLoadGrowthBug = function(state) if state == SC_WORLD_LOADED then dfhack.run_command('repeat -time 1 months -command fix/growthbug) end end + ####################################################### # Apply binary patches at runtime # #######################################################