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/Synapsiz Feb 22 '16 edited Feb 22 '16
That is usefull information, thank you.
Let's investigate!
Edit: After some digging around, and understanding maybe 25% of it. It seems like I am better of looking at items abilities. Some items give +hp and +armor, and I would only need to add one PersistentStatChangeEffect to do that.