diff options
| author | troido <troido@protonmail.com> | 2020-04-07 09:43:12 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-07 09:43:12 +0200 |
| commit | 9d09670cb239ac9ed5d08a765b2b627b13121efe (patch) | |
| tree | 42127cf2622a7bc264decad067de70922a967343 /src/systems | |
| parent | 36034d79acde5039601a0fdf2f9c5e19b5f91003 (diff) | |
also send whether inventory item is equipped
Diffstat (limited to 'src/systems')
| -rw-r--r-- | src/systems/view.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systems/view.rs b/src/systems/view.rs index f1641bd..5ea7ed8 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(|entry| entry.item.name.clone()).collect()); + updates.inventory = Some(inventory.items.iter().map(|entry| (entry.item.name.clone(), entry.is_equipped)).collect()); } if let Some(health) = healths.get(ent){ updates.health = Some((health.health, health.maxhealth)); |
