Fix the guest account to get the tutorial
This commit is contained in:
parent
92f7ef565b
commit
250a57827b
1 changed files with 9 additions and 5 deletions
|
|
@ -106,15 +106,13 @@ class Character(Object, GenderCharacter, ContribRPCharacter):
|
|||
What if there is a bug and they are able to "get" something
|
||||
important, instead of berries?
|
||||
"""
|
||||
self.new_account_setup()
|
||||
self.db.jumped_times = 0
|
||||
|
||||
# Remove all the tags that let them
|
||||
# Remove all the `hidden` tags, which resets all previously
|
||||
# seen objects:
|
||||
for tag in self.tags.all():
|
||||
if tag.startswith("hidden_"):
|
||||
self.tags.remove(tag)
|
||||
|
||||
# Remove everything in their inventory
|
||||
# Remove everything in their inventory...including letter/ticket
|
||||
for obj in self.contents:
|
||||
logger.warning(f"Guest account: deleting {obj.name}")
|
||||
obj.delete()
|
||||
|
|
@ -125,6 +123,12 @@ class Character(Object, GenderCharacter, ContribRPCharacter):
|
|||
grove = grove[0]
|
||||
self.move_to(grove, quiet=True, use_destination=True)
|
||||
|
||||
# Start the tutorial:
|
||||
self.db.jumped_times = 0
|
||||
self.db.tutorstate = 0
|
||||
TutorBird.do_start_tutorial(self)
|
||||
self.msg(INTRO)
|
||||
|
||||
def after_bar_setup(self):
|
||||
"""
|
||||
Users should not return to the bar.
|
||||
|
|
|
|||
Loading…
Reference in a new issue