From dc82e021da06f655af95cf0687892aba15ff190b Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Thu, 23 Nov 2023 21:18:13 +0100 Subject: [PATCH] Only show level not coordinates --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index b43bf3a..a80c530 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,14 +72,12 @@ fn main() -> Result<()> { height: 25, }; frame.render_widget( - Paragraph::new(format!("{}\nHealth: {}/{}\nGold: {}\n{}/{}/{}", + Paragraph::new(format!("{}\nHealth: {}/{}\nGold: {}\nLevel: {}", g.player.get_name(), g.player.get_life(), g.player.get_max_life(), g.player.get_gold(), - g.player.get_position().get_level(), - g.player.get_position().get_x(), - g.player.get_position().get_y())) + g.player.get_position().get_level())) .white() .on_blue(), stats_area,