From 8103bf80277b759bb9c3b1e032612721f132f256 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Fri, 15 Mar 2019 18:41:39 +0100 Subject: [Broken] Got 'battle' to compile again. --- src/shared/battle-map/BattleMap/Struct/TileInstance.elm | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/shared/battle-map/BattleMap/Struct/TileInstance.elm') diff --git a/src/shared/battle-map/BattleMap/Struct/TileInstance.elm b/src/shared/battle-map/BattleMap/Struct/TileInstance.elm index 8c39371..c8b4f09 100644 --- a/src/shared/battle-map/BattleMap/Struct/TileInstance.elm +++ b/src/shared/battle-map/BattleMap/Struct/TileInstance.elm @@ -72,7 +72,11 @@ noise_function a b c = clone : BattleMap.Struct.Location.Type -> Type -> Type clone loc inst = {inst | location = loc} -new_border : BattleMap.Struct.Tile.Ref -> BattleMap.Struct.Tile.VariantID -> Border +new_border : ( + BattleMap.Struct.Tile.Ref -> + BattleMap.Struct.Tile.VariantID -> + Border + ) new_border class_id variant_id = { class_id = class_id, @@ -83,10 +87,10 @@ default : BattleMap.Struct.Tile.Type -> Type default tile = { location = {x = 0, y = 0}, - class_id = (Struct.Tile.get_id tile), + class_id = (BattleMap.Struct.Tile.get_id tile), variant_id = "0", - crossing_cost = (Struct.Tile.get_cost tile), - family = (Struct.Tile.get_family tile), + crossing_cost = (BattleMap.Struct.Tile.get_cost tile), + family = (BattleMap.Struct.Tile.get_family tile), triggers = [], borders = [] } @@ -147,8 +151,8 @@ solve tiles tile_inst = case (Dict.get tile_inst.class_id tiles) of (Just tile) -> {tile_inst | - crossing_cost = (Struct.Tile.get_cost tile), - family = (Struct.Tile.get_family tile) + crossing_cost = (BattleMap.Struct.Tile.get_cost tile), + family = (BattleMap.Struct.Tile.get_family tile) } Nothing -> -- cgit v1.2.3-70-g09d2