From 656bf2f9f5aa62857135f29977010a50d81c7303 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Mon, 4 Aug 2025 23:00:11 -0700 Subject: [PATCH] Fix minor bugs --- commands/hint.py | 5 ++++- typeclasses/characters.py | 1 + typeclasses/drinkables.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/commands/hint.py b/commands/hint.py index 6092a93..2fc3dea 100755 --- a/commands/hint.py +++ b/commands/hint.py @@ -52,7 +52,10 @@ class CmdHint(MuxCommand): data = self.hint_data() if data: - room_hints = data[room_key] + room_hints = data.get(room_key) + if not room_hints: + return "<< Sorry, the hint system for this area has not been created, yet. >>" + narrative = room_hints.get('narrative') hints = room_hints['hints'] diff --git a/typeclasses/characters.py b/typeclasses/characters.py index 38beae3..791f0a2 100644 --- a/typeclasses/characters.py +++ b/typeclasses/characters.py @@ -129,6 +129,7 @@ class Character(Object, GenderCharacter, ContribRPCharacter): self.db.jumped_times = 0 self.db.tutorstate = 0 self.db.thrown_times = 0 + self.db.knocker_conversation_state = None TutorBird.do_start_tutorial(self) self.msg(INTRO) diff --git a/typeclasses/drinkables.py b/typeclasses/drinkables.py index c744939..b26e720 100755 --- a/typeclasses/drinkables.py +++ b/typeclasses/drinkables.py @@ -163,7 +163,7 @@ class Container(Object): The containers description will match the contents. """ - if self.db.amount > 0: + if (self.db.amount or 0) > 0: already_full = True else: already_full = False