|
|
@ -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<tool::Tool>),
|
|
|
|
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 {
|
|
|
|