summaryrefslogtreecommitdiff
path: root/src/systems/view.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-04-05 20:04:33 +0200
committertroido <troido@protonmail.com>2020-04-05 20:04:33 +0200
commit48c24ec8b011d081550dc78329cbe61de67b30e9 (patch)
treed2d700897dc5ba3d0f52e8a1cd57c0f4880272fd /src/systems/view.rs
parent84c70cee089b72720a85d285ee0437b65be298b9 (diff)
items are now mostly replaced by itemids, with a mapping to the item in the encyclopedia
Diffstat (limited to 'src/systems/view.rs')
-rw-r--r--src/systems/view.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systems/view.rs b/src/systems/view.rs
index 4419203..f1641bd 100644
--- a/src/systems/view.rs
+++ b/src/systems/view.rs
@@ -59,7 +59,7 @@ impl <'a> System<'a> for View {
updates.change = Some(changes.clone());
}
if let Some(inventory) = inventories.get(ent){
- updates.inventory = Some(inventory.items.iter().map(|(item, _equipped)| item.name.clone()).collect());
+ updates.inventory = Some(inventory.items.iter().map(|entry| entry.item.name.clone()).collect());
}
if let Some(health) = healths.get(ent){
updates.health = Some((health.health, health.maxhealth));