For some reason a lot of mobs have
inst:AddComponent("explosiveresist")
The component defaults to 0 resistance if its not set within the components file.
self.resistance = 0
So if you have 40 gunpowder and each deal 200 which is 8000 with 40 gunpowder.
and since the inst.components.explosiveresist.resistance is not defined within the prefabs file it will always deal the maximum damage gunpowder would do.
inst.components.explosiveresist.resistance = x --x equals a number but since it's not defined it fallbacks to component's 0 which gives zero resistance
Here is example of Crabking having the explosiveresist component but getting the full damage despite the component existing and not mitigating anything.
Steps to Reproduce
Try to use 40 gunpowder on mob with explosiveresist component see it doesnt add resistance to it.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now