Skip to content
Snippets Groups Projects
Commit f66ed39d authored by Vrelnir's avatar Vrelnir
Browse files

Merge branch 'Split_clothes_rebuying_fixing' into 'dev'

Bug fixed for split clothes rebuying

See merge request !2379
parents 47b90ce4 85469ba3
No related branches found
No related tags found
No related merge requests found
......@@ -656,13 +656,14 @@
<<elseif $money gte $_cost>>
<<generalSend $_return $_slot $_setupItem.index $_item.colour $_item.accessory_colour>>
<<if $_item.one_piece is "split">>
<<set $_return[$_slot].last().one_piece to "split">>
<<set $_selectedWardrobe to selectWardrobe($_return)>>
<<set $_selectedWardrobe[$_slot].last().one_piece to "split">>
<<if $_item.outfitPrimary>>
<<for $_rangeSlot, $_value range $_return[$_slot].last().outfitPrimary>>
<<set $_return[$_slot].last().outfitPrimary[$_rangeSlot] to "split">>
<<for $_rangeSlot, $_value range $_selectedWardrobe[$_slot].last().outfitPrimary>>
<<set $_selectedWardrobe[$_slot].last().outfitPrimary[$_rangeSlot] to "split">>
<</for>>
<<elseif $_outfitSecondary>>
<<set $_return[$_slot].last().outfitSecondary[1] to "split">>
<<elseif $_item.outfitSecondary>>
<<set $_selectedWardrobe[$_slot].last().outfitSecondary[1] to "split">>
<</if>>
<</if>>
<<set $money -= $_cost>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment