Pokéblock: Difference between revisions

→‎Flavors: Technically the multiplier is truncated to 2 decimal places, not rounded to the nearest hundredth https://github.com/pret/pokeruby/blob/0ea1e7620cc5fea1e651974442052ba9c52cdd13/src/berry_blender.c#L1998
m (→‎Feel: Better definition borrowed from smoothness)
(→‎Flavors: Technically the multiplier is truncated to 2 decimal places, not rounded to the nearest hundredth https://github.com/pret/pokeruby/blob/0ea1e7620cc5fea1e651974442052ba9c52cdd13/src/berry_blender.c#L1998)
Line 65: Line 65:
# Add together the respective flavors of all Berries being used (sum all spicy values, all dry values, and so on).
# Add together the respective flavors of all Berries being used (sum all spicy values, all dry values, and so on).
#:For instance, if {{b|Bluk}}, {{b|Nanab}}, and {{b|Wepear}} Berries are blended, the result of this step would be spicy: -1; dry: -1; sweet: 0; bitter: 1; and sour: 1.
#:For instance, if {{b|Bluk}}, {{b|Nanab}}, and {{b|Wepear}} Berries are blended, the result of this step would be spicy: -1; dry: -1; sweet: 0; bitter: 1; and sour: 1.
# Multiply the numbers from the previous result by 10 and subtract 1 from each flavor for every flavor that is negative.
# Multiply the numbers from the previous result by 10.<!--this step only exists because our flavor values are modified-->
#:Continuing the example above, the result of this step would be: spicy: -12; dry: -12; sweet: -2; bitter: 8; and sour: 8.
#:Continuing the example above: spicy: -10; dry: -10; sweet: 0; bitter: 10; and sour: 10.
# Set any numbers from the previous result that were negative to 0, then multiply them all by ''X'' and round the result to the nearest integer, where ''X'' is <code>''MaxRPM'' / 333 + 1</code> rounded down to the nearest hundredth place (that is, keeping the first two decimal places).
# Subtract 1 from each flavor for every flavor that is negative.
#:Continuing with the established example, if the maximum RPM reported at the end of blending is 110 RPM, then ''X'' = 1.33 and the result of this step&mdash;and the final values for the strengths of the flavors in the Pokéblock&mdash;is spicy: 0; dry: 0; sweet: 0; bitter: 11; and sour: 11.
#:Continuing the example above: spicy: -12; dry: -12; sweet: -2; bitter: 8; and sour: 8.
# Set any numbers from the previous result that were negative to 0.
#:Continuing the example above: spicy: 0; dry: 0; sweet: 0; bitter: 8; and sour: 8.
# Multiply all of the flavors by <math>\frac{RPM_{max}}{333} + 1</math>, {{wp|truncation|truncated}} to two decimal places (i.e. rounded down to the nearest hundredth). Round each result to the nearest integer (rounding half up).
#:Continuing with the established example, if the maximum RPM reported at the end of blending is 110.00 RPM, then the multiplier is 1.33 and the result of this step—and the final values for the strengths of the flavors in the Pokéblock—is spicy: 0; dry: 0; sweet: 0; bitter: 11; and sour: 11.


=====Color=====
=====Color=====