Fix formatting errors

This commit is contained in:
Howard Abrams 2025-04-16 21:05:13 -07:00
parent 7e28dc3a7c
commit 6e75f9f23a
3 changed files with 32 additions and 4 deletions

View file

@ -121,7 +121,7 @@ class Producer(Object):
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
TEACUP_DESCS = [ TEACUP_DESCS = [
"A rustic, clay teacup carefully crafted on a wheel. Beautiful [dark red ^ olive green ^ navy blue}} glaze.", "A rustic, clay teacup carefully crafted on a wheel. Beautiful {{dark red ^ olive green ^ navy blue}} glaze.",
"A fine example of Royal Albert teacup, sporting a design of violet azaleas. Perfect for a black tea.", "A fine example of Royal Albert teacup, sporting a design of violet azaleas. Perfect for a black tea.",
"A Wings of Grace style teacup with blue butterflies. Perfect for some Earl Grey.", "A Wings of Grace style teacup with blue butterflies. Perfect for some Earl Grey.",
"A dark brown Yixing clay teacup. Perfect for an Oolong tea.", "A dark brown Yixing clay teacup. Perfect for an Oolong tea.",
@ -178,6 +178,7 @@ class Trolley(Producer):
teacup_prototype = { teacup_prototype = {
"typeclass": "typeclasses.drinkables.TeaCup", "typeclass": "typeclasses.drinkables.TeaCup",
"key": "teacup", "key": "teacup",
"aliases": "cup",
"desc": "A nice teacup.", "desc": "A nice teacup.",
} }

View file

@ -104,6 +104,13 @@ class Teapot(Object):
self.location.msg_contents(f"{drinker.name} makes a pot of tea.", exclude=drinker) self.location.msg_contents(f"{drinker.name} makes a pot of tea.", exclude=drinker)
def do_fill(self, drinker): def do_fill(self, drinker):
teatype = self.db.tea_type
if not teatype:
drinker.msg("You need to |gmake tea|n first.")
return
teacup = drinker.has("teacup") teacup = drinker.has("teacup")
if teacup: if teacup:
teacup.do_fill(drinker, self.db.tea_type, TEA_TYPES[self.db.tea_type]) teacup.do_fill(drinker, teatype, TEA_TYPES[teatype])
else:
drinker.msg("You need to |gget teacup|n first.")

View file

@ -45,14 +45,34 @@ Spectacles perched precariously on the end of his hooked nose, wobble with his h
# And his spells: # And his special teacup:
# [[file:../../../Dropbox/org/projects/mud.org::*Character: Dabble][Character: Dabble:5]]
@create teacup;cup : typeclasses.drinkables.TeaCup
#
@desc teacup = A rustic teacup crafted from clay etched with leaves and runes, with an olive green and brown glaze.
# Character: Dabble:5 ends here
# Lets make him a wizard:
# [[file:../../../Dropbox/org/projects/mud.org::*Character: Dabble][Character: Dabble:6]] # [[file:../../../Dropbox/org/projects/mud.org::*Character: Dabble][Character: Dabble:6]]
@update self = typeclasses.characters.Wizard
# Character: Dabble:6 ends here
# And his spells:
# [[file:../../../Dropbox/org/projects/mud.org::*Character: Dabble][Character: Dabble:7]]
@set self/disappear_msg = "After a raspberry sound, the gnome, Dabbler, disappears in a wisp of smoke." @set self/disappear_msg = "After a raspberry sound, the gnome, Dabbler, disappears in a wisp of smoke."
# #
@set self/reappear_msg = "{{White ^ Light blue ^ Gray}} mist appears...along with the smell of sulphur... ;; When the smoke clears, an old gnome {{emerges ^ materializes ^ shows up, looking a bit confused}}." @set self/reappear_msg = "{{White ^ Light blue ^ Gray}} mist appears...along with the smell of sulphur... ;; When the smoke clears, an old gnome {{emerges ^ materializes ^ shows up, looking a bit confused}}."
# Character: Dabble:6 ends here # Character: Dabble:7 ends here
# Rename the Limbo (or starting place) with the name *Forest*. Note the term =mp01= as a global label that matches my map. # Rename the Limbo (or starting place) with the name *Forest*. Note the term =mp01= as a global label that matches my map.