human theft now reads from xml rules file
This commit is contained in:
@@ -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"]))
|
||||
|
Reference in New Issue
Block a user