11-04-2003, 11:43 AM
I quickly glanced over the resistance code last night (that means, spending some time finding it and then spending a few minutes looking at it on a print out, not live). Basically resistance works like this now:
Get resistance of target (can be anything and also above 100% (so if a player has resistance items to give him 500%, then it is 500% at this time).
If the resistance is below 100% OR the target is a player, subtract the "lower resistance stat". There is no longer a specific Cold resistance check here, this is done for all damage types. I suspect they have added several new stats that are "lower resistance for damage type X" on for example items. So I suspect there might be an item that have for example lower fire resistance, no? Perhaps the only case in existance is cold mastery though (I have NOT looked at the patch otherwise so can't comment).
The end result is though (as far as cold mastery is concerned), that immune monsters are unnafected and for players it always subtract and since it is before the reistance cap, it makes sense to have values above 100%, just as in previous patches.
Next, the game add the difficulty penalty to the resistance value. There is a lower cap on -100% by the way after this step.
After the above, the game will calculate the resistance cap. Since I did not look live and hence did not see the internal table I can't comment on specific resistances, but physical is caped at 50%, those with a +max resistance is caped at 75+max resistance (although never more than 95) and the others are caped at 75%. Apart from physical resistance, it seems just as it always has been.
There is some case (not checked) were the game set the physical resistance to 0.
There is another step I never bothered understand but a flag was tested to see if -mdamage/-damage shoudl be applied and if not applied, some cases set the resistance to 0 if it was above 0. I really have no idea. I might have missunderstood it completely as well :)
Finally the game modify the damage based on resistance and then move on to absorbtion (which according to me seems capped at 40% now)., then straight absorbtion.
Hope this helps some.
Get resistance of target (can be anything and also above 100% (so if a player has resistance items to give him 500%, then it is 500% at this time).
If the resistance is below 100% OR the target is a player, subtract the "lower resistance stat". There is no longer a specific Cold resistance check here, this is done for all damage types. I suspect they have added several new stats that are "lower resistance for damage type X" on for example items. So I suspect there might be an item that have for example lower fire resistance, no? Perhaps the only case in existance is cold mastery though (I have NOT looked at the patch otherwise so can't comment).
The end result is though (as far as cold mastery is concerned), that immune monsters are unnafected and for players it always subtract and since it is before the reistance cap, it makes sense to have values above 100%, just as in previous patches.
Next, the game add the difficulty penalty to the resistance value. There is a lower cap on -100% by the way after this step.
After the above, the game will calculate the resistance cap. Since I did not look live and hence did not see the internal table I can't comment on specific resistances, but physical is caped at 50%, those with a +max resistance is caped at 75+max resistance (although never more than 95) and the others are caped at 75%. Apart from physical resistance, it seems just as it always has been.
There is some case (not checked) were the game set the physical resistance to 0.
There is another step I never bothered understand but a flag was tested to see if -mdamage/-damage shoudl be applied and if not applied, some cases set the resistance to 0 if it was above 0. I really have no idea. I might have missunderstood it completely as well :)
Finally the game modify the damage based on resistance and then move on to absorbtion (which according to me seems capped at 40% now)., then straight absorbtion.
Hope this helps some.
There are three types of people in the world. Those who can count and those who can't.