From 499c0981df958643097f96365138df689432e5b4 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Thu, 13 Jun 2019 13:32:43 +0200 Subject: Adds AoO pathfinding & temporary representation. The animation manager does not work correctly though: when a move action has been interrupted, it will rewind like if there was only the last movement part, yet play back all parts, landing the character at the wrong location. --- src/shared/battle-map/BattleMap/View/Tile.elm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/shared/battle-map/BattleMap/View/Tile.elm') diff --git a/src/shared/battle-map/BattleMap/View/Tile.elm b/src/shared/battle-map/BattleMap/View/Tile.elm index d2bf044..1d92493 100644 --- a/src/shared/battle-map/BattleMap/View/Tile.elm +++ b/src/shared/battle-map/BattleMap/View/Tile.elm @@ -10,6 +10,8 @@ import Html import Html.Attributes import Html.Events +import Set + -- Battle Map ------------------------------------------------------------------ import Constants.UI import Constants.IO @@ -56,6 +58,21 @@ get_content_html : ( ) get_content_html tile = ( + (Html.div + [ + (Html.Attributes.class "tile-icon-dg") + ] + ( + case + (Set.size + (BattleMap.Struct.TileInstance.get_triggers tile) + ) + of + 0 -> [] + other -> [(Html.text (String.fromInt other))] + ) + ) + :: (Html.div [ (Html.Attributes.class "tile-icon-bg"), -- cgit v1.2.3-70-g09d2