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/spellcasting.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/spellcasting.cc') 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(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()) { -- cgit v1.2.3