summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2017-11-22 16:45:05 +0100 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2017-11-22 16:45:05 +0100 |
commit | 9dd67cd5c63ac2a050a517c313f2e343f008421b (patch) | |
tree | 44d774f751b82cb09996625c3eb2c9aaecb1330f /www/handler/battlemap/character_turn.yaws | |
parent | 15515f36d7bbd53c7049c597ea2c6f942dc39ded (diff) |
Got the player turns to work... I think.
Diffstat (limited to 'www/handler/battlemap/character_turn.yaws')
-rw-r--r-- | www/handler/battlemap/character_turn.yaws | 10 |
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) ), |