diff options
Diffstat (limited to 'src/creature.cc')
-rw-r--r-- | src/creature.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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<std::shared_ptr<entry::Feature>> Creature::getFeatures(void) const {return data->features;} std::vector<std::shared_ptr<entry::Item>> Creature::getInventory(void) const {return data->inventory;} std::vector<dmgType> Creature::getDmgImmunities(void) const {return data->d_immunities;} |