full early game polished up, flavor text now properly capitalizes names

This commit is contained in:
2025-08-07 15:37:23 -07:00
parent 8f7f173108
commit 5c3d34aafa
7 changed files with 175 additions and 13 deletions

View File

@@ -24,6 +24,7 @@ tick_event_list = []
tick_event_list.append(TickEvent(0, 16, "XYZZY")) # nothing happens
tick_event_list.append(TickEvent(1, 1, "FLAVOR")) # procedurally generated event of no consequence
tick_event_list.append(TickEvent(10, 2, "ENCHUMAN")) # encounter: human
tick_event_list.append(TickEvent(11, 2, "ENCGULL"))
@core.app.route("/tick")
def tick():
@@ -50,6 +51,13 @@ def tick():
"food": items.generate_item_list("food", "humans", 0, 2),
"shinies": items.generate_item_list("shinies", "humans", 0, 2)
}
case 11: # ENCGULL
result["items"] = {
# TODO: read ranges from XML rule files
"food": items.generate_item_list("food", "seagulls", 0, 2),
"shinies": items.generate_item_list("shinies", "seagulls", 0, 2)
}
result["recruit_cost"] = round(random.uniform(0, 10), 2)
case _:
core.log.warning("undefined tick: {0}".format(result["event_type"]))