From d13358b71ec15085f2638fd9c3fc634df62dfc94 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 9 May 2021 13:56:46 -0400 Subject: Reduced dependency on json-related hacks --- src/weapon.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/weapon.cc') diff --git a/src/weapon.cc b/src/weapon.cc index db81047..fe50eaf 100644 --- a/src/weapon.cc +++ b/src/weapon.cc @@ -130,10 +130,10 @@ namespace entry { string genText(const Weapon& w, const creature::Creature& c) { stringstream text; - text << genText(static_cast(w), c); + text << w.getName() << " (" << w.getType() << "): "; // Determine best ability bonus int abilityBonus = c.getBonus(creature::getBestAbility(getAbilityOptions(w), c)); - text << ": " << getTextHelper(w, to_string(abilityBonus + c.getProficiency()), to_string(abilityBonus)); + text << getTextHelper(w, to_string(abilityBonus + c.getProficiency()), to_string(abilityBonus)); return text.str(); } } -- cgit v1.2.3