Difference between revisions of "Pokéblock"

→‎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)
# 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.
# Multiply the numbers from the previous result by 10.<!--this andstep subtractonly 1exists frombecause eachour flavor forvalues everyare flavor that is negative.modified-->
#:Continuing the example above, the result of this step would be: spicy: -1210; dry: -1210; sweet: -20; bitter: 810; and sour: 810.
# Subtract 1 from each flavor for every flavor that is negative.
# 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).
#: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;isabove: spicy: 0-12; dry: 0-12; sweet: 0-2; bitter: 118; and sour: 118.
# 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=====