From cd57ad6e208728bafcbc8c7d7b85d88603706978 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 20 Apr 2021 12:40:37 -0400 Subject: Updated natural armor and skills --- src/weapon.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/weapon.cc') 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 #include #include @@ -22,9 +23,9 @@ namespace entry { stringstream text; text << genText(static_cast(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) { -- cgit v1.2.3