summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-08-10 14:49:13 +0200 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-08-10 14:49:13 +0200 |
commit | 9d45e68f8daa748c58e28c77434b1377c508e32f (patch) | |
tree | b7f254c97bc3f533bbd9d5a731def016a7f90376 /src/battle/struct/btl_character.erl | |
parent | 65c103dae552d511a0ec3bd03ef402ecc71501e3 (diff) |
Statistics -> Attributes.
Diffstat (limited to 'src/battle/struct/btl_character.erl')
-rw-r--r-- | src/battle/struct/btl_character.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/battle/struct/btl_character.erl b/src/battle/struct/btl_character.erl index 790c809..f5f7ee0 100644 --- a/src/battle/struct/btl_character.erl +++ b/src/battle/struct/btl_character.erl @@ -111,10 +111,10 @@ -> {boolean(), integer()}. handle_max_health_change (OldBaseChar, NewBaseChar, OldHealth) -> OldMaxHealth = - shr_statistics:get_health(shr_character:get_statistics(OldBaseChar)), + shr_attributes:get_health(shr_character:get_attributes(OldBaseChar)), NewMaxHealth = - shr_statistics:get_health(shr_character:get_statistics(NewBaseChar)), + shr_attributes:get_health(shr_character:get_attributes(NewBaseChar)), case (OldMaxHealth == NewMaxHealth) of true -> {false, OldHealth}; @@ -427,14 +427,14 @@ new Location, Base ) -> - Statistics = shr_character:get_statistics(Base), + Attributes = shr_character:get_attributes(Base), #btl_char { player_ix = PlayerIX, rank = Rank, location = Location, - current_health = shr_statistics:get_health(Statistics), + current_health = shr_attributes:get_health(Attributes), is_active = (PlayerIX == 0), is_defeated = false, base = Base |