|
@ -107,13 +107,11 @@ 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()))
|
|
|
return Ok(Box::new(vec![(id, SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 20 \nto join Hard rooms.".into())))].into_iter()))
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
|
|
|
_ => {},
|
|
|
};
|
|
|
};
|
|
|
|
|
|
|
|
|
let original_area = client_location.get_area(id).unwrap();
|
|
|
let original_area = client_location.get_area(id).unwrap();
|
|
|
let original_neighbors = client_location.get_client_neighbors(id).unwrap();
|
|
|
let original_neighbors = client_location.get_client_neighbors(id).unwrap();
|
|
|
// let room = rooms.get(pkt.item as usize)
|
|
|
|
|
|
// .ok_or_else(|| ShipError::InvalidRoom(pkt.item))?.as_ref()
|
|
|
|
|
|
// .ok_or_else(|| ShipError::InvalidRoom(pkt.item))?;
|
|
|
|
|
|
if room.bursting {
|
|
|
if room.bursting {
|
|
|
return Ok(Box::new(vec![(id, SendShipPacket::SmallDialog(SmallDialog::new("player is bursting\nplease wait".into())))].into_iter()))
|
|
|
return Ok(Box::new(vec![(id, SendShipPacket::SmallDialog(SmallDialog::new("player is bursting\nplease wait".into())))].into_iter()))
|
|
|
}
|
|
|
}
|
|
|