diff options
author | Your Name <you@example.com> | 2021-07-22 17:47:49 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-07-22 17:47:49 -0400 |
commit | 3632c99f94b762da6c069da10f830f63017dd1c8 (patch) | |
tree | 9be0604c3d8b2d5e7d6531ef772ae25b4700118d /src/creature.cc | |
parent | 01293baa64fa905c5763020bd6c0b4903d41fc78 (diff) | |
download | dmtool-3632c99f94b762da6c069da10f830f63017dd1c8.tar.gz dmtool-3632c99f94b762da6c069da10f830f63017dd1c8.tar.bz2 dmtool-3632c99f94b762da6c069da10f830f63017dd1c8.zip |
Fixed issue with edit command on a creature
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;} |