P Potion

From Candy Box 2 Wiki
Jump to: navigation, search

The P Potion has a random effect, mostly involving HP.

Effect[edit | edit source]

Source code for the effect.

First, check for turtle status and low HP.

  • If the Player is a turtle, the turtle effect is removed and the player loses 50% of current HP (rounded **up**).
  • Else, if the player has <8% HP, heal amount chosen randomly from 9 possible values (equal chance):
    • +200 HP
    • +400 HP
    • +600 HP
    • +50% HP (not rounded)
    • +65% HP (not rounded)
    • +80% HP (not rounded)
    • +10 HP
    • +7 HP (bugged: heals 10 instead)
    • +3 HP (bugged: heals 10 instead)

If the player is neither a turtle nor at low HP, you'll get a Normal effect, a Strange effect, or a Very Strange effect, with chances depending on how many P Potions have been used in the current quest.

Normal effect: One of:

  • 1/3 chance: Lose either 20% or 30% of max HP.
  • 2/3 chance: Gain either 20% or 30% of max HP.

Strange effect: One of (equal chance):

  • Immobilize player for 3 to 10 seconds.
  • Player becomes turtle for 3-10 seconds. (Turtle duration counts down only when player is not stopped from moving.)
  • Recover all HP.
  • Set HP to 10.

Very strange effect: One of (equal chance):

  • Cast Acid Rain, Fireball, and Teleport.
  • Cast 3 Acid Rains and Teleport.
  • Cast 4 Fireballs, with 3 Teleports in between: Fireball, Teleport, Fireball, Teleport, Fireball, Teleport, Fireball.

The effect strangeness chance depends on the number of P potions previously used, with strangeness increasing as more potions are used.

  • 1/(floor(p/2) + 1): Normal effect.
  • 1/(floor(p/6) + 1): Strange effect.
  • else: Very strange effect.
Effect chances
P pots used Normal Strange Very strange
0 100.0% 0.0% 0.0%
2 50.0% 50.0% 0.0%
4 33.3% 66.7% 0.0%
6 25.0% 37.5% 37.5%
8 20.0% 40.0% 40.0%
10 16.7% 41.7% 41.7%
12 14.3% 28.6% 57.1%
14 12.5% 29.2% 58.3%
16 11.1% 29.6% 59.3%
18 10.0% 22.5% 67.5%
20 9.1% 22.7% 68.2%
22 8.3% 22.9% 68.8%
24 7.7% 18.5% 73.8%
26 7.1% 18.6% 74.3%
28 6.7% 18.7% 74.7%
30 6.2% 15.6% 78.1%
32 5.9% 15.7% 78.4%
34 5.6% 15.7% 78.7%
36 5.3% 13.5% 81.2%
38 5.0% 13.6% 81.4%
40 4.8% 13.6% 81.6%
42 4.5% 11.9% 83.5%
44 4.3% 12.0% 83.7%
46 4.2% 12.0% 83.9%
48 4.0% 10.7% 85.3%
50 3.8% 10.7% 85.5%
52 3.7% 10.7% 85.6%
54 3.6% 9.6% 86.8%
56 3.4% 9.7% 86.9%
58 3.3% 9.7% 87.0%
60 3.2% 8.8% 88.0%
62 3.1% 8.8% 88.1%
64 3.0% 8.8% 88.2%
66 2.9% 8.1% 89.0%
68 2.9% 8.1% 89.0%
70 2.8% 8.1% 89.1%
72 2.7% 7.5% 89.8%
74 2.6% 7.5% 89.9%
76 2.6% 7.5% 89.9%
78 2.5% 7.0% 90.5%
80 2.4% 7.0% 90.6%
82 2.4% 7.0% 90.6%
84 2.3% 6.5% 91.2%
86 2.3% 6.5% 91.2%
88 2.2% 6.5% 91.3%
90 2.2% 6.1% 91.7%
92 2.1% 6.1% 91.8%
94 2.1% 6.1% 91.8%
96 2.0% 5.8% 92.2%
98 2.0% 5.8% 92.2%
100 2.0% 5.8% 92.3%
102 1.9% 5.4% 92.6%
104 1.9% 5.5% 92.7%
106 1.9% 5.5% 92.7%
108 1.8% 5.2% 93.0%
110 1.8% 5.2% 93.0%
112 1.8% 5.2% 93.1%
114 1.7% 4.9% 93.4%
116 1.7% 4.9% 93.4%
118 1.7% 4.9% 93.4%
120 1.6% 4.7% 93.7%

Brewing manual[edit | edit source]

Below is the description in the brewing manual of the P Potion

         _________________________________________   ________________________________________        
  _.-' | 8                                      \ /                                     9 | '-._   
 | | | |               The P potion              v                                        | | | |  
 | | | |               ¨¨¨¨¨¨¨¨¨¨¨¨              |                                        | | | |  
 | | | |   The P potion is a strange one. You    |                                        | | | |  
 | | | | cannot predict what it is going to do.  |                                        | | | |  
 | | | | It could heal you or damage you, make   |     Make a good use of the P potion    | | | |  
 | | | | you stronger or weaker, or even turn you|     ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨    | | | |  
 | | | | into someone (something?) else.         |   There are some rules which you can   | | | |  
 | | | |                                         | follow in order to get better results  | | | |  
 | | | |   And it's also hard to brew!           | when drinking the P potion. Although   | | | |  
 | | | |                                         | these rules were defined empirically,  | | | |  
 | | | |   Instructions :                        | they seem to work pretty well.         | | | |  
 | | | |    - Put 500 candies in your cauldron   |                                        | | | |  
 | | | |    - Mix for a few seconds              |   - The more you use P potions, the more | | |  
 | | | |    - Stop mixing                        | they seem to have strange effects.     | | | |  
 | | | |    - Add 100 times more candies than the|                                        | | | |  
 | | | | number of seconds you mixed. For example|   - If your health is very low, you    | | | |  
 | | | | if you mixed during 4 seconds, you'll   | should probably drink a P potion.      | | | |  
 | | | | need to add 400 candies. Do not multiply|                                        | | | |  
 | | | | this quantity, even if you want to make |   - Animals drinking P potions seem to | | | |  
 | | | | more than one potion.                   | react in a very bad way.               | | | |  
 | | | |    - Heat up until the water is lukewarm|                                        | | | |  
 | | | |    - Stop heating up                    |                                        | | | |  
 | | | |    - Add some lollipops                 |                                        | | | |  
 | | | |    - Mix                                |                                        | | | |  
 | | | |    - Put into bottles!                  |                                        | | | |  
 | | | |_________________________________________|________________________________________| | | |  
 | | |'__________________________________________^________________________________________'.| | |  
 |_|'___________________________________________/ \_________________________________________'.|_|