T-Engine

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)

Tasklist |

FS#207 - Automatizer: equipment and inventory flags cannot be added correctly in-game

Attached to Project: T-Engine
Opened by Sebastian (morchant) - Monday, 03 May 2010, 05:59 GMT-7
Task Type Bug Report
Category T-Engine
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version alpha19
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Currently one can add subflags only to the <and></and>, <or></or>, <not></not> flags.
and <equipment></equipment> flags should work like the <not></not> flag.

probably a rather minor problem in tome3 but easy to fix. I attached a patch.

This task depends upon

Comment by Sebastian (morchant) - Monday, 03 May 2010, 06:02 GMT-7

apparently the upload did not work at first. next try.

Comment by Sebastian (morchant) - Monday, 03 May 2010, 06:03 GMT-7

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]()

Loading...