From 37ad98cf725aa22f1c793b66102c99c9a76a4ec2 Mon Sep 17 00:00:00 2001 From: troido Date: Tue, 22 Sep 2020 15:36:58 +0200 Subject: can base sprite on equipped items --- src/item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/item.rs') diff --git a/src/item.rs b/src/item.rs index 0e8661a..88fd583 100644 --- a/src/item.rs +++ b/src/item.rs @@ -73,7 +73,7 @@ mod tests { fn equip_from_json() { assert_eq!( ItemAction::from_json(&json!(["equip", {"slot": "hand", "stats": {"strength": 10}}])), - Some(ItemAction::Equip(Equippable {slot: Slot::Hand, stats: hashmap!(Stat::Strength => 10)})) + Some(ItemAction::Equip(Equippable {slot: Slot::Hand, stats: hashmap!(Stat::Strength => 10), sprite: Option::None})) ); assert_eq!( ItemAction::from_json(&json!(["equip", {"slot": "hand", "stats": {"attack": 50}}])), -- cgit