From 1c8ec2ec326687144dd38751d30ea214aa1f6363 Mon Sep 17 00:00:00 2001 From: Peisong Xiao Date: Thu, 18 Jul 2024 18:52:14 -0400 Subject: [PATCH] fixed issue with player not gaining gold from normal dead enemies --- src/player.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/player.cc b/src/player.cc index e2c4f51..52075ee 100644 --- a/src/player.cc +++ b/src/player.cc @@ -82,6 +82,8 @@ long_result player_base::move(level *lvl, res.msg += "PC gains " + std::to_string(g) + " pieces of gold. "; + + gold_cnt += g; } return res; @@ -223,6 +225,8 @@ long_result player_base::interpret_command(level *lvl, game_command cmd) { res.msg += "PC gains " + std::to_string(g) + " pieces of gold. "; + + gold_cnt += g; } return res;