here is an example of the format we are thinking of.
Code: Select all
<damageType unid="&dmgGlass;">
name= "glass"
absorb= "100,100,100,100,100,100,100,100,100,50,100,100,0,0,0,0,0,0,0,0,0,0,0,0,0"
armorResist= "100,200,100,200,100,200,100,200,100,200,100,200,100,200,100,200,100,200,100,200,100,200,100,200,100"
shieldResist= "300,200,300,200,300,200,300,200,300,200,300,200,300,200,300,200,300,200,300,200,300,200,300,200,300"
</damageType>
Armor and shield resist are the defaults of the resist of a given level shield or armor.
This would allow you to add new damage types in the xml without to much trouble and edit existing damage types. It also allows multiple modders to make damage types without them conflicting.
You could even extend it for greater levels by saying that resist values not stated are 0 (absorb values would default to 100). So a level 80 shield wouldn't take any glass damage as expected.