From 7b521ef6bd4ea720a42a0a7a8c0bd95791d77fa8 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Sun, 26 Nov 2023 12:58:31 +0100 Subject: [PATCH] monsters appear but lack fighting --- src/game.rs | 7 ++----- src/level_generator.rs | 2 ++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/game.rs b/src/game.rs index 001307b..a6f2fe3 100644 --- a/src/game.rs +++ b/src/game.rs @@ -53,11 +53,8 @@ impl Game { _ => {} } match tmp.2 { - Some() => { - - - self.levels[player_pos.get_level()].remove_artifact(new_x, new_y); - self.player.add_gold(gold); + Some(enemy) => { + todo!("implement fighting!") } _ => {} } diff --git a/src/level_generator.rs b/src/level_generator.rs index 68995e0..d7b6853 100644 --- a/src/level_generator.rs +++ b/src/level_generator.rs @@ -110,6 +110,8 @@ impl LevelGenerator { // TODO tune room type distribution 1..=33 => { room_types.push(RoomType::EmptyRoom) } 34..=66 => { room_types.push(RoomType::TreasureRoom) } + 67..=90 => { room_types.push(RoomType::MonsterRoom) } + 67..=90 => { room_types.push(RoomType::MonsterRoom) } _ => { room_types.push(RoomType::BasicRoom) } } }