Jump to content

[Not A Bug] Explosive Resistance Bug (Please close this report)


Cliffford W.
  • Pending

 

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.




User Feedback


This also applies to wortox.lua and wortox_soul_spawner.lua it calls :GetResistance() whilst the resistance is not even set in the first place

Share this comment


Link to comment
Share on other sites



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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...