aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-02-19 12:51:23 +0100
committernsensfel <SpamShield0@noot-noot.org>2018-02-19 12:51:23 +0100
commit01f457fb41fefe97d84476de97fe424db0f2117b (patch)
tree0e9db0fdb3cb86722865be7ab3f39b208b99744a
parent883e61b55b9c6517f482d63d852cf1ec3d9047ab (diff)
downloadtacticians-client-01f457fb41fefe97d84476de97fe424db0f2117b.zip
tacticians-client-01f457fb41fefe97d84476de97fe424db0f2117b.tar.bz2
Let's have it compile at least.
-rw-r--r--src/battlemap/src/Struct/Weapon.elm9
-rw-r--r--src/battlemap/src/View/SideBar/TabMenu/Status/CharacterInfo.elm5
2 files changed, 11 insertions, 3 deletions
diff --git a/src/battlemap/src/Struct/Weapon.elm b/src/battlemap/src/Struct/Weapon.elm
index 3ef2bd0..94c2784 100644
--- a/src/battlemap/src/Struct/Weapon.elm
+++ b/src/battlemap/src/Struct/Weapon.elm
@@ -1,7 +1,6 @@
module Struct.Weapon exposing
(
Type,
- WeaponType
new,
none
)
@@ -21,6 +20,14 @@ type WeaponRangeType = Ranged | Melee
type WeaponRangeModifier = Long | Sort
type WeaponDamageType = Slash | Blunt | Pierce
+type alias WeaponType =
+ {
+ range : WeaponRangeType,
+ range_mod : WeaponRangeModifier,
+ dmg_type : WeaponDamageType
+ }
+
+
--------------------------------------------------------------------------------
-- LOCAL -----------------------------------------------------------------------
--------------------------------------------------------------------------------
diff --git a/src/battlemap/src/View/SideBar/TabMenu/Status/CharacterInfo.elm b/src/battlemap/src/View/SideBar/TabMenu/Status/CharacterInfo.elm
index 68895b7..1eac502 100644
--- a/src/battlemap/src/View/SideBar/TabMenu/Status/CharacterInfo.elm
+++ b/src/battlemap/src/View/SideBar/TabMenu/Status/CharacterInfo.elm
@@ -12,6 +12,7 @@ import Struct.Character
import Struct.Event
import Struct.Model
import Struct.Statistics
+import Struct.Weapon
--------------------------------------------------------------------------------
-- LOCAL -----------------------------------------------------------------------
@@ -180,11 +181,11 @@ get_statistics_html stats =
]
)
-get_weapon_html: (
+get_weapon_html : (
Struct.Weapon.Type ->
(Html.Html Struct.Event.Type)
)
-get_statistics_html stats =
+get_weapon_html wp =
(Html.ul
[
]