human theft now reads from xml rules file

This commit is contained in:
2025-08-07 14:10:20 -07:00
parent 248592dbff
commit 8f7f173108
10 changed files with 94 additions and 25 deletions

View File

@@ -47,8 +47,8 @@ def tick():
case 10: # ENCHUMAN
result["items"] = {
# TODO: read ranges from XML rule files
"food": [items.TickItem("food", round(random.uniform(0.0, 20.0), 2), "humans") for i in range(random.randint(0, 3))],
"shinies": [items.TickItem("shinies", round(random.uniform(0.0, 20.0), 2), "humans") for i in range(random.randint(0, 3))]
"food": items.generate_item_list("food", "humans", 0, 2),
"shinies": items.generate_item_list("shinies", "humans", 0, 2)
}
case _:
core.log.warning("undefined tick: {0}".format(result["event_type"]))