summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2017-11-28 13:38:04 +0100 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2017-11-28 13:38:04 +0100 |
commit | 80358376b9300a0d73cb8b62dfa9fdd65240ca66 (patch) | |
tree | 6eb82383ba1fdfb33c68dbe699bc2a4b68763d24 /src/battlemap_instance.erl | |
parent | 299a37b6d245dbb9806f4922cf492009775a8bf0 (diff) |
Starting to work on attacks.
I find it difficult to keep the code tidy in Erlang...
Diffstat (limited to 'src/battlemap_instance.erl')
-rw-r--r-- | src/battlemap_instance.erl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/battlemap_instance.erl b/src/battlemap_instance.erl index 3f4b6cd..afe6e32 100644 --- a/src/battlemap_instance.erl +++ b/src/battlemap_instance.erl @@ -27,13 +27,13 @@ can_play_char_instance ) -> ( ( - array:get - ( - BattlemapInstance#battlemap_instance.curr_player, - BattlemapInstance#battlemap_instance.players - ) - =:= - PlayerID + array:get + ( + BattlemapInstance#battlemap_instance.curr_player, + BattlemapInstance#battlemap_instance.players + ) + =:= + PlayerID ) and lists:member(CharInstID, BattlemapInstance#battlemap_instance.rem_chars) |