Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -228,8 +228,8 @@ async def websocket_handler(websocket, path):
|
|
228 |
if action == "ANIMAL":
|
229 |
st.session_state.prairie_players[client_id]["animal"] = value
|
230 |
elif action == "MOVE":
|
231 |
-
target = PRAIRIE_LOCATIONS.get(value, PRAIRIE_LOCATIONS["Deadwood, SD"])
|
232 |
-
|
233 |
action_msg = f"{username} ({st.session_state.prairie_players[client_id]['animal']}) moves to {value}"
|
234 |
await save_chat_entry(username, action_msg, voice)
|
235 |
else:
|
|
|
228 |
if action == "ANIMAL":
|
229 |
st.session_state.prairie_players[client_id]["animal"] = value
|
230 |
elif action == "MOVE":
|
231 |
+
target = PRAIRIE_LOCATIONS.get(value, PRAIRIE_LOCATIONS["Deadwood, SD"]).ADDRESS
|
232 |
+
st.session_state.prairie_players[client_id]["location"] = target
|
233 |
action_msg = f"{username} ({st.session_state.prairie_players[client_id]['animal']}) moves to {value}"
|
234 |
await save_chat_entry(username, action_msg, voice)
|
235 |
else:
|