Sphere: Difference between revisions

1,303 bytes added ,  27 November 2021
→‎Burying spheres: Attempting to improve the clarity of this section: Renaming variables to meaningful names. | I had trouble understanding the previous text until I actually worked through the example calculations, so figured the working for them would be valuable.
(Breaking into sections, using Extension:Math, adding some placeholders for BDSP)
(→‎Burying spheres: Attempting to improve the clarity of this section: Renaming variables to meaningful names. | I had trouble understanding the previous text until I actually worked through the example calculations, so figured the working for them would be valuable.)
Line 21: Line 21:
==Burying spheres==
==Burying spheres==
In Pokémon Diamond, Pearl, and Platinum, the player can bury spheres to combine or grow them. This is not possible in Pokémon Brilliant Diamond and Shining Pearl.
In Pokémon Diamond, Pearl, and Platinum, the player can bury spheres to combine or grow them. This is not possible in Pokémon Brilliant Diamond and Shining Pearl.
A player can only bury 99 Spheres at a time; attempting to bury more causes the oldest buried Sphere to disappear. A Sphere Radar can be unlocked for a player's base, which can be used to help the player find the Spheres they have buried.


===Combining spheres===
===Combining spheres===
To get larger Spheres, they can be combined by burying more than one of the same color Sphere in the same spot. When combined, the size of the resulting Sphere is determined by the following formula:
To get larger Spheres, they can be combined by burying more than one of the same color Sphere in the same spot.
 
When combined, the size of the resulting Sphere is determined by the following formula:
 
<math>newsize = \max(size_n) + \left(\left\lfloor{size_1 \over 5}\right\rfloor + 1\right) + \left(\left\lfloor{size_2 \over 5}\right\rfloor + 1\right) + \left(\left\lfloor{size_3 \over 5}\right\rfloor + 1\right) \ldots</math>
 
If spheres are buried on top of a sphere that has already grown at least once since a sphere was buried there, the new size is instead determined by the following formula:
 
<math>newsize = size_{buried} + \max(size_n) + \left(\left\lfloor{size_1 \over 5}\right\rfloor + 1\right) + \left(\left\lfloor{size_2 \over 5}\right\rfloor + 1\right) + \left(\left\lfloor{size_3 \over 5}\right\rfloor + 1\right) \ldots</math>


<math>X + \left(\left\lfloor{a \over 5}\right\rfloor + 1\right) + \left(\left\lfloor{b \over 5}\right\rfloor + 1\right) + \left(\left\lfloor{c \over 5}\right\rfloor + 1\right) \ldots</math>
Where <math>size_{buried}</math> is the size of previously buried Sphere that has grown, <math>\max(size_n)</math> is the size of the largest Sphere buried (excluding any previously-buried grown Sphere), and <math>size_n</math> are the respective sizes of the buried spheres other than the largest Sphere and previously-buried grown Sphere. In the event of a tie for the largest size, one of the largest Spheres will be used as <math>size_n</math> while the others of the same size will be treated like any other size Sphere.


Unless the buried Sphere has grown at least once since a Sphere was added (or grown without a Sphere being added), in which case the formula is:
====Example====
Burying a Prism Sphere 15, a Prism Sphere 12, a Prism Sphere 7, and two Prism Sphere 1s produces a Prism Sphere 22.


<math>B + X + \left(\left\lfloor{a \over 5}\right\rfloor + 1\right) + \left(\left\lfloor{b \over 5}\right\rfloor + 1\right) + \left(\left\lfloor{c \over 5}\right\rfloor + 1\right) \ldots</math>
<math>
\begin{align}
newsize &= 15 + \left(\left\lfloor{12 \over 5}\right\rfloor + 1\right) + \left(\left\lfloor{7 \over 5}\right\rfloor + 1\right) + \left(\left\lfloor{1 \over 5}\right\rfloor + 1\right) + \left(\left\lfloor{1 \over 5}\right\rfloor + 1\right) \\
&= 15 + \left(\left\lfloor{2.4}\right\rfloor + 1\right) + \left(\left\lfloor{1.4}\right\rfloor + 1\right) + \left(\left\lfloor{0.2}\right\rfloor + 1\right) + \left(\left\lfloor{0.2}\right\rfloor + 1\right) \\
&= 15 + \left(2 + 1\right) + \left(1 + 1\right) + \left(0 + 1\right) + \left(0 + 1\right) \\
&= 15 + 3 + 2 + 1 + 1 \\
&= 22
\end{align}
</math>


Where B is the size of a grown buried Sphere, X is the size of the otherwise largest Sphere buried, and a, b, c, and so on are the sizes of the other Spheres. All non-integer values are rounded down before the adding.
Burying a Blue Sphere 15, Blue Sphere 3, Blue Sphere 22, on top of a Blue Sphere 3 that has grown by 2 (i.e. now a Blue Sphere 5) yields a Blue Sphere 32.


In the event of a tie for the largest size, the largest Sphere size is used both as X and one of the other lowercase variables. For instance, burying a Prism Sphere 15, a Prism Sphere 12, a Prism Sphere 7, and two Prism Sphere 1s produces a Prism Sphere 22.  Burying a Blue Sphere 15, Blue Sphere 3, Blue Sphere 22, on top of a Blue Sphere 3 that has grown by 2 yields a Blue Sphere 32.
<math>
\begin{align}
newsize &= (3 + 2) + 22 + \left(\left\lfloor{15 \over 5}\right\rfloor + 1\right) + \left(\left\lfloor{3 \over 5}\right\rfloor + 1\right) \\
&= 5 + 22 + \left(\left\lfloor{3}\right\rfloor + 1\right) + \left(\left\lfloor{0.6}\right\rfloor + 1\right) \\
&= 27 + \left(3 + 1\right) + \left(0 + 1\right) \\
&= 27 + 4 + 1 \\
&= 32
\end{align}
</math>


===Growing spheres===
===Growing spheres===
{{incomplete|section|needs=How fast do spheres grow?}}
{{incomplete|section|needs=How fast do spheres grow?}}
Buried Spheres can also naturally grow over time. Red, Green, and Blue Spheres grow faster than Pale and Prism Spheres. Regardless of what a player does, though, the maximum level for a Sphere is 99.  Additionally, only 99 Spheres can be buried at a time.  Attempting to bury more causes the oldest Sphere to disappear. A Sphere Radar can be unlocked for a player's base, which can be used to help the player find the Spheres they've buried.
Buried Spheres can also naturally grow over time. Red, Green, and Blue Spheres grow faster than Pale and Prism Spheres. Regardless of what a player does, though, the maximum level for a Sphere is 99.


==Flavor text==
==Flavor text==