From 74831857cf76c7fe4f6e8842bcb27e18f1e274f3 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Sun, 27 Oct 2024 06:24:40 +0100 Subject: [PATCH] fix monster percentage --- src/constants.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants.rs b/src/constants.rs index 43649ae..ff6ca78 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -29,13 +29,13 @@ pub const LEVEL_WIDTH: usize = 1 + ROOMS_VERTICAL * ROOM_WIDTH; pub const LEVEL_HEIGHT: usize = 1 + ROOMS_HORIZONTAL * ROOM_HEIGHT; pub fn get_monsters_per_level() -> Vec>> { - let tmp = vec![ + let tmp =[ // level 1 vec![(MonsterTypes::Rat, 50), (MonsterTypes::Spider, 50)], // level 2 vec![(MonsterTypes::Rat, 50), (MonsterTypes::Snake, 50)], // level 3 - vec![(MonsterTypes::Orc, 33), (MonsterTypes::Skeleton, 33), (MonsterTypes::Snake, 33)], + vec![(MonsterTypes::Orc, 34), (MonsterTypes::Skeleton, 33), (MonsterTypes::Snake, 33)], ]; if tmp.len() != LEVELS { panic!("Only {} monster sets defined for {} levels!", tmp.len(), LEVELS);