diff options
Diffstat (limited to 'frontend/cmd')
-rw-r--r-- | frontend/cmd/view.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/frontend/cmd/view.cpp b/frontend/cmd/view.cpp index 7998a4a..0636cac 100644 --- a/frontend/cmd/view.cpp +++ b/frontend/cmd/view.cpp @@ -1,5 +1,6 @@ #include "../print.h" #include "../Player.h" +#include "../strings.h" FollowupAction Player::cmd_view(Argv argv) { if (argv.size() == 0) { @@ -7,12 +8,12 @@ FollowupAction Player::cmd_view(Argv argv) { return FollowupAction::NONE; } - if (argv[0] == "Zelf") { + if (str_lower(argv[0]) == "zelf") { lprtf("Je hebt %d levenspunten.\n", this->health_points); - lprtf("Je hebt een aanvalskans van %.0f%%.\n", this->attack_chance * 100); + lprtf("Je hebt een aanvalskans van %.0f%%.\n", this->get_attack() * 100); // TODO: weapon // TODO: armor - // TODO: gold + lprtf("Je hebt %u goundstuk%s.\n", this->gold, this->gold == 1 ? "" : "ken"); // TODO: inventory } |