From 5111fec1faf2be153b71b4062a5b728b89521d99 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Wed, 23 Oct 2024 15:53:28 +0200 Subject: [PATCH] fixed message while changing levels --- src/game.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game.rs b/src/game.rs index b3221ac..cc7dcf8 100644 --- a/src/game.rs +++ b/src/game.rs @@ -131,7 +131,7 @@ impl Game { let (next_level, x, y) = self.next_start(); player_level = next_level; self.messages - .insert(0, format!("you climb down to level {}.", next_level)); + .insert(0, format!("you climb down to level {}.", next_level + 1)); self.get_mutable_player() .get_position() .set(next_level, x, y); @@ -141,7 +141,7 @@ impl Game { let (next_level, x, y) = self.prev_end(); player_level = next_level; self.messages - .insert(0, format!("you climb up to level {}.", next_level)); + .insert(0, format!("you climb up to level {}.", next_level + 1)); self.get_mutable_player() .get_position() .set(next_level, x, y);