pub ItemDrop

This commit is contained in:
jake 2020-04-26 21:55:12 -06:00
parent 0eb9035bad
commit 160fc7f10b

@ -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 drop_table;
mod rare_drop_table; mod rare_drop_table;
mod generic_weapon; mod generic_weapon;
@ -78,16 +84,18 @@ pub enum ItemDropType {
Shield(shield::Shield), Shield(shield::Shield),
Unit(unit::Unit), Unit(unit::Unit),
Tool(tool::Tool), Tool(tool::Tool),
//Tools(Vec<tool::Tool>),
TechniqueDisk(tech::TechniqueDisk), TechniqueDisk(tech::TechniqueDisk),
Mag(mag::Mag), Mag(mag::Mag),
Meseta(u32), Meseta(u32),
} }
struct ItemDrop { pub struct ItemDrop {
x: f32, pub map_area: MapArea,
y: f32, pub x: f32,
z: f32, pub y: f32,
item: ItemDropType, pub z: f32,
pub item: ItemDropType,
} }
impl ItemDrop { impl ItemDrop {