diff options
author | Your Name <you@example.com> | 2021-04-20 12:40:37 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-04-20 12:40:37 -0400 |
commit | cd57ad6e208728bafcbc8c7d7b85d88603706978 (patch) | |
tree | 7cb0fc9511a0e8124e497d53edbe38d646dd8299 /src/weapon.cc | |
parent | 2cae1aa33f80ce0844fb54a84ce103146a7fe7ad (diff) | |
download | dmtool-cd57ad6e208728bafcbc8c7d7b85d88603706978.tar.gz dmtool-cd57ad6e208728bafcbc8c7d7b85d88603706978.tar.bz2 dmtool-cd57ad6e208728bafcbc8c7d7b85d88603706978.zip |
Updated natural armor and skills
Diffstat (limited to 'src/weapon.cc')
-rw-r--r-- | src/weapon.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/weapon.cc b/src/weapon.cc index 3a42e80..af75736 100644 --- a/src/weapon.cc +++ b/src/weapon.cc @@ -1,5 +1,6 @@ #include "weapon.h" #include "creature.h" +#include "rules.h" #include <string> #include <sstream> #include <algorithm> @@ -22,9 +23,9 @@ namespace entry { stringstream text; text << genText(static_cast<const Item&>(w), c); // Determine best ability bonus - int abilityBonus = c.getBonus("str"); + int abilityBonus = c.getBonus(rules::Ability::Str()); if(w.getProperties().count("finesse")) { - abilityBonus = max(abilityBonus, c.getBonus("dex")); + abilityBonus = max(abilityBonus, c.getBonus(rules::Ability::Dex())); } text << ": +" << abilityBonus + c.getProficiency() << " to hit, "; if(w.getReach() > 0) { |