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;