Closed susanw1 closed 5 days ago
Rewrote the find_player_logistic_requests function to accommodate new logistic rules.
Allegedly, logistic requests can only ever relate to a single "quality", so we don't need to cope with "quality > Rare" etc. Defer "quality" to another task. Added FIXMEs wherever it looked appropriate.
And, game.item_prototypes[item_name]
has become prototypes.item[item_name]
.
And, item.subgroup.name == "intermediate-product" or item.subgroup.name == "raw-material"
has become: item.group.name == "intermediate-products" or item.subgroup.name == "raw-resource"
(was that ever right? )
(Update: ah, the copper wire was item.group.name == "intermediate-products", item.subgroup.name == "intermediate-product" )
Error trace:
Ouch - whole thing is new: we have multiple LuaLogisticPoints with multiple Sections.