diff options
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) { |