GriffonSpade
Member
Meditation in the scripts uses this chance to successfully activate:
double chance = (50.0 + ((skillVal - (m.ManaMax - m.Mana)) * 2)) / 100;
This appears to be the pre-Publish-46 formula originally intended for players whose max mana was only 100. A player with 100 meditation and 0/125 mana would be unable to activate meditation, and one with 25/125 would have a 50% chance.
It seems likely it was moved to a percentage-based formula as such:
double chance = (50.0 + ((skillVal - ((m.ManaMax - m.Mana) * 100 / m.ManaMax) * 2)) / 100;
This would normalize everyone to have the same chances to meditate as a player with the same percentage as a 100 mana player has right now. (And it gets very silly if used by things with hundreds of mana who wind up with negative hundreds of percent chance to meditate at low mana)
Further, it may only be used with those who have over 100 mana, while those with less still use the old formula.
However, it needs some testing on live OSI to confirm, as repo only contains files going back to 2013. If the latter version is correct:
50% to meditate at 100 meditation, 0/125 mana
100% to meditate at 100 meditation, 32/125 mana (25% mana)
0% to meditate at 0 meditation, 75/100 or 94/125 mana (75% mana)
0% to meditate at 75 meditation, 0/125 mana
50% to meditate at 50 meditation, 63/125 mana (50% mana)
100% to meditate at 75 meditation, 63/125 mana (50% mana)
For checking sub-100 mana two likely possibilities:
Still uses old formula:
100% to meditate at 50 meditation, 0/25 man
50% to meditate at 25 meditation, 0/25 mana
50% to meditate at 0 meditation, 24/25 mana (99% mana)
0% to meditate at 0 meditation, 0/25 mana
Uses percentage formula:
50% to meditate at 100 meditation, 0/25 mana
100% to meditate at 100 meditation, 7/25 mana (25% mana)
50% to meditate at 0 meditation, 13/25 mana (50% mana)
0% to meditate at 75 meditation, 0/25 mana
0% to meditate at 50 meditation, 12/25 mana (50% mana)
0% to meditate at 25 meditation, 6/25 mana (25% mana)
0% to meditate at 0 meditation, 18/25 mana (75% mana)
double chance = (50.0 + ((skillVal - (m.ManaMax - m.Mana)) * 2)) / 100;
This appears to be the pre-Publish-46 formula originally intended for players whose max mana was only 100. A player with 100 meditation and 0/125 mana would be unable to activate meditation, and one with 25/125 would have a 50% chance.
It seems likely it was moved to a percentage-based formula as such:
double chance = (50.0 + ((skillVal - ((m.ManaMax - m.Mana) * 100 / m.ManaMax) * 2)) / 100;
This would normalize everyone to have the same chances to meditate as a player with the same percentage as a 100 mana player has right now. (And it gets very silly if used by things with hundreds of mana who wind up with negative hundreds of percent chance to meditate at low mana)
Further, it may only be used with those who have over 100 mana, while those with less still use the old formula.
However, it needs some testing on live OSI to confirm, as repo only contains files going back to 2013. If the latter version is correct:
50% to meditate at 100 meditation, 0/125 mana
100% to meditate at 100 meditation, 32/125 mana (25% mana)
0% to meditate at 0 meditation, 75/100 or 94/125 mana (75% mana)
0% to meditate at 75 meditation, 0/125 mana
50% to meditate at 50 meditation, 63/125 mana (50% mana)
100% to meditate at 75 meditation, 63/125 mana (50% mana)
For checking sub-100 mana two likely possibilities:
Still uses old formula:
100% to meditate at 50 meditation, 0/25 man
50% to meditate at 25 meditation, 0/25 mana
50% to meditate at 0 meditation, 24/25 mana (99% mana)
0% to meditate at 0 meditation, 0/25 mana
Uses percentage formula:
50% to meditate at 100 meditation, 0/25 mana
100% to meditate at 100 meditation, 7/25 mana (25% mana)
50% to meditate at 0 meditation, 13/25 mana (50% mana)
0% to meditate at 75 meditation, 0/25 mana
0% to meditate at 50 meditation, 12/25 mana (50% mana)
0% to meditate at 25 meditation, 6/25 mana (25% mana)
0% to meditate at 0 meditation, 18/25 mana (75% mana)