diff options
| author | troido <troido@protonmail.com> | 2020-09-22 15:36:58 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-09-22 15:36:58 +0200 |
| commit | 37ad98cf725aa22f1c793b66102c99c9a76a4ec2 (patch) | |
| tree | a1f35b025abb36b48c7646e84af76c05fcfac3cf /src/item.rs | |
| parent | 33c1054d528efd896415baf08d4a52e1cdd7b801 (diff) | |
can base sprite on equipped items
Diffstat (limited to 'src/item.rs')
| -rw-r--r-- | src/item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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}}])), |
