[Cleanup] Add missing breaks and returns in bonuses.cpp (#3231)

# Notes
- Many spots were missing a `break;` or a `return` for their value.
This commit is contained in:
Alex King 2023-04-05 11:15:22 -04:00 committed by GitHub
parent c81ab00764
commit a40e1cf893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1225,6 +1225,7 @@ void Mob::ApplyAABonuses(const AA::Rank &rank, StatBonuses *newbon)
newbon->HitChanceEffect[EQ::skills::HIGHEST_SKILL + 1] += base_value;
else
newbon->HitChanceEffect[limit_value] += base_value;
break;
}
case SE_ProcOnKillShot:
@ -1405,6 +1406,7 @@ void Mob::ApplyAABonuses(const AA::Rank &rank, StatBonuses *newbon)
break;
}
}
break;
}
case SE_DamageModifier: {
@ -3532,6 +3534,7 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses *ne
case SE_DoubleRiposte:
{
new_bonus->DoubleRiposte += effect_value;
break;
}
case SE_GiveDoubleRiposte:
@ -3817,6 +3820,7 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses *ne
break;
}
}
break;
}
case SE_PC_Pet_Rampage: {
@ -4320,11 +4324,11 @@ uint8 Mob::IsFocusEffect(uint16 spell_id,int effect_index, bool AA,uint32 aa_eff
case SE_SpellResistReduction:
return focusResistRate;
case SE_Fc_ResistIncoming:
focusFcResistIncoming;
return focusFcResistIncoming;
case SE_Fc_Amplify_Mod:
focusFcAmplifyMod;
return focusFcAmplifyMod;
case SE_Fc_Amplify_Amt:
focusFcAmplifyAmt;
return focusFcAmplifyAmt;
case SE_SpellHateMod:
return focusSpellHateMod;
case SE_ReduceReuseTimer: