From 9283e1eb66d6ff96b02f317e28cb6ff060953cdf Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 29 Oct 2024 20:01:27 +0100 Subject: WIP load XML --- frontend/cmd/view.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'frontend/cmd') diff --git a/frontend/cmd/view.cpp b/frontend/cmd/view.cpp index 8b08a2c..7998a4a 100644 --- a/frontend/cmd/view.cpp +++ b/frontend/cmd/view.cpp @@ -7,6 +7,15 @@ FollowupAction Player::cmd_view(Argv argv) { return FollowupAction::NONE; } + if (argv[0] == "Zelf") { + lprtf("Je hebt %d levenspunten.\n", this->health_points); + lprtf("Je hebt een aanvalskans van %.0f%%.\n", this->attack_chance * 100); + // TODO: weapon + // TODO: armor + // TODO: gold + // TODO: inventory + } + return FollowupAction::NONE; } -- cgit v1.2.3