summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2017-11-22 16:45:05 +0100
committernsensfel <SpamShield0@noot-noot.org>2017-11-22 16:45:05 +0100
commit9dd67cd5c63ac2a050a517c313f2e343f008421b (patch)
tree44d774f751b82cb09996625c3eb2c9aaecb1330f /www
parent15515f36d7bbd53c7049c597ea2c6f942dc39ded (diff)
Got the player turns to work... I think.
Diffstat (limited to 'www')
-rw-r--r--www/handler/battlemap/character_turn.yaws10
1 files changed, 7 insertions, 3 deletions
diff --git a/www/handler/battlemap/character_turn.yaws b/www/handler/battlemap/character_turn.yaws
index e0a60a8..83a3570 100644
--- a/www/handler/battlemap/character_turn.yaws
+++ b/www/handler/battlemap/character_turn.yaws
@@ -51,8 +51,8 @@ handle (Req) ->
battlemap_instance:can_play_char_instance
(
BattlemapInstance,
- Input#input.char_id,
- Input#input.player_id
+ Input#input.player_id,
+ Input#input.char_id
),
{X, Y} =
battlemap:cross
@@ -66,7 +66,11 @@ handle (Req) ->
NewBattlemapInstance =
battlemap_instance:set_char_instance
(
- BattlemapInstance,
+ battlemap_instance:post_play_char_instance
+ (
+ BattlemapInstance,
+ Input#input.char_id
+ ),
Input#input.char_id,
character_instance:set_location(CharInst, X, Y)
),