Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - The Mathematics of Love Mixology by iloath
- This assumes you follow mus test-> mys test-> mox test for HCCS
- The last love potion decision point is the mox stats service quest, we must determine whether to (A) use the love potion on hand or (B) not. We use it if the mox component of the potion is positive which happens in 21 of the 42 scenarios as Moxie (de)buff = +105 - (N mod 42)*5. We can calculate the expected stat gain during the mox test if we reroll the potion before the mox test and discard negative results, which is 27.5.
- https://pastebin.com/Tiph1kmC
- Now consider the previous test(mys), just before we take the mys test we must decide whether to (A) use potion on test and reroll for mox or (B) save potion, saving potion can lead to either (B1) using for mox test or (B2) discarding the potion. The expected return in the future for (A) is the current love potion's mys and the average gain next quest where we have a rerolled potion, this is the 27.5 calculated above as we discard the potion is the mox is negative. The expected return in the future for (B1) is the current potion's mox it can be negative since we cannot reroll if we don't use for this test. The expected return in the future for (B2) is obviously 0. The optimal decision here is obviously to pick the choice with the highest return given our current potion. Calculate the expected return for all 3 choice and pick the highest. [max(mys+27.5,mox,0.0)]
- A use on mys E(mox) = 27.5 E(mys+mox)=mys+27.5
- B1 use on mox(skip mys&use on mox) E(mox) = mox E(mys+mox)=mox
- B2 discard/fold(skip mys&mox) E(mox) = 0 E(mys+mox)=0
- Now consider if we reroll the potion before the mys test, there are 35*42 scenarios as Mysticality (de)buff = +102 - (N mod 35)*6 and we also take mox into consideration as we save the potion is mys is too negative or mox is too high. We can calculate the best choice for each of the 35*42 scenarios and the expected return. We can obtain the expected stat gain during the mys AND mox test if we reroll the potion before the mys test and pick OPTIMAL results, which is 56.43333333 ~= 56.5.
- Now consider the previous test(mus), just before we take the mus test we must decide whether to (A) use potion on test and reroll for mys and mox or (B) save potion, saving potion can lead to either (B1) using for mys test or (B2) using for mox test or (B3) discarding the potion. The expected return in the future for (A) is the current love potion's mus and the average gain in future quest where we have a rerolled potion, this is the 56.5 calculated above as we pick optimal choices. The expected return in the future for (B1) is the current potion's mys and 27.5 from mox test since potion is rerolled by using in mys test. The expected return in the future for (B2) is obviously the current potion's mox. If the potion stats are very negative such that we can't expect to regain in the future even if you endure the lose in a stat test and reroll we can always fold and expect (B3) 0 value. The optimal decision here is obviously to pick the choice with the highest return given our current potion. Calculate the expected return for all 4 choice and pick the highest. [max(mus+56.5,mys+27.5,mox,0.0)]
- A use on mus E(mus+mys+mox)=mus+56.5
- B1 use on mys E(mus+mys+mox)=mys+27.5
- B2 use on mox E(mus+mys+mox)=mox
- B3 fold E(mus+mys+mox)=0
- Now consider if we reroll the potion before the mus test, there are 30*35*42=840 scenarios as Muscle (de)buff = +105 - (N mod 30)*7 and we also take the mys and mox into consideration as we save the potion if mus is too negative and mys or mox is very high. We can calculate the best choice for each of the 840 scenarios and the expected return. We can obtain the expected stat gain during the ALL test if we reroll the potion before the mus test and pick OPTIMAL results, which is 86.53571429 ~= 86.5.
- optimal = mus %
- 0.423809524
- optimal = mys %
- 0.285714286
- optimal = mox %
- 0.176190476
- optimal = fold %
- 0.114285714
- avg E(mus+mys+mox)
- 86.53571429
- Now blood donation is generally to quick (<20 adv) to reroll, but the all previous service quests take long enough (If you don't have many great IotM/perms) for you to reroll your love potion is they don't have bad stats, and you don't even lose adv for any negative stats in those tests. Before steam tunnel and all those service quests you have a decision which depend only on your current love potion's stats. We must decide whether to (A) use potion on test and reroll all stats or (B) save potion, saving potion can lead to either (B1) using for mus test or (B2) using for mys test or (B3) using for mox test or (B4) discarding the potion. The expected return in the future for (A) is 86.5 since we don't use any of our potion's current stats but perform future choices optimally. The expected return in the future for (B) is same as that in the mus test. Since (A) always gives a positive result we never have a reason to fold here. The optimal decision here is obviously to pick the choice with the highest return given our current potion. Calculate the expected return for all 5 choice and pick the highest. [max(86.5,mus+56.5,mys+27.5,mox,0.0)]
- Now consider if we reroll the potion before the mus test, calculate the best choice for each of the 840 scenarios and the expected return. We can obtain the expected stat gain during the ALL test if we reroll the potion before the steam tunnel and pick OPTIMAL results, which is 105.2142857 ~= 105.2.
- optimal = reroll%
- 0.438095238
- optimal = mus %
- 0.333333333
- optimal = mys %
- 0.171428571
- optimal = mox %
- 0.057142857
- optimal = fold %
- 0
- sum %
- 1
- avg E(mus+mys+mox)
- 105.2142857
- Now we can do the same for the previous decision. Using 105.2 instead of 86.5. Then use the result for the previous decision again. We finally obtain the optimal solution:
- Calculate your potions's expected value, use up your potion and remake after quest if your potion's expected value is lesser than the threshold.
- Expected Value(EV) = max(mus+56.5,mys+27.5,mox), it represents the amount of useful stats you can still expect from your love potion(s), every 30EV equals 1 adv saved on average.
- threshold
- 7 rerolls 132.8
- 6 rerolls 129.8
- 5 rerolls 126.1
- 4 rerolls 121.4
- 3 rerolls 114.9
- 2 rerolls 105.2
- 1 rerolls 86.5
- b4 mus test use if mus+56.5=max(mus+56.5,mys+27.5,mox,0.0)
- b4 mys test use if mys+27.5=max(mys+27.5,mox,0.0)
- b4 mox test use if mox=max(mox,0.0)
- Check the number of rerolls you have remaining here (Low IotM/Perms)
- START
- 5
- COIL WIRE
- 4
- MAKE MARGARITAS
- 3 <-if between MAKE MARGARITAS and MAKE SAUSAGE, you have 3 rerolls
- MAKE SAUSAGE
- 2
- REDUCE GAZELLE POPULATION (Be careful here is you have bow-legged swagger)
- 1
- STEAM TUNNELS (cannot reroll if >40 hot res)
- 0
- DONATE BLOOD
- 0 b4 mus test
- FEED CHILDREN
- 0 b4 mys test
- BUILD PLAYGROUND MAZES
- 0 b4 mox test
- FEED CONSPIRATORS
- This may be adapted for solving optimal love potion rerolling for non-CS Ascension's tower stat test.
- If you run my 2day HCCS script (UPDATED! ONLY NEED VIP KEY & GENIE)
- This will all be done for you along with everything else.
- 2IOTM 2DAY HCCS SCRIPT
- https://gitgud.io/iloath/HCCSauto/tree/master
- 3IOTM 2DAY HCCS GUIDE
- https://www.reddit.com/r/kol/wiki/guides/iloath_hccs
- 2IOTM 2DAY HCCS GUIDE
- https://www.reddit.com/r/kol/wiki/guides/iloath_hccs2
- EXCEL CALCULATION FILE
- https://files.catbox.moe/47s67z.xlsx
                    Add Comment                
                
                        Please, Sign In to add comment                    
                 
                    