From 662c78ad90f5f3a8609201726955cec3f1e712e1 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Fri, 3 May 2019 13:26:31 +0200 Subject: Didn't add portraits from equipement w/ ataxia. --- src/shared/struct/inventory/shr_inventory.erl | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/shared/struct/inventory/shr_inventory.erl b/src/shared/struct/inventory/shr_inventory.erl index 0396b0a..5a95842 100644 --- a/src/shared/struct/inventory/shr_inventory.erl +++ b/src/shared/struct/inventory/shr_inventory.erl @@ -366,22 +366,28 @@ ataxia_add_equipment (Eq, Inv) -> {S3Inv, Ataxic3} = ataxia_add_glyph_board(shr_equipment:get_glyph_board_id(Eq), S2Inv), - {S4Inv, Ataxic4s} = + {S4Inv, Ataxic4} = + ataxia_add_portrait(shr_equipment:get_portrait_id(Eq), S3Inv), + + {S5Inv, Ataxic5s} = lists:foldl ( fun (GlyphID, {PrevInv, PrevAtaxic}) -> {NewInv, NewAtaxic} = ataxia_add_glyph(GlyphID, PrevInv), {NewInv, [NewAtaxic|PrevAtaxic]} end, - {S3Inv, []}, + {S4Inv, []}, shr_equipment:get_glyph_ids(Eq) ), { - S4Inv, + S5Inv, ataxic:optimize ( - ataxic:sequence([Ataxic0, Ataxic1, Ataxic2, Ataxic3|Ataxic4s]) + ataxic:sequence + ( + [Ataxic0, Ataxic1, Ataxic2, Ataxic3, Ataxic4 |Ataxic5s] + ) ) }. -- cgit v1.2.3-70-g09d2