summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2019-05-03 13:26:31 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2019-05-03 13:26:31 +0200 |
commit | 662c78ad90f5f3a8609201726955cec3f1e712e1 (patch) | |
tree | 8c8f4b1b71a89f741b53ff3579777279101ab49a | |
parent | 91078b61683ad5f5fe5517c0de2bc03aab762bd5 (diff) |
Didn't add portraits from equipement w/ ataxia.
-rw-r--r-- | src/shared/struct/inventory/shr_inventory.erl | 14 |
1 files 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] + ) ) }. |