summaryrefslogtreecommitdiff
path: root/src/componentwrapper.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-04-16 22:11:00 +0200
committertroido <troido@protonmail.com>2020-04-16 22:11:00 +0200
commit608918af8174e9afb761cdd2ad46e489b21c5f4e (patch)
treed4ebfc375b1a4af5211f2aa332c1d8698151da45 /src/componentwrapper.rs
parent4e144009aad9255af1e83970fc16fdafe3e79e83 (diff)
don't spread stones dropped from destroyed walls
Diffstat (limited to 'src/componentwrapper.rs')
-rw-r--r--src/componentwrapper.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs
index d677cb2..ecc8227 100644
--- a/src/componentwrapper.rs
+++ b/src/componentwrapper.rs
@@ -182,8 +182,8 @@ components!(all:
Home (home: Pos);
Faction (faction: String) {Faction::from_str(faction.as_str()).ok_or(aerr!("invalid faction name"))?};
Interactable (action: Interaction) {action};
- Loot (loot: List) {
- Loot { loot:
+ Loot (loot: List, spread: Bool) {
+ Loot {spread, loot:
loot
.iter()
.map(|param| {match param {