Difference between revisions of "Color"
From PotionEmpire Wiki
| Line 4: | Line 4: | ||
* If more than '''4''' ingredients in the mix has an extract of '''different colors''' the result will be '''black'''. | * If more than '''4''' ingredients in the mix has an extract of '''different colors''' the result will be '''black'''. | ||
* The white color is ignored, unless you mix 2 or more colors with white extract; in that case, if the majority of the combination results are white the potion will be white | * The white color is ignored, unless you mix 2 or more colors with white extract; in that case, if the majority of the combination results are white the potion will be white | ||
| − | * When mixing more then 2 ingredients, the most recurring combination result will be taken as valid. If there is no most recurring combination, the | + | * When mixing more then 2 ingredients, the most recurring combination result will be taken as valid. If there is no most recurring combination, the results will be combined again. |
== Combination results == | == Combination results == | ||
| Line 53: | Line 53: | ||
* yellow + orange = orange | * yellow + orange = orange | ||
| − | We have the following | + | We have the following combinations: |
* green = 1 | * green = 1 | ||
* purple = 1 | * purple = 1 | ||
* orange = 1 | * orange = 1 | ||
| − | Since there is not a most recurring combination, the | + | Since there is not a most recurring combination, the results will be combined again: |
| + | * green + purple = green | ||
| + | * green + orange = green | ||
| + | * purple + orange = red | ||
| + | |||
| + | The most recurrent combination is '''green''', so that will be the resulting color of the potion. | ||
Revision as of 16:14, 1 June 2021
The ingredients, and therefore the potions you can make, can have 8 colors:
black,
white,
red,
blue,
yellow,
orange,
green and
purple. When mixing two or more different colors, you must keep in mind that:
- If at least 1/3 of the ingredients used has a black extract, the result will be black.
- If more than 4 ingredients in the mix has an extract of different colors the result will be black.
- The white color is ignored, unless you mix 2 or more colors with white extract; in that case, if the majority of the combination results are white the potion will be white
- When mixing more then 2 ingredients, the most recurring combination result will be taken as valid. If there is no most recurring combination, the results will be combined again.
Combination results
Black
- + anything = black
Red
- + red = red
- + blue = purple
- + yellow = orange
- + purple = red
- + orange = red
- + green = green
Blue
- + blue = blue
- + yellow = green
- + purple = blue
- + orange = purple
- + green = blue
Yellow
- + yellow = yellow
- + purple = orange
- + orange = orange
- + green = green
Purple
- + purple = purple
- + orange = red
- + green = green
Orange
- + orange = orange
- + green = green
Green
- + green = green
White
- + white = white
Example
Lets say we are mixing 4 ingredients and their extract is respectively blue, yellow, orange and white. The parser will do the following operations:
- blue + yellow = green
- blue + orange = purple
- yellow + orange = orange
We have the following combinations:
- green = 1
- purple = 1
- orange = 1
Since there is not a most recurring combination, the results will be combined again:
- green + purple = green
- green + orange = green
- purple + orange = red
The most recurrent combination is green, so that will be the resulting color of the potion.