Fixed multihit odds.

This commit is contained in:
Ariel A 2022-07-06 22:34:01 -04:00
parent 15fe85902f
commit 9a0a759b3f

View file

@ -10494,19 +10494,20 @@ static void Cmd_setmultihitcounter(void)
} }
else if (B_MULTI_HIT_CHANCE >= GEN_5) else if (B_MULTI_HIT_CHANCE >= GEN_5)
{ {
// 2 and 3 hits: 33.3% // Based on Gen 5's odds
// 4 and 5 hits: 16.7% // 35% for 2 hits
gMultiHitCounter = Random() % 4; // 35% for 3 hits
if (gMultiHitCounter > 2) // 15% for 4 hits
{ // 15% for 5 hits
gMultiHitCounter = (Random() % 3); gMultiHitCounter = Random() % 100;
if (gMultiHitCounter < 2) if (gMultiHitCounter < 35)
gMultiHitCounter = 2; gMultiHitCounter = 2;
else else if (gMultiHitCounter < 35 + 35)
gMultiHitCounter = 3; gMultiHitCounter = 3;
} else if (gMultiHitCounter < 35 + 35 + 15)
gMultiHitCounter = 4;
else else
gMultiHitCounter += 3; gMultiHitCounter = 5;
} }
else else
{ {