diff options
Diffstat (limited to 'src/cmd_query.cc')
-rw-r--r-- | src/cmd_query.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd_query.cc b/src/cmd_query.cc index 7d4e6d6..deff049 100644 --- a/src/cmd_query.cc +++ b/src/cmd_query.cc @@ -26,6 +26,9 @@ namespace cmd { text << name << " " << type << ": " << rolled << " (d20) + " << bonus << " (" << name << " " << type << " bonus) = " << rolled + bonus << std::endl; }; // Search through skills, saves, and attacks to roll + if(rollName == "init" or rollName == "initiative") { + printResults("Initiative", "check", rolled, c->getInitiative()); + } rules::Skill skill = rules::tryGetAbilityOrSkill<rules::Skill>(rollName); rules::Ability ability = rules::tryGetAbilityOrSkill<rules::Ability>(rollName); if(skill) { |