dfhack/library/lua
AtomicChicken c58ffdb922
Added function to remove syndrome wound data
The presence of syndrome data in unit.syndromes.active generates corresponding wound data in unit.body.wounds. This wound data acts to produce all of the syndrome's actual effects, including but not limited to flag changes, interaction abilities, body transformation and display name alterations. Wound data persists when syndrome data is cleared from unit.syndromes.active. Since syndrome-util did not touch wound data at all, the erase function was completely ineffective at actually removing syndromes.

Note that syndromes also generate a bunch of data in the historical figure information of units. I have observed that this historical data is sufficient to restore the syndrome in a unit following map reload (at least in adventure mode), so its clearance (which needs to also include any corresponding interaction effects) will have to be addressed in a future update. As is, syndrome erasure remains incomplete.
2018-04-20 17:14:03 +02:00
..
dfhack Fixes to gui/advfort.lua 2016-05-20 13:55:59 +03:00
gui Merge ui_area_map_width into ui_menu_width, now a 2-byte array 2017-12-03 20:34:59 -06:00
json Lua: Indent array values 2015-03-22 14:04:03 -04:00
binpatch.lua binpatch.lua: check for empty patches 2018-01-31 09:57:11 -05:00
class.lua Add a script to complement the weapon rack binary patch. 2012-10-27 20:16:27 +04:00
dfhack.lua Add a dfhack.script_help() function to assist scripts 2018-01-25 10:55:00 -05:00
dumper.lua Fix whitespace issues 2015-02-14 22:53:06 -05:00
gui.lua Add map parameter to Lua paintTile() and use in Painter 2017-06-02 12:42:51 -04:00
json.lua json: Improve IO-related error messages 2017-12-25 14:40:06 -05:00
makeown.lua fix of relations errors. 2017-04-24 07:07:08 -05:00
memscan.lua Add CheckedArray:__tostring() method 2016-08-22 23:18:30 -04:00
persist-table.lua persist-table bug. 2014-12-07 07:56:33 -05:00
repeat-util.lua Make repeatUtil.cancel work even when called from the callback. Closes #1122. 2017-07-11 15:10:42 -05:00
syndrome-util.lua Added function to remove syndrome wound data 2018-04-20 17:14:03 +02:00
tile-material.lua Add a Lua module for getting a tile's material (#1031) 2016-12-27 16:49:46 -05:00
utils.lua df_expr_to_ref: support integer array indices 2017-05-07 16:31:30 -04:00