KhymChanur: In my working code (not commited to CVS) I've made it so that combined damage types have the option of having a resistance to the combined type that will stack with resistances to the base types. For instance, the "ice" damage could have its own resistance, and if the player had 50% ice resistance and 50% cold resistance, the player would have a total of 75% resistance against the cold component of ice attacks.
I did this so that, for example, sound reistance will provide resistance to stunning caused by sound but not provide resistance to stunning from other sources, and that if the player or monster has a generic resistance to stunning as well as resistance to sound, the sound-based-stun-resistance will stack with the generic-stun-resistance for sound attacks.
So how does this idea sound?
ReenenLaurie: Not resisting temptation. It sounds sound.
Orvin: When stacking, why add resistances? Perhaps, you can provide module-builders the option to define how resistances stack with an arbitrary function?
NeilStevens: Modules do determine how resistances add. That's already how the engine works.
ToME Wiki