diff options
author | Your Name <you@example.com> | 2021-05-09 13:56:46 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-05-09 13:56:46 -0400 |
commit | d13358b71ec15085f2638fd9c3fc634df62dfc94 (patch) | |
tree | 467c643a068bf2d83da3632823a6434244ae004e /src/weapon.cc | |
parent | e3aaa68a2ea1a403256150121c57a0287014162f (diff) | |
download | dmtool-d13358b71ec15085f2638fd9c3fc634df62dfc94.tar.gz dmtool-d13358b71ec15085f2638fd9c3fc634df62dfc94.tar.bz2 dmtool-d13358b71ec15085f2638fd9c3fc634df62dfc94.zip |
Reduced dependency on json-related hacks
Diffstat (limited to 'src/weapon.cc')
-rw-r--r-- | src/weapon.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<const Item&>(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(); } } |