summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/battle/src/View/Map/Character.elm')
-rw-r--r--src/battle/src/View/Map/Character.elm12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/battle/src/View/Map/Character.elm b/src/battle/src/View/Map/Character.elm
index 4470b4a..6ced9f0 100644
--- a/src/battle/src/View/Map/Character.elm
+++ b/src/battle/src/View/Map/Character.elm
@@ -88,8 +88,14 @@ get_position_style char =
let char_loc = (Struct.Character.get_location char) in
(Html.Attributes.style
[
- ("top", ((toString (char_loc.y * Constants.UI.tile_size)) ++ "px")),
- ("left", ((toString (char_loc.x * Constants.UI.tile_size)) ++ "px"))
+ (
+ "top",
+ ((String.fromInt (char_loc.y * Constants.UI.tile_size)) ++ "px")
+ ),
+ (
+ "left",
+ ((String.fromInt (char_loc.x * Constants.UI.tile_size)) ++ "px")
+ )
]
)
@@ -127,7 +133,7 @@ get_body_html char =
(Html.Attributes.class
(
"asset-character-team-body-"
- ++ (toString (Struct.Character.get_player_ix char))
+ ++ (String.fromInt (Struct.Character.get_player_ix char))
)
)
]