Skip to content

Commit ba745cc

Browse files
committed
feat: show "locked" options instead of fully hiding them
1 parent 972380d commit ba745cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bot/exts/fun/adventure.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,10 @@ def _format_room_data(self, room_data: RoomData) -> str:
275275
text = room_data["text"]
276276

277277
formatted_options = "\n".join(
278-
f"{option["emoji"]} {option["text"]}" for option in self.available_options
278+
f"{option["emoji"]} {option["text"]}"
279+
if option in self.available_options
280+
else "🔒 ***This option is locked***"
281+
for option in self.all_options
279282
)
280283

281284
return f"{text}\n\n{formatted_options}"

0 commit comments

Comments
 (0)