From cd8ebc23a0d5da52ee3218ad2ac9381bc8f0f702 Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 23 Jun 2021 00:00:46 +0000 Subject: [PATCH] imagine being level 0 --- src/ship/packet/handler/room.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/ship/packet/handler/room.rs b/src/ship/packet/handler/room.rs index a058f9a..19a9296 100644 --- a/src/ship/packet/handler/room.rs +++ b/src/ship/packet/handler/room.rs @@ -35,11 +35,6 @@ pub fn create_room(id: ClientId, return Ok(Box::new(vec![(id, SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 20 \nto create Hard rooms.".into())))].into_iter())) } }, - room::Difficulty::Normal => { - if level < 1 { - return Ok(Box::new(vec![(id, SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 1 \nto create Normal rooms.".into())))].into_iter())) - } - }, // i can't believe you've done this _ => {unreachable!()}, }; @@ -112,11 +107,6 @@ pub fn join_room(id: ClientId, return Ok(Box::new(vec![(id, SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 20 \nto join Hard rooms.".into())))].into_iter())) } }, - room::Difficulty::Normal => { - if level < 1 { - return Ok(Box::new(vec![(id, SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 1 \nto join Normal rooms.".into())))].into_iter())) - } - }, }; let original_area = client_location.get_area(id).unwrap();