From 3632c99f94b762da6c069da10f830f63017dd1c8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 22 Jul 2021 17:47:49 -0400 Subject: Fixed issue with edit command on a creature --- src/creature.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/creature.cc') diff --git a/src/creature.cc b/src/creature.cc index 6069285..f48888c 100644 --- a/src/creature.cc +++ b/src/creature.cc @@ -60,6 +60,7 @@ namespace creature { int Creature::getScore(const rules::Ability& ability) const {return data->stats.at(ability);} int Creature::getBonus(const rules::Ability& ability) const {return std::floor((getScore(ability) - 10) / 2.0);} int Creature::getProficiency(void) const {return data->prof;} + int Creature::getInitiative(void) const {return getBonus(rules::Ability::Dex());} std::vector> Creature::getFeatures(void) const {return data->features;} std::vector> Creature::getInventory(void) const {return data->inventory;} std::vector Creature::getDmgImmunities(void) const {return data->d_immunities;} -- cgit v1.2.3