| summaryrefslogtreecommitdiff | 
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2018-07-04 16:24:10 +0200 | 
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2018-07-04 16:24:10 +0200 | 
| commit | be5f65c7acdc30851bd19a6f3b0f12b94d6a6ff8 (patch) | |
| tree | 47723f3974999c8a584d63873ab4cc10b2fd3fac | |
| parent | 2815ff9a8e7e4400cd07a5a33389542535a91def (diff) | |
See [master 80bac96] on the client's rep.
| -rw-r--r-- | src/battlemap/reply/bm_add_char.erl | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/src/battlemap/reply/bm_add_char.erl b/src/battlemap/reply/bm_add_char.erl index 4dab700..dd4bb4d 100644 --- a/src/battlemap/reply/bm_add_char.erl +++ b/src/battlemap/reply/bm_add_char.erl @@ -49,6 +49,7 @@ 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), @@ -78,6 +79,8 @@ generate (IX, Character, PlayerIX) ->           {<<"att">>, attributes_as_json(Attributes)},           {<<"awp">>, ActiveWeapon},           {<<"swp">>, SecondaryWeapon}, -         {<<"ar">>, bm_character:get_armor_id(Character)} +         {<<"ar">>, bm_character:get_armor_id(Character)}, +         {<<"mvt">>, sh_statistics:get_movement_points(Statistics)}, +         {<<"mhp">>, sh_statistics:get_health(Statistics)}        ]     }.  | 


