diff --git a/commands/default_cmdsets.py b/commands/default_cmdsets.py index 9701c10..5e36598 100644 --- a/commands/default_cmdsets.py +++ b/commands/default_cmdsets.py @@ -22,8 +22,9 @@ from evennia.contrib.rpg.character_creator.character_creator import ContribCharg from commands.sittables import CmdNoSitStand from commands.everyone import (CmdTake, CmdThink, CmdSay, CmdWhisper, CmdRead, CmdEat, CmdDrink, - CmdUse, CmdPush, CmdPull, CmdTutorial) + CmdUse, CmdPush, CmdPull) from commands.misc import CmdLight +from typeclasses.tutorial import CmdTutorial from commands.wizards import CmdGM, CmdSpell, CmdGMTrigger, CmdMakeCocktail diff --git a/commands/everyone.py b/commands/everyone.py index 885d687..e4539d9 100755 --- a/commands/everyone.py +++ b/commands/everyone.py @@ -39,16 +39,6 @@ def speech_effect(speech, verb, target, effects): return (speech, speech, verb) -class CmdTutorial(Command): - """ - Start (or restart) the tutorial. - """ - key = "tutorial" - - def func(self): - TutorBird.do_start_tutorial(self.caller) - - class CmdUse(MuxCommand): """ Use an item. diff --git a/typeclasses/rooms.py b/typeclasses/rooms.py index 089145c..40d1759 100644 --- a/typeclasses/rooms.py +++ b/typeclasses/rooms.py @@ -31,9 +31,10 @@ def articlize_character(character, capitalize=False): else: article = "a" - if character == "" or match(r"^\|[bm][A-Z]", character): + logger.info(f"rooms: articlize_character({character})") + if character == "" or match(r"^\|[A-z][A-Z]", character): return character - elif match(r"^\|[bm][aeiou]", character): + elif match(r"^\|[A-z][aeiou]", character): return f"{article}n " + character else: return f"{article} " + character diff --git a/typeclasses/tutorial.py b/typeclasses/tutorial.py index 468bfb0..c537c4a 100755 --- a/typeclasses/tutorial.py +++ b/typeclasses/tutorial.py @@ -80,11 +80,41 @@ class TutorialState(Enum): SAY = 8 +class CmdTutorial(Command): + """ + Start (or restart) the tutorial. + + Usage: + + |gtutorial|n + + The |wtutorial bird|n, Bubba Joe Washington III, will re-join + you to show you the ropes of this game. Type: + + |gshoo|n + + To stop the tutorial. + """ + key = "tutorial" + + def func(self): + TutorBird.do_start_tutorial(self.caller) + + class CmdShoo(Command): """ End the tutorial by shooing the bird away. + + Usage: + + |gshoo|n + + Restart the tutorial, and bring back Bubba, using the command: + + |gtutorial|n """ key = "shoo" + locks = "holds()" def func(self): self.obj.do_end_tutorial(self.caller)