summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-06-13 13:32:43 +0200 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-06-13 13:32:43 +0200 |
commit | 499c0981df958643097f96365138df689432e5b4 (patch) | |
tree | 4ad005b50aa261612e6a46f4549c1046134d3644 /src/battle/src/View/Map/Character.elm | |
parent | 9eaf4c0a006e2a08fdd1e2248978c4ac5cdaef3b (diff) |
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.
Diffstat (limited to 'src/battle/src/View/Map/Character.elm')
-rw-r--r-- | src/battle/src/View/Map/Character.elm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/battle/src/View/Map/Character.elm b/src/battle/src/View/Map/Character.elm index 65c1f03..4b69ebc 100644 --- a/src/battle/src/View/Map/Character.elm +++ b/src/battle/src/View/Map/Character.elm @@ -80,7 +80,7 @@ get_alliance_class : ( (Html.Attribute Struct.Event.Type) ) get_alliance_class model char = - if ((Struct.Character.get_player_ix char) == model.player_ix) + if ((Struct.Character.get_player_index char) == model.player_ix) then (Html.Attributes.class "character-ally") else @@ -137,7 +137,7 @@ get_body_html char = (Html.Attributes.class ( "asset-character-team-body-" - ++ (String.fromInt (Struct.Character.get_player_ix char)) + ++ (String.fromInt (Struct.Character.get_player_index char)) ) ) ] |