mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 20:47:17 +02:00
Removed some old and now confusing, unsused variables and added some documenting strings.
This commit is contained in:
parent
030c245b5b
commit
949da47917
4 changed files with 2 additions and 4 deletions
|
|
@ -288,7 +288,6 @@ class CmdLightSourceOn(Command):
|
|||
# look around
|
||||
self.caller.execute_cmd("look")
|
||||
|
||||
|
||||
class CmdLightSourceOff(Command):
|
||||
"""
|
||||
Switch off the lightsource.
|
||||
|
|
|
|||
|
|
@ -122,6 +122,8 @@ def get_and_merge_cmdsets(caller):
|
|||
yield obj.at_cmdset_get()
|
||||
except Exception:
|
||||
logger.log_trace()
|
||||
# the call-type lock is checked here, it makes sure a player is not seeing e.g. the commands
|
||||
# on a fellow player (which is why the no_superuser_bypass must be True)
|
||||
local_objects_cmdsets = yield [obj.cmdset.current for obj in local_objlist
|
||||
if (obj.cmdset.current and obj.locks.check(caller, 'call', no_superuser_bypass=True))]
|
||||
for cset in local_objects_cmdsets:
|
||||
|
|
|
|||
|
|
@ -774,8 +774,6 @@ class Character(Object):
|
|||
"call:false()"])) # no commands can be called on character from outside
|
||||
# add the default cmdset
|
||||
self.cmdset.add_default(settings.CMDSET_DEFAULT, permanent=True)
|
||||
# no other character should be able to call commands on the Character.
|
||||
self.cmdset.outside_access = False
|
||||
|
||||
def at_object_creation(self):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -232,7 +232,6 @@ class Player(TypeClass):
|
|||
|
||||
# The ooc player cmdset
|
||||
self.cmdset.add_default(CMDSET_OOC, permanent=True)
|
||||
self.cmdset.outside_access = False
|
||||
|
||||
def at_player_creation(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue