Zillion: more rooms added to map_gen option (#3634)

This commit is contained in:
Doug Hoskisson
2024-07-10 23:11:47 -07:00
committed by GitHub
parent 8c86139066
commit 1e3a4b6db5
3 changed files with 13 additions and 1 deletions

View File

@@ -347,6 +347,11 @@ class ZillionContext(CommonContext):
"operations": [{"operation": "replace", "value": doors_b64}]
}
async_start(self.send_msgs([payload]))
elif isinstance(event_from_game, events.MapEventFromGame):
row = event_from_game.map_index // 8
col = event_from_game.map_index % 8
room_name = f"({chr(row + 64)}-{col + 1})"
logger.info(f"You are at {room_name}")
else:
logger.warning(f"WARNING: unhandled event from game {event_from_game}")