diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 12:24:43 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 12:24:43 +0100 |
commit | b1d5d7936bed17a684daff15b0294ef70754e8b9 (patch) | |
tree | 85ee543a15b42c7f854e4ce403bcff3dff5a3bd4 /frontend/cmd | |
parent | 991c9aac53fa3562b0fdc03d74b398052b207d2c (diff) |
more more WIP
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 } |