mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fixed an issue with the locks not getting properly set on rooms.
This commit is contained in:
parent
c3a4063cc3
commit
ecf11b38cd
2 changed files with 1 additions and 8 deletions
|
|
@ -268,10 +268,6 @@ class CmdGet(MuxCommand):
|
|||
if caller == obj:
|
||||
caller.msg("You can't get yourself.")
|
||||
return
|
||||
if obj.player or obj.destination:
|
||||
# don't allow picking up player objects, nor exits.
|
||||
caller.msg("You can't get that.")
|
||||
return
|
||||
if obj.location == caller:
|
||||
caller.msg("You already hold that.")
|
||||
return
|
||||
|
|
|
|||
|
|
@ -433,10 +433,7 @@ class Room(Object):
|
|||
"""
|
||||
|
||||
super(Room, self).basetype_setup()
|
||||
self.locks.add("puppet:false()") # would be weird to puppet a room ...
|
||||
self.locks.add("get:false()")
|
||||
|
||||
super(Room, self).basetype_setup()
|
||||
self.locks.add("get:false();puppet:false()") # would be weird to puppet a room ...
|
||||
self.location = None
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue