summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-10-18 20:59:41 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-10-18 20:59:41 +0200
commit96d7905f7faef941f5454fd2c8b0b50a294fd26c (patch)
tree77377c56ed005fc56dcaad506f0f12bb598fef66 /elm/battlemap/src/Shim/Battlemap
parent2805c647010cbcca126ebf162fcbdd691fc72488 (diff)
Borked mouse controls for the navigator, it seems.
Diffstat (limited to 'elm/battlemap/src/Shim/Battlemap')
-rw-r--r--elm/battlemap/src/Shim/Battlemap/Tile.elm15
1 files changed, 6 insertions, 9 deletions
diff --git a/elm/battlemap/src/Shim/Battlemap/Tile.elm b/elm/battlemap/src/Shim/Battlemap/Tile.elm
index c243f0a..1e11cb5 100644
--- a/elm/battlemap/src/Shim/Battlemap/Tile.elm
+++ b/elm/battlemap/src/Shim/Battlemap/Tile.elm
@@ -3,20 +3,17 @@ module Shim.Battlemap.Tile exposing (generate)
import Array
import List
-import Battlemap.Location
import Battlemap.Tile
from_int : Int -> Int -> (Int, Int) -> Battlemap.Tile.Type
-from_int map_width index (class, cost) =
+from_int map_width index (icon_id, cost) =
{
location =
- (Battlemap.Location.get_ref
- {
- x = (index % map_width),
- y = (index // map_width)
- }
- ),
- class = class,
+ {
+ x = (index % map_width),
+ y = (index // map_width)
+ },
+ icon_id = (toString icon_id),
crossing_cost = cost
}