monsters appear but lack fighting
This commit is contained in:
parent
a61dfda3c9
commit
7b521ef6bd
|
@ -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!")
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
|
@ -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) }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue