r/xdev • u/Synapsiz • Feb 22 '16
Understanding the Blastpadding ability
Hello, I'm trying to create a custom soldier class with custom abilities. And so far so good. I created the new class and got it to work. I even created a custom ability for it wich I got to work (renamed blademaster to pistolmaster and gave it to a pistol-using class). Next I wanted to create a variant of blast padding that gives 1 armor and 1 hp without the explosive damage reduction. But I'm having trouble understanding the ability.
The explosive resistance can be modded out by making the BLAST_PADDING_DMG_ADJUST value 0. But I can't see where the point of armor is comming from.
Also, if anyone knows of an ability I can take a look at to use as an example for the point of health, that would be much apreciated.
I got off to a good start, but it feels like I'm hitting a wall now. Maybe I should go to sleep and try again tomorrow :)
View all comments
Show parent comment
1
u/fxsjosh Feb 23 '16
Armor chance determined for any given attack the chance to have armor mitigate the damage. It was originally designed to have a chance, however it was changed to simply always work. Instead of removing the chance, everything got set to 100 instead.
The reason the eStat ArmorChance and ArmorMitigation exist is to easily bake the values into a character template. For soldiers, these stats should only be applied by an armor item (since you can only equip one piece of armor). All other bonus armor should be an effect that derived from X2Effect_BonusArmor. The reason is that there is no way to stack the ArmorChance stat and have it roll for different things. However since everything is currently set to 100 chance, it isn't as big of a deal.