diff options
| author | troido <troido@protonmail.com> | 2020-04-16 22:11:00 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-16 22:11:00 +0200 |
| commit | 608918af8174e9afb761cdd2ad46e489b21c5f4e (patch) | |
| tree | d4ebfc375b1a4af5211f2aa332c1d8698151da45 /src/componentwrapper.rs | |
| parent | 4e144009aad9255af1e83970fc16fdafe3e79e83 (diff) | |
don't spread stones dropped from destroyed walls
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 4 |
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 { |
