returnOk(Box::new(vec![(id,SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 80 \nto create Ultimate rooms.".into())))].into_iter()))
}
},
room::Difficulty::VeryHard=>{
iflevel<40{
returnOk(Box::new(vec![(id,SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 40 \nto create Very Hard rooms.".into())))].into_iter()))
}
},
room::Difficulty::Hard=>{
iflevel<20{
returnOk(Box::new(vec![(id,SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 20 \nto create Hard rooms.".into())))].into_iter()))
letroom=rooms.get(pkt.itemasusize).ok_or(ShipError::InvalidRoom(pkt.item))?.as_ref().unwrap();// clippy look what you made me do
matchroom.mode.difficulty(){
room::Difficulty::Ultimate=>{
iflevel<80{
returnOk(Box::new(vec![(id,SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 80 \nto join Ultimate rooms.".into())))].into_iter()))
}
},
room::Difficulty::VeryHard=>{
iflevel<40{
returnOk(Box::new(vec![(id,SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 40 \nto join Very Hard rooms.".into())))].into_iter()))
}
},
room::Difficulty::Hard=>{
iflevel<20{
returnOk(Box::new(vec![(id,SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 20 \nto join Hard rooms.".into())))].into_iter()))