From 608918af8174e9afb761cdd2ad46e489b21c5f4e Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 16 Apr 2020 22:11:00 +0200 Subject: don't spread stones dropped from destroyed walls --- src/componentwrapper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/componentwrapper.rs') 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 { -- cgit