Difference between revisions of "Color"
From PotionEmpire Wiki
| Line 5: | Line 5: | ||
* When mixing more then 2 ingredients, the most recurring color result will be taken as valid. | * When mixing more then 2 ingredients, the most recurring color result will be taken as valid. | ||
| − | + | == 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: | 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 + yellow = green |
| − | blue + orange = purple | + | * blue + orange = purple |
| − | blue + white = blue | + | * blue + white = blue |
| − | yellow + orange = orange | + | * yellow + orange = orange |
| − | yellow + white = yellow | + | * yellow + white = yellow |
| − | orange + white = orange | + | * orange + white = orange |
We have the following occurrences: | We have the following occurrences: | ||
| − | green = 1 | + | * green = 1 |
| − | purple = 1 | + | * purple = 1 |
| − | blue = 1 | + | * blue = 1 |
| − | yellow = 1 | + | * yellow = 1 |
| − | ''orange = 2'' | + | * ''orange = 2'' |
| − | The most recurrent is '''orange''', so this will be the final result. | + | The most recurrent is '''orange''', so this will be the final result. |
Revision as of 13:22, 27 May 2014
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 then 4 ingredients in the mix has an extract of different colors the result will be black.
- When mixing more then 2 ingredients, the most recurring color result will be taken as valid.
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
- blue + white = blue
- yellow + orange = orange
- yellow + white = yellow
- orange + white = orange
We have the following occurrences:
- green = 1
- purple = 1
- blue = 1
- yellow = 1
- orange = 2
The most recurrent is orange, so this will be the final result.