Fixed a typo in reset code.
This commit is contained in:
parent
ca4feb4d21
commit
aa602ce7f1
1 changed files with 4 additions and 4 deletions
|
|
@ -332,12 +332,12 @@ class CmdExtendedDesc(default_cmds.CmdDesc):
|
||||||
if self.lhs in location.db.details:
|
if self.lhs in location.db.details:
|
||||||
del location.db.detail
|
del location.db.detail
|
||||||
caller.msg("Detail %s deleted, if it existed." % self.lhs)
|
caller.msg("Detail %s deleted, if it existed." % self.lhs)
|
||||||
self.reset(location)
|
self.reset_times(location)
|
||||||
return
|
return
|
||||||
# setting a detail
|
# setting a detail
|
||||||
location.db.details[self.lhs] = self.rhs
|
location.db.details[self.lhs] = self.rhs
|
||||||
caller.msg("Set Detail %s to '%s'." % (self.lhs, self.rhs))
|
caller.msg("Set Detail %s to '%s'." % (self.lhs, self.rhs))
|
||||||
self.reset(location)
|
self.reset_times(location)
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
# we are doing a @desc call
|
# we are doing a @desc call
|
||||||
|
|
@ -365,7 +365,7 @@ class CmdExtendedDesc(default_cmds.CmdDesc):
|
||||||
elif switch == 'autumn': location.db.autumn_desc = self.args
|
elif switch == 'autumn': location.db.autumn_desc = self.args
|
||||||
elif switch == 'winter': location.db.winter_desc = self.args
|
elif switch == 'winter': location.db.winter_desc = self.args
|
||||||
# clear flag to force an update
|
# clear flag to force an update
|
||||||
self.reset(location)
|
self.reset_times(location)
|
||||||
caller.msg("Seasonal description was set on %s." % location.key)
|
caller.msg("Seasonal description was set on %s." % location.key)
|
||||||
elif self.rhs:
|
elif self.rhs:
|
||||||
# Not a seasonal desc, and we have an =. Assumed not extendedroom.
|
# Not a seasonal desc, and we have an =. Assumed not extendedroom.
|
||||||
|
|
@ -378,7 +378,7 @@ class CmdExtendedDesc(default_cmds.CmdDesc):
|
||||||
# set a normal non-seasonal description (fallback) on extended room
|
# set a normal non-seasonal description (fallback) on extended room
|
||||||
location.db.general_desc = self.args
|
location.db.general_desc = self.args
|
||||||
location.db.desc = self.args # compatability
|
location.db.desc = self.args # compatability
|
||||||
self.reset(obj)
|
self.reset_times(obj)
|
||||||
caller.msg("General description was set on %s." % obj.key)
|
caller.msg("General description was set on %s." % obj.key)
|
||||||
|
|
||||||
# Simple command to view the current time and season
|
# Simple command to view the current time and season
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue