Fix minor bugs
This commit is contained in:
parent
9119b4aaa1
commit
656bf2f9f5
3 changed files with 6 additions and 2 deletions
|
|
@ -52,7 +52,10 @@ class CmdHint(MuxCommand):
|
||||||
|
|
||||||
data = self.hint_data()
|
data = self.hint_data()
|
||||||
if 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')
|
narrative = room_hints.get('narrative')
|
||||||
hints = room_hints['hints']
|
hints = room_hints['hints']
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -129,6 +129,7 @@ class Character(Object, GenderCharacter, ContribRPCharacter):
|
||||||
self.db.jumped_times = 0
|
self.db.jumped_times = 0
|
||||||
self.db.tutorstate = 0
|
self.db.tutorstate = 0
|
||||||
self.db.thrown_times = 0
|
self.db.thrown_times = 0
|
||||||
|
self.db.knocker_conversation_state = None
|
||||||
TutorBird.do_start_tutorial(self)
|
TutorBird.do_start_tutorial(self)
|
||||||
self.msg(INTRO)
|
self.msg(INTRO)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -163,7 +163,7 @@ class Container(Object):
|
||||||
|
|
||||||
The containers description will match the contents.
|
The containers description will match the contents.
|
||||||
"""
|
"""
|
||||||
if self.db.amount > 0:
|
if (self.db.amount or 0) > 0:
|
||||||
already_full = True
|
already_full = True
|
||||||
else:
|
else:
|
||||||
already_full = False
|
already_full = False
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue