#918 reverting wrongly merged inventory related changes.

This commit is contained in:
Thomas Kosel 2021-07-28 21:13:09 +02:00
parent acb7f5dc4b
commit c8527491cc
No known key found for this signature in database
GPG Key ID: AC43C6126CC42595

View File

@ -74,6 +74,7 @@ pub struct ReadData<'a> {
combos: ReadStorage<'a, Combo>, combos: ReadStorage<'a, Combo>,
alignments: ReadStorage<'a, comp::Alignment>, alignments: ReadStorage<'a, comp::Alignment>,
terrain: ReadExpect<'a, TerrainGrid>, terrain: ReadExpect<'a, TerrainGrid>,
inventories: ReadStorage<'a, Inventory>,
} }
/// ## Character Behavior System /// ## Character Behavior System
@ -92,7 +93,6 @@ impl<'a> System<'a> for Sys {
WriteStorage<'a, Ori>, WriteStorage<'a, Ori>,
WriteStorage<'a, Density>, WriteStorage<'a, Density>,
WriteStorage<'a, Energy>, WriteStorage<'a, Energy>,
WriteStorage<'a, Inventory>,
WriteStorage<'a, Controller>, WriteStorage<'a, Controller>,
WriteStorage<'a, Poise>, WriteStorage<'a, Poise>,
Write<'a, Vec<Outcome>>, Write<'a, Vec<Outcome>>,
@ -112,7 +112,6 @@ impl<'a> System<'a> for Sys {
mut orientations, mut orientations,
mut densities, mut densities,
mut energies, mut energies,
mut inventories,
mut controllers, mut controllers,
mut poises, mut poises,
mut outcomes, mut outcomes,
@ -148,7 +147,7 @@ impl<'a> System<'a> for Sys {
&read_data.masses, &read_data.masses,
&mut densities, &mut densities,
&mut energies, &mut energies,
&mut inventories, read_data.inventories.maybe(),
&mut controllers, &mut controllers,
read_data.healths.maybe(), read_data.healths.maybe(),
&read_data.bodies, &read_data.bodies,
@ -283,7 +282,7 @@ impl<'a> System<'a> for Sys {
mass, mass,
density: &mut density, density: &mut density,
energy, energy,
inventory: Some(&inventory), inventory,
controller: &mut controller, controller: &mut controller,
health, health,
body, body,