mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fix inconsistency in equipment tutorial text. Resolve #3151.
This commit is contained in:
parent
866bb060ef
commit
c1ce8c577c
1 changed files with 6 additions and 4 deletions
|
|
@ -311,9 +311,9 @@ class EquipmentHandler:
|
|||
"""
|
||||
Put something in the backpack.
|
||||
"""
|
||||
self.validate_slot_usage(obj)
|
||||
self.slots[WieldLocation.BACKPACK].append(obj)
|
||||
self._save()
|
||||
if self.validate_slot_usage(obj):
|
||||
self.slots[WieldLocation.BACKPACK].append(obj)
|
||||
self._save()
|
||||
|
||||
def remove(self, slot):
|
||||
"""
|
||||
|
|
@ -363,7 +363,9 @@ class EquipmentHandler:
|
|||
|
||||
# make sure to remove from equipment/backpack first, to avoid double-adding
|
||||
self.remove(obj)
|
||||
|
||||
if not self.validate_slot_usage(obj):
|
||||
return
|
||||
|
||||
slots = self.slots
|
||||
use_slot = getattr(obj, "inventory_use_slot", WieldLocation.BACKPACK)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue