From b20f46c15dce8b196dbb8890890978947745e094 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 1 Nov 2024 17:32:53 +0100 Subject: change flow architecture --- backend/Dungeon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/Dungeon.cpp') diff --git a/backend/Dungeon.cpp b/backend/Dungeon.cpp index 84f9c79..fed955b 100644 --- a/backend/Dungeon.cpp +++ b/backend/Dungeon.cpp @@ -24,8 +24,8 @@ void Dungeon::update_attacks(ListRange & enemies) { if (rng.rand_double() < enemy->get_attack()) continue; unsigned damage = rng.rand_int(enemy->get_damage_min(), enemy->get_damage_max() + 1); - this->player.take_damage(damage); lprtf("%s raakt en doet %d punt schade.\n", enemy->get_displayname().c_str(), damage); + this->player.take_damage(damage); } } -- cgit v1.2.3