summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-03-03 20:28:46 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-03-03 20:28:46 +0100
commit99fcad8cbe31ba23d9c079b62e8a174c5b3ddf1b (patch)
tree440318ff35360271f32708afab0c3ee696053c66 /src/battle
parentdc119102df0076e45ee6c484e361c3fff3e6e2dd (diff)
Fixing stuff that made Dialyzer output warnings.
Diffstat (limited to 'src/battle')
-rw-r--r--src/battle/attack.erl3
-rw-r--r--src/battle/movement.erl2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/battle/attack.erl b/src/battle/attack.erl
index 7384f78..9baf798 100644
--- a/src/battle/attack.erl
+++ b/src/battle/attack.erl
@@ -28,7 +28,8 @@
critical/0,
attack_category/0,
attack_effect/0,
- attack_desc/0
+ attack_desc/0,
+ attack_order_with_parry/0
]
).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/src/battle/movement.erl b/src/battle/movement.erl
index 720b60c..588fad9 100644
--- a/src/battle/movement.erl
+++ b/src/battle/movement.erl
@@ -49,7 +49,7 @@ cross (Battlemap, ForbiddenLocations, [Step|NextSteps], Cost, Location) ->
-spec cross
(
battlemap:struct(),
- array:array(location:type()),
+ list(location:type()),
list(direction:enum()),
location:type()
)