summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-07-04 16:24:10 +0200
committernsensfel <SpamShield0@noot-noot.org>2018-07-04 16:24:10 +0200
commitbe5f65c7acdc30851bd19a6f3b0f12b94d6a6ff8 (patch)
tree47723f3974999c8a584d63873ab4cc10b2fd3fac /src/battlemap
parent2815ff9a8e7e4400cd07a5a33389542535a91def (diff)
See [master 80bac96] on the client's rep.
Diffstat (limited to 'src/battlemap')
-rw-r--r--src/battlemap/reply/bm_add_char.erl5
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)}
]
}.