From 9b424b11dbea33a41b2129daf232557515de9db1 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Tue, 28 Aug 2018 23:29:55 +0200 Subject: 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. --- src/battle/reply/btl_add_tile.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/battle/reply/btl_add_tile.erl') diff --git a/src/battle/reply/btl_add_tile.erl b/src/battle/reply/btl_add_tile.erl index c9cd18e..bf76547 100644 --- a/src/battle/reply/btl_add_tile.erl +++ b/src/battle/reply/btl_add_tile.erl @@ -23,6 +23,7 @@ generate (Tile) -> {<<"msg">>, <<"add_tile">>}, {<<"id">>, shr_tile:get_class_id(Tile)}, {<<"nam">>, shr_tile:get_name(Tile)}, - {<<"ct">>, shr_tile:get_cost(Tile)} + {<<"ct">>, shr_tile:get_cost(Tile)}, + {<<"omni">>, shr_omnimods:encode(shr_tile:get_omnimods(Tile))} ] }. -- cgit v1.2.3-70-g09d2