| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2018-08-28 23:29:55 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2018-08-28 23:29:55 +0200 |
| commit | 9b424b11dbea33a41b2129daf232557515de9db1 (patch) | |
| tree | 97cbe449c02e4273c79448859ceac722a06524b1 /src/battle/reply/btl_add_armor.erl | |
| parent | 68d3f1d7fd3703a8aef68bd6e9f89a84eab5e539 (diff) | |
Still propagating the changes...
It'll require the attributes and statistics being recalculated every
time a character is used, which isn't great. Can't exactly avoid it
though: moving and changing weapon are both likely to alter them, and
people rarely attack without doing one or the other.
Diffstat (limited to 'src/battle/reply/btl_add_armor.erl')
| -rw-r--r-- | src/battle/reply/btl_add_armor.erl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/battle/reply/btl_add_armor.erl b/src/battle/reply/btl_add_armor.erl index 01c99ad..d78edc5 100644 --- a/src/battle/reply/btl_add_armor.erl +++ b/src/battle/reply/btl_add_armor.erl @@ -12,11 +12,6 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% LOCAL FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --spec encode_category (shr_armor:category()) -> binary(). -encode_category (kinetic) -> <<"k">>; -encode_category (leather) -> <<"l">>; -encode_category (chain) -> <<"c">>; -encode_category (plate) -> <<"p">>. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% EXPORTED FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -28,7 +23,6 @@ generate (Armor) -> {<<"msg">>, <<"add_armor">>}, {<<"id">>, shr_armor:get_id(Armor)}, {<<"nam">>, shr_armor:get_name(Armor)}, - {<<"ct">>, encode_category(shr_armor:get_category(Armor))}, - {<<"cf">>, shr_armor:get_coefficient(Armor)} + {<<"omni">>, shr_omnimods:encode(shr_armor:get_omnimods(Armor))} ] }. |


