Welcome to the t-engine Bug Tracker
Please note that this is a tracker for ToME 3 issues. Please list any ToME 2 issues on the ToME wiki.
For information on the wiki format used for the tickets and comments, see the Dokuwiki Syntax Reference.
Thanks,
Eric (sdltome-at-gmail:dot:com)
FS#207 - Automatizer: equipment and inventory flags cannot be added correctly in-game
|
Details
Currently one can add subflags only to the <and></and>, <or></or>, <not></not> flags. probably a rather minor problem in tome3 but easy to fix. I attached a patch. |
This task depends upon
auto.lua.patch
apparently the upload did not work at first. next try.
ok I just post it here:
— auto.lua_old 2010-05-03 14:54:04.481464868 +0200
+++ auto.lua 2010-05-03 14:53:49.641389649 +0200
@@ -1238,9 +1238,11 @@ function auto_aux:add_child(sel) – <rule> and <not> contain only one match if (auto_aux.rule.label == "rule" or auto_aux.rule.label == "not") and auto_aux.rule[1] then return end
+ if (auto_aux.rule.label == "rule" or auto_aux.rule.label == "equipment") and auto_aux.rule[1] then return end
+ if (auto_aux.rule.label == "rule" or auto_aux.rule.label == "inventory") and auto_aux.rule[1] then return end – Only <and> and <or> can contain
- if auto_aux.rule.label ~= "rule" and auto_aux.rule.label ~= "and" and auto_aux.rule.label ~= "or" and auto_aux.rule.label ~= "not" then return end
+ if auto_aux.rule.label ~= "rule" and auto_aux.rule.label ~= "and" and auto_aux.rule.label ~= "or" and auto_aux.rule.label ~= "not" and auto_aux.rule.label ~= "equipment" and auto_aux.rule.label ~= "inventory" then return end – get it local r = auto_aux.types_desc[sel][3]()