From 0ee8dac60aff5ec9b22a7ed4b3f05fd24effa28a Mon Sep 17 00:00:00 2001 From: richi3f Date: Mon, 9 Dec 2019 11:51:03 +0100 Subject: [PATCH] Update index.html --- index.html | 70 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 46 insertions(+), 24 deletions(-) diff --git a/index.html b/index.html index 9d0d722..8ddaaa4 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,7 @@ + Candy Calc @@ -10,25 +11,27 @@
-

Candy Calc

+

Candy Calc

This calculator is for Exp. Candy optimization in Pokémon Sword & Shield. Read the FAQ for more information.

-
- - - +
+
+
+ + +
+ +
+
- - +
+
- - - - - -
+
+
+ @@ -43,7 +46,7 @@ - + @@ -54,11 +57,14 @@

FAQ

What does this calculator do?

-

It calculates the optimal candy distribution that satisfies the user input. In other words, it tells you how many candy you should feed your Pokémon to reach a certain level.

+
+

It calculates the optimal amount of candy you should feed your Pokémon to reach a certain level.

+

This can be useful for Hyper Training, evolving, or teaching a level-up move to a Pokémon.

+

What are Exp. Candy?

-

Exp. Candy are items introduced in Pokémon Sword & Shield that grant Exp. Points when consumed by Pokémon. There are 5 varieties, each with a different yield as shown in the following table:

+

Exp. Candy are a new kind of item introduced in Pokémon Sword & Shield. These grant Exp. Points when consumed by Pokémon. As shown below, there are 5 sizes, each with a different Experience yield:

@@ -94,23 +100,39 @@

Where do you find Exp. Candy?

These items are drop rewards from Max Raid Battles. Raids with a higher number of stars will output larger candy.

-

Additionally, hikers spread throughout the Wild Area may hand out candy in exchange for Watts.

+

Additionally, hikers spread throughout the Wild Area may hand out candy in exchange for Watts and you may also receive them as prizes from the Battle Cafés. However, farming candy through these methods is less efficient than raids.

What does optimal mean?

-

In a perfect world, candy is an unlimited resource that streams directly from your pockets into the bellies of your dearest battle companions. Since this is not the case, it is wise to carefully allocate the candy in order to maximize its usefulness. Surely, there is nothing stopping you from randomly feeding candy to your Pokémon and stopping when you feel like it.

+

In a perfect world, candy is an unlimited resource that streams directly into the bellies of your dearest battle companions. Since this is not the case, it is wise to carefully allocate your candy in order to maximize their usefulness and prevent any waste of resources.

+

To calculate the optimal distribution of candy, this calculator solves a mixed-integer linear programming problem. In this problem, the objective function is set to minimize the number of candy required (ci) to meet certain Experience (E). At the same time, the surplus of Exp. Points is also minimized by taking into account the yields of each candy variant (Yi). In mathematical notation, this is represented as follows:

- - +
+
minimize
+
Σ(Yi + 1) ci
+
subject to
+
EYi ci
+
i ∈ { XS, S, M, L, XL }
+
+ +

What about Rare Candy?

+
+

Unlike Exp. Candy, Rare Candy yield an exponential amount of Experience. This means that consuming a Rare Candy at Lv. 1 does not equate consuming a Rare Candy at Lv. 99. Conversely, an Exp. Candy XL grants the same amount of Exp. Points regardless of level. Since the candy distribution problem has been posed as a linear problem, Rare Candies are not factored in.

+

If you want to take Rare Candies into consideration, lower the target level by the amount of candy you want to feed your Pokémon and remember that these should be applied after the Exp. Candy.

+
+ +
+

+ © of richi3f,
+ Pokémon is © of Nintendo, - +

+
@@ -118,4 +140,4 @@ - \ No newline at end of file +