diff options
| author | troido <troido@protonmail.com> | 2020-03-04 16:10:32 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-03-04 16:10:32 +0100 |
| commit | f8364fb636a8e9276939ae8523966b038388e4ff (patch) | |
| tree | 8edd2f48cda4f2d605cec6df3ca4ec3a974de009 /src/componentwrapper.rs | |
| parent | 21919636f95a1214b7ed1a3e4aa6527f45b9d073 (diff) | |
added loot/harvest
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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}}; ); |
