From df59024199c387903e3d4a901171939a358489d3 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Wed, 4 Jul 2018 18:10:08 +0200 Subject: 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. --- src/battlemap/reply/bm_add_char.erl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/battlemap/reply/bm_add_char.erl') 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)} ] }. -- cgit v1.2.3-70-g09d2