From af76b9a0ae58dc8c87548053a5bc310ad6be25ce Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 1 Nov 2024 21:33:27 +0100 Subject: more small tweaks --- frontend/cmd/hit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/cmd') diff --git a/frontend/cmd/hit.cpp b/frontend/cmd/hit.cpp index 8866f60..94bde03 100644 --- a/frontend/cmd/hit.cpp +++ b/frontend/cmd/hit.cpp @@ -19,7 +19,7 @@ void GameController::cmd_hit(string & target_name) { if (rng.rand_double() > player.get_attack()) { lprtf("Je hebt gemist!\n"); } else { - unsigned damage = rng.rand_int(player.weapon->get_damage_min(), player.weapon->get_damage_max() + 1); + unsigned damage = rng.rand_int(player.weapon->get_damage()); enemy->take_damage(damage); lprtf("Je hebt %s geraakt en %d schade aangericht!\n", enemy->get_displayname().c_str(), damage); } -- cgit v1.2.3