Jump to content
  • 0

[zero] Best way to implement armor reduction


lfxgroove

Question

Hi!

I've started looking at the following issue https://github.com/mangoszero/server/issues/16 and think i've got some code that can work. Only problem is that i have 2 different solutions and i'm wondering which one i should submit my patch with.

On one hand i can actually lower the armor for the player under the duration of the spell, pros: The player sees what's happening, cons: when the spell is finished there may be other spells that reduce armor and thus it's hard to restore the part that was previously reduced by Enrage. To do that another variable would probably be needed.

On the other i could also just change how the CalcArmorReducedDamage works and make it so that it takes this spell into account. pros: i don't need an extra variable, cons: the calculation needs to be redone several times.

Which one is the mangos/normal way to do these kinds of things?

Thanks in advance!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use