Added some fixes to tutorial world.

This commit is contained in:
Griatch 2012-02-29 19:29:56 +01:00
parent a12f7b9c32
commit 7e146eae11
3 changed files with 7 additions and 4 deletions

View file

@ -681,7 +681,7 @@ hole
lichen it seems very sturdy. In a corner lies what might have once 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 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 splinters. One of the walls are covered with a thick cover of black
roots where they has broken through the cracks.{n roots where they have broken through the cracks.{n
# #
@create/drop iron-cast door;iron;door;iron-cast @create/drop iron-cast door;iron;door;iron-cast
# #

View file

@ -336,7 +336,7 @@ class LightSource(TutorialObject):
super(LightSource, self).at_object_creation() super(LightSource, self).at_object_creation()
self.db.tutorial_info = "This object can be turned on off and has a timed script controlling it." self.db.tutorial_info = "This object can be turned on off and has a timed script controlling it."
self.db.is_active = False self.db.is_active = False
self.db.burntime = 60 # 1 minute self.db.burntime = 60*3 # 3 minutes
self.db.desc = "A splinter of wood with remnants of resin on it, enough for burning." self.db.desc = "A splinter of wood with remnants of resin on it, enough for burning."
# add commands # add commands
self.cmdset.add_default(CmdSetLightSource, permanent=True) self.cmdset.add_default(CmdSetLightSource, permanent=True)

View file

@ -206,7 +206,7 @@ class CmdDarkHelp(Command):
# the nomatch system command will give a suitable error when we cannot find the normal commands. # the nomatch system command will give a suitable error when we cannot find the normal commands.
from src.commands.default.syscommands import CMD_NOMATCH from src.commands.default.syscommands import CMD_NOMATCH
from src.commands.default.general import CmdSay
class CmdDarkNoMatch(Command): class CmdDarkNoMatch(Command):
"This is called when there is no match" "This is called when there is no match"
key = CMD_NOMATCH key = CMD_NOMATCH
@ -225,7 +225,7 @@ class DarkCmdSet(CmdSet):
self.add(CmdLookDark()) self.add(CmdLookDark())
self.add(CmdDarkHelp()) self.add(CmdDarkHelp())
self.add(CmdDarkNoMatch()) self.add(CmdDarkNoMatch())
self.add(CmdSay)
# #
# Darkness room two-state system # Darkness room two-state system
# #
@ -483,6 +483,9 @@ class CmdLookBridge(Command):
"Under your feet a plank comes loose, tumbling down. For a moment you dangle over the abyss ...", "Under your feet a plank comes loose, tumbling down. For a moment you dangle over the abyss ...",
"The section of rope you hold onto crumble in your hands, parts of it breaking apart. You sway trying to regain balance.") "The section of rope you hold onto crumble in your hands, parts of it breaking apart. You sway trying to regain balance.")
message = "{c%s{n\n" % self.obj.key + messages[bridge_position] + "\n" + moods[random.randint(0, len(moods) - 1)] message = "{c%s{n\n" % self.obj.key + messages[bridge_position] + "\n" + moods[random.randint(0, len(moods) - 1)]
chars = [obj for obj in self.obj.contents if obj.has_player]
message += "\n You see: %s" % ", ".join("{c%s{n" % char.key for char in chars)
self.caller.msg(message) self.caller.msg(message)
# there is a chance that we fall if we are on the western or central part of the bridge. # there is a chance that we fall if we are on the western or central part of the bridge.