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.
|
Put something in the backpack.
|
||||||
"""
|
"""
|
||||||
self.validate_slot_usage(obj)
|
if self.validate_slot_usage(obj):
|
||||||
self.slots[WieldLocation.BACKPACK].append(obj)
|
self.slots[WieldLocation.BACKPACK].append(obj)
|
||||||
self._save()
|
self._save()
|
||||||
|
|
||||||
def remove(self, slot):
|
def remove(self, slot):
|
||||||
"""
|
"""
|
||||||
|
|
@ -363,6 +363,8 @@ class EquipmentHandler:
|
||||||
|
|
||||||
# make sure to remove from equipment/backpack first, to avoid double-adding
|
# make sure to remove from equipment/backpack first, to avoid double-adding
|
||||||
self.remove(obj)
|
self.remove(obj)
|
||||||
|
if not self.validate_slot_usage(obj):
|
||||||
|
return
|
||||||
|
|
||||||
slots = self.slots
|
slots = self.slots
|
||||||
use_slot = getattr(obj, "inventory_use_slot", WieldLocation.BACKPACK)
|
use_slot = getattr(obj, "inventory_use_slot", WieldLocation.BACKPACK)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue