aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-02-20 14:11:07 +0100
committernsensfel <SpamShield0@noot-noot.org>2018-02-20 14:11:07 +0100
commit7e7268cfa4e3fbbdee71cc7200923e5b68cea796 (patch)
treeaa37b0903af8e36a7a09f2e906cebda937b2de5b /src/battlemap/src/ElmModule/Update.elm
parent66046080f92a3a7686e0414de35395f47064daca (diff)
downloadtacticians-client-7e7268cfa4e3fbbdee71cc7200923e5b68cea796.zip
tacticians-client-7e7268cfa4e3fbbdee71cc7200923e5b68cea796.tar.bz2
Adds the SwitchWeapon action.calc_stats
Diffstat (limited to 'src/battlemap/src/ElmModule/Update.elm')
-rw-r--r--src/battlemap/src/ElmModule/Update.elm4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/battlemap/src/ElmModule/Update.elm b/src/battlemap/src/ElmModule/Update.elm
index 96fe20b..22217bf 100644
--- a/src/battlemap/src/ElmModule/Update.elm
+++ b/src/battlemap/src/ElmModule/Update.elm
@@ -16,6 +16,7 @@ import Update.SelectTab
import Update.SelectTile
import Update.SendLoadBattlemapRequest
import Update.SwitchTeam
+import Update.SwitchWeapon
update : (
Struct.Event.Type ->
@@ -56,3 +57,6 @@ update event model =
(Struct.Event.ServerReplied result) ->
(Update.HandleServerReply.apply_to model result)
+
+ Struct.Event.WeaponSwitchRequest ->
+ (Update.SwitchWeapon.apply_to new_model)