Solarus-Games English Forum

Solarus => Development => Topic started by: Porksteak on May 16, 2020, 08:04:11 PM

Title: Is it possible to edit explosion damage?
Post by: Porksteak on May 16, 2020, 08:04:11 PM
Is it possible to make the default explosion do more damage?
Title: Re: Is it possible to edit explosion damage?
Post by: Max on May 17, 2020, 05:53:52 AM
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)