mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fix 'defend_type' vs 'defense_type' typos in beginner tutorial
This commit is contained in:
parent
86174b7a20
commit
321da9b694
1 changed files with 3 additions and 3 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)
|
||||
|
||||
|
|
@ -488,4 +488,4 @@ Well, we just figured out all we need! You can go back and update `get_obj_stats
|
|||
|
||||
When you change this function you must also update the related unit test - so your existing test becomes a nice way to test your new Objects as well! Add more tests showing the output of feeding different object-types to `get_obj_stats`.
|
||||
|
||||
Try it out yourself. If you need help, a finished utility example is found in [evennia/contrib/tutorials/evadventure/utils.py](get_obj_stats).
|
||||
Try it out yourself. If you need help, a finished utility example is found in [evennia/contrib/tutorials/evadventure/utils.py](get_obj_stats).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue