Remove carriage returns in the world

This commit is contained in:
Howard Abrams 2025-02-16 09:32:33 -08:00
parent d1b3f98820
commit f799169bfc

View file

@ -32,26 +32,7 @@ Spectacles perched precariously on the end of his hooked nose, wobble with his h
# Just keep following the red kerchiefs, until... # Just keep following the red kerchiefs, until...
# #+end_example # #+end_example
# To give someone a special _log on_ message the /first time/, I have updated the =Character= [[file:~/src/moss-n-puddles/typeclasses/characters.py::def at_object_creation(self):][creation function]] to give them a letter.
# When starting for the first time, I would like to add …
# #+begin_example
# An envelope of parchment wedged under a scaly protrusion of bark...inside, a letter in familiar penmanship, personally addressed to you...
# If you are reading this, you've found the world I
# was overly excited in relaying to you over drinks in
# Marsivan. Most excellent. Enjoy this halcyon world,
# unspoiled and idyllic.
# I'm here, so join me in a cup of tea and we can
# reconnect and reminisce of glorious days gone by,
# and the utter curiosity that surrounds us.
# Your friend,
# Dabbler
# #+end_example
# As the surrounding mists dissipate, you find yourself in an ancient, halcyon forest dripping with moss.
# Or some help: # Or some help:
@ -440,8 +421,7 @@ Looks good for being out in the weather.
# With a nice message about wandering: # With a nice message about wandering:
# [[file:../../../projects/mud.org::*Forest Path][Forest Path:3]] # [[file:../../../projects/mud.org::*Forest Path][Forest Path:3]]
@set west/traverse_msg = "You meander between mossy tree roots along a @set west/traverse_msg = "You meander between mossy tree roots along a footpath for a while..."
footpath for a while..."
# Forest Path:3 ends here # Forest Path:3 ends here
@ -472,12 +452,96 @@ west
# [[file:../../../projects/mud.org::*Forest Path][Forest Path:7]] # [[file:../../../projects/mud.org::*Forest Path][Forest Path:7]]
@desc here = Moss-covered tree roots border the meandering footpath. A @desc here = Moss-covered tree roots border the meandering footpath. A red door with a round top lies at the base of a giant tree, a carved sign over it reads, Dabblers.
red door with a round top lies at the base of a giant tree, a carved
sign over it reads, Dabblers.
# Forest Path:7 ends here # Forest Path:7 ends here
# The berry bush is a [[file:~/src/moss-n-puddles/typeclasses/consumables.py::class Producer(Object):][producer]] that makes /berries/, which is something to eat and use to feed the wildlife.
# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:1]]
@create/drop berry bush;bush : typeclasses.consumables.Producer
# Berry Bush:1 ends here
# With a description:
# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:2]]
@desc bush = A bush laden with bright red brambleberries. You've heard that they are good.
# Berry Bush:2 ends here
# We have to have the bush describe what it /makes/:
# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:3]]
@set bush/make_name = "berries"
# Berry Bush:3 ends here
# Including some plural aliases:
# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:4]]
@set bush/make_aliases = ["berry", "brambleberry", "brambleberries"]
# Berry Bush:4 ends here
# And a verb when they /get/ the consumable:
# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:5]]
@set bush/make_verb = "pick some"
# Berry Bush:5 ends here
# And the bush needs to know the /description/ of the Consumable, so that it can attach that:
# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:7]]
@set bush/make_desc = "Bright red berry with flecks of [purple|violet|orange]."
# Berry Bush:7 ends here
# How many berries are there when you pick them?
# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:8]]
@set bush/make_amount = 10
# Berry Bush:8 ends here
# How many berries do you eat at a time:
# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:9]]
@set bush/make_eat_amount = 3
# Berry Bush:9 ends here
# We can either have a single /eat/ message:
# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:10]]
@set bush/make_eat_msg = "Sweet and slightly tart. [Delicious|Tangy|Mmmm]."
# Berry Bush:10 ends here
# Or many messages that can be randomly selected:
# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:11]]
@set bush/make_eat_msgs = [ "Sweet and slightly tart.", "[Delicious|Tangy|Mmmm].", "Ooo...that one was sour.", "That was a bit ripe, but still good.", "So sweet with a hint of [orange|maple]." ]
# Berry Bush:11 ends here
# Let the user know when they consumed them all.
# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:12]]
@set bush/make_finish_msg = "Those were [delicious|great]."
# Berry Bush:12 ends here
# The knocker has the ability to make the door “open” using [[https://www.evennia.com/docs/latest/api/evennia.objects.objects.html][on_traverse]] hooks? # The knocker has the ability to make the door “open” using [[https://www.evennia.com/docs/latest/api/evennia.objects.objects.html][on_traverse]] hooks?
# Most of the work of the /knocker/ is in the Python code: # Most of the work of the /knocker/ is in the Python code:
@ -524,8 +588,7 @@ west
# And a description: # And a description:
# [[file:../../../projects/mud.org::*Knocker][Knocker:6]] # [[file:../../../projects/mud.org::*Knocker][Knocker:6]]
@desc ring = A brass ring that should be in the door knocker's mouth. @desc ring = A brass ring that should be in the door knocker's mouth. How else are you going to knock on a door?
How else are you going to knock on a door?
# Knocker:6 ends here # Knocker:6 ends here
@ -583,8 +646,7 @@ How else are you going to knock on a door?
# And an error message if the ring is not with the goblin: # And an error message if the ring is not with the goblin:
# [[file:../../../projects/mud.org::*Knocker][Knocker:13]] # [[file:../../../projects/mud.org::*Knocker][Knocker:13]]
@set here/knock_err_msg = "This door knocker is defective, as it @set here/knock_err_msg = "This door knocker is defective, as it doesn't have a ring to...er, do the knockin'."
doesn't have a ring to...er, do the knockin'."
# Knocker:13 ends here # Knocker:13 ends here
# [[file:../../../projects/mud.org::*Cozy Tea House][Cozy Tea House:1]] # [[file:../../../projects/mud.org::*Cozy Tea House][Cozy Tea House:1]]
@ -595,10 +657,7 @@ doesn't have a ring to...er, do the knockin'."
# The door description should match the artwork on the website: # The door description should match the artwork on the website:
# [[file:../../../projects/mud.org::*Red Door][Red Door:1]] # [[file:../../../projects/mud.org::*Red Door][Red Door:1]]
@desc red door = A painted red door where the round top of the door @desc red door = A painted red door where the round top of the door fits snugly in the bark of the tree. Along with a large brass doorknob, the door sports the most curious door knocker in the shape of a goblin's face.
fits snugly in the bark of the tree. Along with a large brass
doorknob, the door sports the most curious door knocker in the shape
of a goblin's face.
# Red Door:1 ends here # Red Door:1 ends here
@ -658,11 +717,7 @@ doesn't have a ring to...er, do the knockin'."
# And the best description ever: # And the best description ever:
# [[file:../../../projects/mud.org::*Inside][Inside:5]] # [[file:../../../projects/mud.org::*Inside][Inside:5]]
@desc here = An enormous stone hearth overshadows this round room with @desc here = An enormous stone hearth overshadows this round room with dark paneling. A subtle smell of tea and incense. Large, overstuffed chairs sit invitingly by the fireplace. Oddly angled shelves with books and knickknackery adorn the walls while a trolley supports a large kettle, cups and scones.
dark paneling. A subtle smell of tea and incense. Large, overstuffed
chairs sit invitingly by the fireplace. Oddly angled shelves with
books and knickknackery adorn the walls while a trolley supports a
large kettle, cups and scones.
# Inside:5 ends here # Inside:5 ends here
@ -674,26 +729,19 @@ doesn't have a ring to...er, do the knockin'."
@set here/initial_desc = "You found a cozy, cornerless room." @set here/initial_desc = "You found a cozy, cornerless room."
# Ravenous State # Ravenous State
@set here/fire_out = "The room is dim, but you see large, overstuffed chairs placed @set here/fire_out = "The room is dim, but you see large, overstuffed chairs placed by a dark fireplace in a large stone hearth. Perhaps you could light a fire?"
by a dark fireplace in a large stone hearth. Perhaps you could light a fire?"
# Hungry State # Hungry State
@set here/fire_dim = "Large, overstuffed chairs sit invitingly close to the @set here/fire_dim = "Large, overstuffed chairs sit invitingly close to the dimly glowing embers in the fireplace of a stone hearth."
dimly glowing embers in the fireplace of a stone hearth."
# Fed State # Fed State
@set here/fire_on = "Large, overstuffed chairs sit invitingly by a fire casting @set here/fire_on = "Large, overstuffed chairs sit invitingly by a fire casting shadows that dance on the dark paneling."
shadows that dance on the dark paneling."
# Full State # Full State
@set here/fire_full = "Large, overstuffed chairs slightly shield you @set here/fire_full = "Large, overstuffed chairs slightly shield you from the bright light of the roaring fire in the fireplace of a stone hearth."
from the bright light of the roaring fire in the fireplace of a stone hearth."
# And a final description: # And a final description:
@set here/final_desc = "Oddly angled shelves with books and @set here/final_desc = "Oddly angled shelves with books and knickknackery adorn the walls around a tapestry. The subtle smell of wood smoke, incense and tea leads you to a trolley supporting a large teapot, cups and freshly baked scones."
knickknackery adorn the walls around a tapestry. The subtle smell of
wood smoke, incense and tea leads you to a trolley supporting a large
teapot, cups and freshly baked scones."
# Inside:6 ends here # Inside:6 ends here
@ -703,11 +751,7 @@ doesn't have a ring to...er, do the knockin'."
# Lets come up with a lot of descriptions: # Lets come up with a lot of descriptions:
# [[file:../../../projects/mud.org::*Inside][Inside:7]] # [[file:../../../projects/mud.org::*Inside][Inside:7]]
@detail tapestry = The muted colors of the tapestry either show its @detail tapestry = The muted colors of the tapestry either show its age or its location over the sometimes smokey hearth. It shows a gallant stag surrounded by woodland creatures. A racoon holds aloft a gold box while a wolf has a gnarled staff. A raven perched on the stag's antlers grips a blue ball in its beak.
age or its location over the sometimes smokey hearth. It shows a
gallant stag surrounded by woodland creatures. A racoon holds aloft a
gold box while a wolf has a gnarled staff. A raven perched on the
stag's antlers grips a blue ball in its beak.
# Inside:7 ends here # Inside:7 ends here
@ -766,17 +810,14 @@ doesn't have a ring to...er, do the knockin'."
# And a description that will be overridden: # And a description that will be overridden:
# [[file:../../../projects/mud.org::*Fireplace][Fireplace:3]] # [[file:../../../projects/mud.org::*Fireplace][Fireplace:3]]
@desc fireplace = A stone fireplace with a carved wooden mantel supporting @desc fireplace = A stone fireplace with a carved wooden mantel supporting small pictures, some books and a black statue.
small pictures, some books and a black statue.
# Fireplace:3 ends here # Fireplace:3 ends here
# Since we mentioned some details, we better mention them: # Since we mentioned some details, we better mention them:
# [[file:../../../projects/mud.org::*Fireplace][Fireplace:4]] # [[file:../../../projects/mud.org::*Fireplace][Fireplace:4]]
@detail pictures = Two small framed pictures perch above the fireplace @detail pictures = Two small framed pictures perch above the fireplace mantle. One is of a satyr playing a saxophone, and the other is of a fish with a big smile.
mantle. One is of a satyr playing a saxophone, and the other is of a
fish with a big smile.
# Fireplace:4 ends here # Fireplace:4 ends here
@ -784,8 +825,7 @@ doesn't have a ring to...er, do the knockin'."
# This reference in this detail is obviously, only for me: # This reference in this detail is obviously, only for me:
# [[file:../../../projects/mud.org::*Fireplace][Fireplace:5]] # [[file:../../../projects/mud.org::*Fireplace][Fireplace:5]]
@detail statue = A small, black statue of a salamander curled around a @detail statue = A small, black statue of a salamander curled around a book, engraved with a title, "Seeing Stones".
book, engraved with a title, "Seeing Stones".
# Fireplace:5 ends here # Fireplace:5 ends here
@ -793,9 +833,7 @@ doesn't have a ring to...er, do the knockin'."
# I imagine a giant picture over the fireplace … need to do something interesting with it. # I imagine a giant picture over the fireplace … need to do something interesting with it.
# [[file:../../../projects/mud.org::*Fireplace][Fireplace:6]] # [[file:../../../projects/mud.org::*Fireplace][Fireplace:6]]
@detail picture = Above the fireplace is a large, somewhat abstract @detail picture = Above the fireplace is a large, somewhat abstract painting stretching its arm-like branches with shadowing that looks like a yawn.
painting stretching its arm-like branches with shadowing that looks
like a yawn.
# Fireplace:6 ends here # Fireplace:6 ends here
@ -805,9 +843,7 @@ doesn't have a ring to...er, do the knockin'."
# [[file:../../../projects/mud.org::*Knickknacks][Knickknacks:1]] # [[file:../../../projects/mud.org::*Knickknacks][Knickknacks:1]]
@detail knickknacks;things;knick-knacks;doodads;stuff;crap = An odd @detail knickknacks;things;knick-knacks;doodads;stuff;crap = An odd assortment of knickknacks and doodads that decorate the minimal space between the askewed books on the skewampus shelves.
assortment of knickknacks and doodads that decorate the minimal
space between the askewed books on the skewampus shelves.
# Knickknacks:1 ends here # Knickknacks:1 ends here
@ -815,10 +851,7 @@ doesn't have a ring to...er, do the knockin'."
# We mentioned shelves of books: # We mentioned shelves of books:
# [[file:../../../projects/mud.org::*Books][Books:1]] # [[file:../../../projects/mud.org::*Books][Books:1]]
@detail shelves;bookshelf;bookshelves = Shelves at various angles @detail shelves;bookshelf;bookshelves = Shelves at various angles embellish the walls of this small, cozy room. Leatherbound books weigh each shelf, while some stacks of books support other shelves. Dabbler has decorated some shelves with odd trinkets.
embellish the walls of this small, cozy room. Leatherbound books
weigh each shelf, while some stacks of books support other shelves.
Dabbler has decorated some shelves with odd trinkets.
# Books:1 ends here # Books:1 ends here
@ -841,27 +874,106 @@ doesn't have a ring to...er, do the knockin'."
# With a good description: # With a good description:
# [[file:../../../projects/mud.org::*Books][Books:4]] # [[file:../../../projects/mud.org::*Books][Books:4]]
@desc books = Books of different sizes and colors. So many books. @desc books = Books of different sizes and colors. So many books. Perhaps you want to simply |blook|n at a |bbook|n at random?
Perhaps you want to simply |blook|n at a |bbook|n at random?
# Books:4 ends here # Books:4 ends here
# The trolley [[file:~/src/moss-n-puddles/typeclasses/consumables.py::class Producer(Object):][produces]] random scones, which, like the [[Berry Trolley][berries]] can be eaten or fed to the wildlife.
# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:1]]
@create/drop trolley;trolly : typeclasses.consumables.Producer
# Trolley of Scones:1 ends here
# We mentioned a /trolley/ with tea, cups and scones: # We mentioned a /trolley/ with tea, cups and scones:
# [[file:../../../projects/mud.org::*Tea Service][Tea Service:1]] # [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:2]]
@detail trolley = A tea trolley, complete with a small collection of @desc trolley = A tea trolley, complete with a small collection of teacups, a magical teapot, as well as a daily assortment of scones.
teacups, a magical teapot, as well as an assortment of scones and pastries. # Trolley of Scones:2 ends here
# Tea Service:1 ends here
# We have to have the trolley describe the scone it /makes/:
# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:3]]
@set trolley/make_name = "scone"
# Trolley of Scones:3 ends here
# Including an alias:
# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:4]]
@set trolley/make_aliases = ["pastry"]
# Trolley of Scones:4 ends here
# And a verb when they /get/ the consumable:
# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:5]]
@set trolley/make_verb = "take a"
# Trolley of Scones:5 ends here
# Types of scones:
# And the trolley needs to know the /description/ of the Consumable, so that it can attach that:
# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:6]]
@set trolley/make_desc = ""
# Trolley of Scones:6 ends here
# How many berries are there when you pick them?
# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:7]]
@set trolley/make_amount = 10
# Trolley of Scones:7 ends here
# How many berries do you eat at a time:
# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:8]]
@set trolley/make_eat_amount = 3
# Trolley of Scones:8 ends here
# We can either have a single /eat/ message:
# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:9]]
@set trolley/make_eat_msg = "Sweet and slightly tart. [Delicious|Tangy|Mmmm]."
# Trolley of Scones:9 ends here
# Or many messages that can be randomly selected:
# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:10]]
@set trolley/make_eat_msgs = [ "Sweet and slightly tart.", "[Delicious|Tangy|Mmmm].", "Ooo...that one was sour.", "That was a bit ripe, but still good.", "So sweet with a hint of [orange|maple]." ]
# Trolley of Scones:10 ends here
# Let the user know when they consumed them all.
# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:11]]
@set trolley/make_finish_msg = "Those were [delicious|great]."
# Trolley of Scones:11 ends here
# The “room” gives the teacups, and the “teapot” fills the cups, so we just need descriptions: # The “room” gives the teacups, and the “teapot” fills the cups, so we just need descriptions:
# [[file:../../../projects/mud.org::*Tea Service][Tea Service:2]] # [[file:../../../projects/mud.org::*Tea Service][Tea Service:1]]
@detail teacups = An odd, yet interesting assortment of teacups. Take one. @detail teacups = An odd, yet interesting assortment of teacups. Take one.
# #
@detail teacup = Each cup is unique. Take one to look further. @detail teacup = Each cup is unique. Take one to look further.
# Tea Service:2 ends here # Tea Service:1 ends here
@ -869,20 +981,20 @@ doesn't have a ring to...er, do the knockin'."
# A teapot will “fill” a teacup forever, until it is “remade”. # A teapot will “fill” a teacup forever, until it is “remade”.
# [[file:../../../projects/mud.org::*Tea Service][Tea Service:3]] # [[file:../../../projects/mud.org::*Tea Service][Tea Service:2]]
@create/drop teapot;pot;tea pot:typeclasses.drinkables.Teapot @create/drop teapot;pot;tea pot:typeclasses.drinkables.Teapot
# #
@desc teapot = An adorable brown teapot, waiting for you to |bmake|n some tea. @desc teapot = An adorable brown teapot, waiting for you to |bmake|n some tea.
# Tea Service:3 ends here # Tea Service:2 ends here
# And of course, you cant steal the tea pot: # And of course, you cant steal the tea pot:
# [[file:../../../projects/mud.org::*Tea Service][Tea Service:4]] # [[file:../../../projects/mud.org::*Tea Service][Tea Service:3]]
@lock teapot = get:false() @lock teapot = get:false()
# #
@set teapot/get_err_msg = "You don't need to carry it around to make tea." @set teapot/get_err_msg = "You don't need to carry it around to make tea."
# Tea Service:4 ends here # Tea Service:3 ends here
# And [[file:~/src/moss-n-puddles/typeclasses/sittables.py::class Sittables(Sittable):][the chairs]] is a /plural/ location to sit, allowing anyone to sit down. # And [[file:~/src/moss-n-puddles/typeclasses/sittables.py::class Sittables(Sittable):][the chairs]] is a /plural/ location to sit, allowing anyone to sit down.