Fix the guest account to get the tutorial

This commit is contained in:
Howard Abrams 2025-08-01 23:03:45 -07:00
parent 92f7ef565b
commit 250a57827b

View file

@ -106,15 +106,13 @@ class Character(Object, GenderCharacter, ContribRPCharacter):
What if there is a bug and they are able to "get" something What if there is a bug and they are able to "get" something
important, instead of berries? important, instead of berries?
""" """
self.new_account_setup() # Remove all the `hidden` tags, which resets all previously
self.db.jumped_times = 0 # seen objects:
# Remove all the tags that let them
for tag in self.tags.all(): for tag in self.tags.all():
if tag.startswith("hidden_"): if tag.startswith("hidden_"):
self.tags.remove(tag) self.tags.remove(tag)
# Remove everything in their inventory # Remove everything in their inventory...including letter/ticket
for obj in self.contents: for obj in self.contents:
logger.warning(f"Guest account: deleting {obj.name}") logger.warning(f"Guest account: deleting {obj.name}")
obj.delete() obj.delete()
@ -125,6 +123,12 @@ class Character(Object, GenderCharacter, ContribRPCharacter):
grove = grove[0] grove = grove[0]
self.move_to(grove, quiet=True, use_destination=True) 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): def after_bar_setup(self):
""" """
Users should not return to the bar. Users should not return to the bar.