limit inventory to 10 slots

This commit is contained in:
2024-10-21 21:59:55 +02:00
parent 2b8f7eebba
commit 5949b2a2d6
3 changed files with 11 additions and 5 deletions

View File

@@ -103,7 +103,7 @@ fn main() -> Result<()> {
.style(Style::default().bg(Color::Blue));
frame.render_widget(
Paragraph::new(format!(
"Health: {}/{}\nExp: {}\nGold: {}\nLevel: {}\nInventory: {}",
"Health: {}/{}\nExp: {}\nGold: {}\nLevel: {}\nInventory: {}/10",
game.get_player().get_life(),
game.get_player().get_max_life(),
game.get_player().get_experience(),