Skip to content

Fix "combine" breaking dye mixes#1596

Open
Snowstar38 wants to merge 2 commits into
DFHack:masterfrom
Snowstar38:master
Open

Fix "combine" breaking dye mixes#1596
Snowstar38 wants to merge 2 commits into
DFHack:masterfrom
Snowstar38:master

Conversation

@Snowstar38

Copy link
Copy Markdown

There was a bug where using combine with mixed dyes would revert the mix to one of its component parts.

Ex: You have 2 stacks of 2 Dye A, 3 stacks of 1 Dye B, and 1 stack of 3 of the mix Dye AB

Expected behavior: use combine, you end up with 1 stack of 4 Dye A, 1 stack of 3 Dye B, and 1 stack of 3 Dye AB

Actual behavior: use combine, you end up with 1 stack of 7 Dye A, 1 stack of 3 Dye B, and no Dye AB (because it combined AB with A)

There was a bug where using combine with mixed dyes would revert the mix to one of its component parts.

Ex: You have 2 stacks of 2 Dye A, 3 stacks of 1 Dye B, and 1 stack of 3 of the mix Dye AB
Expected behavior: use combine, you end up with 1 stack of 4 Dye A, 1 stack of 3 Dye B, and 1 stack of 3 Dye AB
Actual behavior: use combine, you end up with 1 stack of **7** Dye A, 1 stack of 3 Dye B, and no Dye AB (because it combined AB with A)
Turns out that dye mixing does not like there being multiple units and/or stacks in a bag and it bugs out - removing dyes altogether for now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant