summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2020-01-15 17:22:01 +0100 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2020-01-15 17:22:01 +0100 |
commit | 83543758b9682f0e476809f207957471fcbbff5b (patch) | |
tree | 89b1f3a64810e47302b103acde5b608fd8d5327d /src/shared/battle-map/BattleMap/Struct | |
parent | dc7c1857845a5da7cd6cba178c16fa8ea8c68cec (diff) |
...
Diffstat (limited to 'src/shared/battle-map/BattleMap/Struct')
-rw-r--r-- | src/shared/battle-map/BattleMap/Struct/Map.elm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/battle-map/BattleMap/Struct/Map.elm b/src/shared/battle-map/BattleMap/Struct/Map.elm index cb0143e..cbab5b2 100644 --- a/src/shared/battle-map/BattleMap/Struct/Map.elm +++ b/src/shared/battle-map/BattleMap/Struct/Map.elm @@ -15,7 +15,7 @@ module BattleMap.Struct.Map exposing new, set_tile_to, solve_tiles, - try_getting_tile_at + maybe_get_tile_at ) -- Elm ------------------------------------------------------------------------- @@ -159,12 +159,12 @@ new width height tiles = markers = (Dict.empty) } -try_getting_tile_at : ( +maybe_get_tile_at : ( BattleMap.Struct.Location.Type -> Type -> (Maybe BattleMap.Struct.TileInstance.Type) ) -try_getting_tile_at loc map = +maybe_get_tile_at loc map = if (has_location loc map) then (Array.get (location_to_index loc map) map.content) else Nothing @@ -185,7 +185,7 @@ get_omnimods_at : ( Battle.Struct.Omnimods.Type ) get_omnimods_at loc dataset map = - case (try_getting_tile_at loc map) of + case (maybe_get_tile_at loc map) of Nothing -> (Battle.Struct.Omnimods.none) (Just tile_inst) -> (BattleMap.Struct.Tile.get_omnimods |