Merge pull request #3626 from feyrkh/feyrkh-patch-1
Fix 'defense_type' typos in beginner tutorial + EvAdventure utils.py
This commit is contained in:
commit
26e671f146
2 changed files with 4 additions and 4 deletions
|
|
@ -248,7 +248,7 @@ class EvAdventureWeapon(EvAdventureObject):
|
|||
quality = AttributeProperty(3, autocreate=False)
|
||||
|
||||
attack_type = AttributeProperty(Ability.STR, autocreate=False)
|
||||
defend_type = AttributeProperty(Ability.ARMOR, autocreate=False)
|
||||
defense_type = AttributeProperty(Ability.ARMOR, autocreate=False)
|
||||
|
||||
damage_roll = AttributeProperty("1d6", autocreate=False)
|
||||
|
||||
|
|
@ -387,7 +387,7 @@ class EvAdventureRuneStone(EvAdventureWeapon, EvAdventureConsumable):
|
|||
quality = AttributeProperty(3, autocreate=False)
|
||||
|
||||
attack_type = AttributeProperty(Ability.INT, autocreate=False)
|
||||
defend_type = AttributeProperty(Ability.DEX, autocreate=False)
|
||||
defense_type = AttributeProperty(Ability.DEX, autocreate=False)
|
||||
|
||||
damage_roll = AttributeProperty("1d8", autocreate=False)
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue