summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-07-04 18:10:08 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-07-04 18:10:08 +0200 |
commit | df59024199c387903e3d4a901171939a358489d3 (patch) | |
tree | 398ae5fc6276818bd26df172ce39a275bf42343d /src/battlemap/reply/bm_add_char.erl | |
parent | be5f65c7acdc30851bd19a6f3b0f12b94d6a6ff8 (diff) |
Revert "See [master 80bac96] on the client's rep."
This reverts commit be5f65c7acdc30851bd19a6f3b0f12b94d6a6ff8.
Okay, looks like it's caused by the fact that "-ceiling(X) =/= ceiling(-X)".
Woops.
Diffstat (limited to 'src/battlemap/reply/bm_add_char.erl')
-rw-r--r-- | src/battlemap/reply/bm_add_char.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/battlemap/reply/bm_add_char.erl b/src/battlemap/reply/bm_add_char.erl index dd4bb4d..4dab700 100644 --- a/src/battlemap/reply/bm_add_char.erl +++ b/src/battlemap/reply/bm_add_char.erl @@ -49,7 +49,6 @@ attributes_as_json (Attributes) -> -> {list(any())}. generate (IX, Character, PlayerIX) -> Attributes = bm_character:get_attributes(Character), - Statistics = bm_character:get_statistics(Character), {ActiveWeapon, SecondaryWeapon} = bm_character:get_weapon_ids(Character), CharacterPlayerIX = bm_character:get_player_index(Character), Location = bm_character:get_location(Character), @@ -79,8 +78,6 @@ generate (IX, Character, PlayerIX) -> {<<"att">>, attributes_as_json(Attributes)}, {<<"awp">>, ActiveWeapon}, {<<"swp">>, SecondaryWeapon}, - {<<"ar">>, bm_character:get_armor_id(Character)}, - {<<"mvt">>, sh_statistics:get_movement_points(Statistics)}, - {<<"mhp">>, sh_statistics:get_health(Statistics)} + {<<"ar">>, bm_character:get_armor_id(Character)} ] }. |