From 160fc7f10b7e9d8f0facddaf2c0c873e895e58aa Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 26 Apr 2020 21:55:12 -0600 Subject: [PATCH] pub ItemDrop --- src/ship/drops/mod.rs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/ship/drops/mod.rs b/src/ship/drops/mod.rs index 294eed4..0f2e7c3 100644 --- a/src/ship/drops/mod.rs +++ b/src/ship/drops/mod.rs @@ -1,3 +1,9 @@ +// TODO: there is some structure duplication that occurs here: +// the rare and box tables instantiate their own copies of the +// generic drop tables as they need them to apply their modifiers +// to their drops + + mod drop_table; mod rare_drop_table; mod generic_weapon; @@ -78,16 +84,18 @@ pub enum ItemDropType { Shield(shield::Shield), Unit(unit::Unit), Tool(tool::Tool), + //Tools(Vec), TechniqueDisk(tech::TechniqueDisk), Mag(mag::Mag), Meseta(u32), } -struct ItemDrop { - x: f32, - y: f32, - z: f32, - item: ItemDropType, +pub struct ItemDrop { + pub map_area: MapArea, + pub x: f32, + pub y: f32, + pub z: f32, + pub item: ItemDropType, } impl ItemDrop {