Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Solarus-Games English Forum
Solarus
Development
Is it possible to edit explosion damage?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Is it possible to edit explosion damage? (Read 4564 times)
0 Members and 1 Guest are viewing this topic.
Porksteak
Newbie
Posts: 17
Is it possible to edit explosion damage?
«
on:
May 16, 2020, 08:04:11 PM »
Is it possible to make the default explosion do more damage?
Logged
Max
Sr. Member
Posts: 277
Re: Is it possible to edit explosion damage?
«
Reply #1 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)
Logged
Print
Pages: [
1
]
« previous
next »