mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 23:47:16 +02:00
Added a give command to the default command set. As part of this also fixed some bugs in how object typeclasses were compared.
This commit is contained in:
parent
949da47917
commit
c615693a2a
8 changed files with 53 additions and 21 deletions
|
|
@ -673,15 +673,16 @@ hole
|
|||
# light source.
|
||||
#
|
||||
@desc
|
||||
{YThe {yflickering light{Y of the torch reveals a small square
|
||||
{YThe {yflickering light{Y of your makeshift light reveals a small square
|
||||
cell. It does not seem like you are still in the castle, for the
|
||||
stone of the walls are chiseled crudely and drip with water and mold.
|
||||
|
||||
One wall holds a solid iron-cast door. While rusted and covered with
|
||||
lichen it seems very sturdy. In a corner lies what might have once
|
||||
been a bed or a bench but is now nothing more than a pile or rotting
|
||||
splinters. One of the walls are covered with a thick cover of black
|
||||
roots where they have broken through the cracks.{n
|
||||
been a bed or a bench but is now nothing more than a pile of splinters,
|
||||
one of which you are using for light. One of the walls is covered with a
|
||||
thick cover of black roots having broken through the cracks from the
|
||||
outside.{n
|
||||
#
|
||||
@create/drop iron-cast door;iron;door;iron-cast
|
||||
#
|
||||
|
|
|
|||
|
|
@ -180,9 +180,9 @@ class CmdLookDark(Command):
|
|||
lightsource = lightsources[0]
|
||||
else:
|
||||
# create the light source from scratch.
|
||||
lightsource = create_object(LightSource, key="torch")
|
||||
lightsource = create_object(LightSource, key="splinter")
|
||||
lightsource.location = caller
|
||||
string = "Your fingers bump against a piece of wood in a corner. Smelling it you sense the faint smell of tar. A {c%s{n!"
|
||||
string = "Your fingers bump against a splinter of wood in a corner. It smells of resin and seems dry enough to burn!"
|
||||
string += "\nYou pick it up, holding it firmly. Now you just need to {wlight{n it using the flint and steel you carry with you."
|
||||
caller.msg(string % lightsource.key)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue