Typo fix in evadventure/utils.py

Incorrectly uses attack_type for both attack and defense in get_obj_stats
This commit is contained in:
feyrkh 2024-09-29 05:18:10 -05:00 committed by GitHub
parent f2a5c5a85a
commit 86174b7a20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,7 @@ def get_obj_stats(obj, owner=None):
carried = f", Worn: [{carried.value}]" if carried else ""
attack_type = getattr(obj, "attack_type", None)
defense_type = getattr(obj, "attack_type", None)
defense_type = getattr(obj, "defense_type", None)
return _OBJ_STATS.format(
key=obj.key,