Big books have insides starting with file:
This commit is contained in:
parent
b89ca629ee
commit
53219070a3
2 changed files with 28 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ from commands.command import Command
|
||||||
from evennia.commands.default.general import CmdGet, NumberedTargetCommand
|
from evennia.commands.default.general import CmdGet, NumberedTargetCommand
|
||||||
from evennia.commands.default.muxcommand import MuxCommand
|
from evennia.commands.default.muxcommand import MuxCommand
|
||||||
from evennia.contrib.rpg.rpsystem import send_emote
|
from evennia.contrib.rpg.rpsystem import send_emote
|
||||||
from evennia.utils import iter_to_str, logger
|
from evennia.utils import evmore, iter_to_str, logger
|
||||||
|
|
||||||
from typeclasses.characters import Character
|
from typeclasses.characters import Character
|
||||||
from typeclasses.tutorial import TutorBird, TutorialState
|
from typeclasses.tutorial import TutorBird, TutorialState
|
||||||
|
|
@ -478,7 +478,13 @@ class CmdRead(Command):
|
||||||
|
|
||||||
book = self.find_readable(self.caller, target_str)
|
book = self.find_readable(self.caller, target_str)
|
||||||
if book:
|
if book:
|
||||||
self.caller.msg(book.db.inside)
|
contents = book.db.inside
|
||||||
|
if contents.startswith("file:"):
|
||||||
|
filename = contents[5:]
|
||||||
|
with open(filename, "r") as myfile:
|
||||||
|
evmore.msg(self.caller, myfile.read())
|
||||||
|
else:
|
||||||
|
self.caller.msg(contents)
|
||||||
|
|
||||||
|
|
||||||
class CmdTake(CmdGet, NumberedTargetCommand):
|
class CmdTake(CmdGet, NumberedTargetCommand):
|
||||||
|
|
|
||||||
20
world/alchemy-book.md
Normal file
20
world/alchemy-book.md
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
Covered in herbs, mushrooms and moss, this land invites me to produce potions. To work such craft, one must have the proper equipment, which I imported from Twilight Spire outside Mistwood. Most experiments have been successful, and I record them here.
|
||||||
|
|
||||||
|
|BEver Laughter|n
|
||||||
|
|
||||||
|
While saccharine, this potion induces a state of euphoria finding everything, including one's own thoughts, hilarious.
|
||||||
|
|
||||||
|
|wIngredients|n
|
||||||
|
|
||||||
|
- 2 Gigglecap mushrooms
|
||||||
|
- 4 Brambleberries
|
||||||
|
- 1 bottle of bubblefizz water
|
||||||
|
|
||||||
|
Step 1, |gcrush|n the brambleberries into a paste
|
||||||
|
Step 2. |gadd|n all ingredients to the caldron
|
||||||
|
Step 3. |gmix|n under a low heat
|
||||||
|
Step 4. |gbottle|n the concoction into a vial
|
||||||
|
|
||||||
|
...interestingly, the rest of the book is blank...
|
||||||
|
|
||||||
|
|bNote: This is still a work in progress... What do you think of this idea? You would gather herbs and whatnot, put them in the cauldron and then make potions! Seems intriguing...|n
|
||||||
Loading…
Reference in a new issue