aboutsummaryrefslogtreecommitdiff
path: root/src/spellcasting.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-05-09 13:56:46 -0400
committerYour Name <you@example.com>2021-05-09 13:56:46 -0400
commitd13358b71ec15085f2638fd9c3fc634df62dfc94 (patch)
tree467c643a068bf2d83da3632823a6434244ae004e /src/spellcasting.cc
parente3aaa68a2ea1a403256150121c57a0287014162f (diff)
downloaddmtool-d13358b71ec15085f2638fd9c3fc634df62dfc94.tar.gz
dmtool-d13358b71ec15085f2638fd9c3fc634df62dfc94.tar.bz2
dmtool-d13358b71ec15085f2638fd9c3fc634df62dfc94.zip
Reduced dependency on json-related hacks
Diffstat (limited to 'src/spellcasting.cc')
-rw-r--r--src/spellcasting.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spellcasting.cc b/src/spellcasting.cc
index 2606b53..db8e71a 100644
--- a/src/spellcasting.cc
+++ b/src/spellcasting.cc
@@ -28,8 +28,8 @@ namespace entry {
string genText(const Spellcasting& s, const creature::Creature& c) {
stringstream text;
- text << genText(static_cast<const Feature&>(s), c);
- text << ": The " << c.getCreatureName() << "'s spellcasting ability is " << s.getAbility().getFull();
+ text << s.getName() << " (" << s.getType() << "): ";
+ text << "The " << c.getCreatureName() << "'s spellcasting ability is " << s.getAbility().getFull();
text << " (spell save DC " << 8 + c.getBonus(s.getAbility()) + c.getProficiency();
text << ", +" << c.getBonus(s.getAbility()) + c.getProficiency() << " to hit with spell attacks).";
if(s.isInnate()) {