mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 13:07:16 +02:00
Removed deprecated Attribute methods from evennia distro. Removed MUX help files.
This commit is contained in:
parent
9620867031
commit
8bd431b385
13 changed files with 47 additions and 65 deletions
|
|
@ -808,7 +808,7 @@ class CmdGetWeapon(Command):
|
|||
"Implement the command"
|
||||
|
||||
rack_id = self.obj.db.rack_id
|
||||
if self.caller.get_attribute(rack_id):
|
||||
if self.caller.attributes.get(rack_id):
|
||||
# we don't allow a player to take more than one weapon from rack.
|
||||
self.caller.msg("%s has no more to offer you." % self.obj.name)
|
||||
else:
|
||||
|
|
@ -826,7 +826,7 @@ class CmdGetWeapon(Command):
|
|||
else:
|
||||
self.caller.msg(ostring)
|
||||
# tag the caller so they cannot keep taking objects from the rack.
|
||||
self.caller.set_attribute(rack_id, True)
|
||||
self.caller.attributes.add(rack_id, True)
|
||||
|
||||
|
||||
class CmdSetWeaponRack(CmdSet):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue