diff --git a/src/ship/room.rs b/src/ship/room.rs index 08e49ad..2695362 100644 --- a/src/ship/room.rs +++ b/src/ship/room.rs @@ -1,6 +1,8 @@ use std::convert::{From, Into, TryFrom, TryInto}; use crate::ship::map::Maps; +use crate::ship::drops::DropTable; +use crate::entity::character::SectionID; #[derive(Debug)] pub enum RoomCreationError { @@ -166,7 +168,7 @@ impl RoomState { difficulty + 0x22 } - pub fn from_create_room(create_room: &libpso::packet::ship::CreateRoom) -> Result { + pub fn from_create_room(create_room: &libpso::packet::ship::CreateRoom, section_id: SectionID) -> Result { if [create_room.battle, create_room.challenge, create_room.single_player].iter().sum::() > 1 { return Err(RoomCreationError::InvalidMode) }