From a6c8c959fc3ee167992277b1cc8cbb87e5c4aa1d Mon Sep 17 00:00:00 2001 From: jake Date: Mon, 6 Apr 2020 23:42:38 -0700 Subject: [PATCH] foreshadowing --- src/ship/room.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) }