Skip to content

Commit

Permalink
Enclave flair
Browse files Browse the repository at this point in the history
Janiczek committed Nov 3, 2024
1 parent dac1caf commit fcfc59f
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/Data/Map/Location.elm
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ module Data.Map.Location exposing
, allLocations
, coords
, default
, enclave
, location
, name
, size
@@ -344,3 +345,8 @@ dict =
location : TileNum -> Maybe Location
location tile =
Dict.get tile dict


enclave : TileCoords
enclave =
coords EnclavePlatform
5 changes: 4 additions & 1 deletion src/Frontend.elm
Original file line number Diff line number Diff line change
@@ -1441,7 +1441,10 @@ mapView { mapMouseCoords, userWantsToShowAreaDanger } _ player =
, ( "--tile-coord-y", String.fromInt y )
]
]
[ if notAllPassable then
[ if ( x, y ) == Location.enclave && playerCoords /= Location.enclave then
H.text "You'll have to try harder than that."

else if notAllPassable then
H.text "Not all tiles in your path are passable."

else

0 comments on commit fcfc59f

Please sign in to comment.