Is it possible to edit explosion damage?

Started by Porksteak, May 16, 2020, 08:04:11 PM

Previous topic - Next topic
Is it possible to make the default explosion do more damage?

You could adjust how much damage enemies receive from specific sources of damage. With the enemy metatable, enemy:on_hurt gives you access to the attack received. So you can do like, if attack == "explosion" then enemy:remove_life(explosion damage)