Skip to content

Commit 93a8c9a

Browse files
committed
Allow junction potential to count as an item sink in Content Manager warnings
1 parent ef76fd1 commit 93a8c9a

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

modules/contentManager/data_io.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,18 @@ def get_warnings(self):
202202

203203
# 2. Items with no sink
204204
for item_name in produced_items:
205-
if item_name not in consumed_items and item_name in items and items[item_name]["ItemType"] not in ["Currency", "KeyItem", "Consumable"]:
206-
warnings.append({ "type": "Item", "name": item_name, "msg": "Has source but no sink (nothing to spend it on)." })
205+
# An item has a sink if:
206+
# - It's consumed by something (quest, refinement, cadence)
207+
# - It's a special type (Currency, KeyItem, Consumable)
208+
# - It can be JUNCTIONED (has augments)
209+
has_sink = (
210+
item_name in consumed_items or
211+
(item_name in items and items[item_name]["ItemType"] in ["Currency", "KeyItem", "Consumable"]) or
212+
(item_name in items and len(items[item_name].get("Augments", [])) > 0)
213+
)
214+
215+
if not has_sink:
216+
warnings.append({ "type": "Item", "name": item_name, "msg": "Has source but no sink (nothing to spend it on and cannot be junctioned)." })
207217

208218
# 3. Useless recurring quests
209219
for q in quests:

0 commit comments

Comments
 (0)