From f8364fb636a8e9276939ae8523966b038388e4ff Mon Sep 17 00:00:00 2001 From: troido Date: Wed, 4 Mar 2020 16:10:32 +0100 Subject: added loot/harvest --- src/componentwrapper.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/componentwrapper.rs') diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index 638531b..e1389c4 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -134,8 +134,9 @@ components!( }; Clan (name: String) Clan{name}; Home (home: Pos) Home{home}; - Faction (faction: String) {Faction::from_str(faction.as_str()).unwrap()}; - Interactable (action: String) {Interactable::from_str(action.as_str()).unwrap()}; + Faction (faction: String) {Faction::from_str(faction.as_str())?}; + Interactable (action: String) {Interactable::from_str(action.as_str())?}; + Loot (loot: LootList) {Loot{loot}}; ); -- cgit