diff options
| author | troido <troido@protonmail.com> | 2020-04-17 11:36:58 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-17 11:36:58 +0200 |
| commit | 334fc118b0eaf14c4d68129050c4837cb64cebae (patch) | |
| tree | 66d5f12aa2842cea39ddf5af3ef3d9230c256c45 /src/componentwrapper.rs | |
| parent | 13e9ab2c859b9a6a1935acbb93d34a7f10b7e122 (diff) | |
drop loot a step after dying
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index 0eca576..392c0dc 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, spread: Bool) { - Loot {spread, loot: + Loot (loot: List) { + Loot {loot: loot .iter() .map(|param| {match param { @@ -291,6 +291,8 @@ components!(all: total } }; + Removed; + LootHolder () {panic!("LootHolder from parameters not implemented")}; ); |
