Add failure messages for RNG focus

This commit is contained in:
Michael Cook (mackal) 2015-05-30 03:08:02 -04:00
parent 38cdea7d7e
commit bfb40f6c5f

View File

@ -5397,7 +5397,7 @@ int16 Client::GetFocusEffect(focusType type, uint16 spell_id) {
if(UsedItem && rand_effectiveness && focus_max_real != 0) if(UsedItem && rand_effectiveness && focus_max_real != 0)
realTotal = CalcFocusEffect(type, UsedFocusID, spell_id); realTotal = CalcFocusEffect(type, UsedFocusID, spell_id);
if (realTotal != 0 && UsedItem) { if ((rand_effectiveness && UsedItem) || (realTotal != 0 && UsedItem)) {
// there are a crap ton more of these, I was able to verify these ones though // there are a crap ton more of these, I was able to verify these ones though
// the RNG effective ones appear to have a different message for failing to focus // the RNG effective ones appear to have a different message for failing to focus
uint32 string_id = BEGINS_TO_GLOW; // this is really just clicky message ... uint32 string_id = BEGINS_TO_GLOW; // this is really just clicky message ...
@ -5405,25 +5405,31 @@ int16 Client::GetFocusEffect(focusType type, uint16 spell_id) {
case focusSpellHaste: case focusSpellHaste:
string_id = SHIMMERS_BRIEFLY; string_id = SHIMMERS_BRIEFLY;
break; break;
case focusManaCost: case focusManaCost: // this might be GROWS_DIM for fail
string_id = FLICKERS_PALE_LIGHT; string_id = FLICKERS_PALE_LIGHT;
break; break;
case focusSpellDuration: case focusSpellDuration:
string_id = SPARKLES; string_id = SPARKLES;
break; break;
case focusImprovedDamage: case focusImprovedDamage:
string_id = ALIVE_WITH_POWER; if (realTotal)
string_id = ALIVE_WITH_POWER;
else
string_id = SEEMS_DRAINED;
break; break;
case focusRange: case focusRange:
string_id = PULSES_WITH_LIGHT; string_id = PULSES_WITH_LIGHT;
break; break;
case focusSpellHateMod: case focusSpellHateMod: // GLOWS_RED for increasing hate
string_id = GLOWS_BLUE; string_id = GLOWS_BLUE;
break; break;
case focusImprovedHeal: case focusImprovedHeal:
string_id = FEEDS_WITH_POWER; if (realTotal)
string_id = FEEDS_WITH_POWER;
else
string_id = POWER_DRAIN_INTO;
break; break;
case focusReagentCost: case focusReagentCost: // this might be GROWS_DIM for fail as well ...
string_id = BEGINS_TO_SHINE; string_id = BEGINS_TO_SHINE;
break; break;
default: default: