Added new HOOK_ONEXPLOSION and a new mode "set_explosion_max_targets" to metarule2_explosions (from Mr.Stalin) (#35)

This commit is contained in:
NovaRain
2018-10-30 11:19:19 +08:00
parent 29ad288f52
commit 6319017186
8 changed files with 93 additions and 8 deletions
+2
View File
@@ -57,6 +57,7 @@
#define HOOK_EXPLOSIVETIMER (33)
#define HOOK_DESCRIPTIONOBJ (34)
#define HOOK_USESKILLON (35)
#define HOOK_ONEXPLOSION (36)
//Valid arguments to list_begin
#define LIST_CRITTERS (0)
@@ -148,6 +149,7 @@
#define get_explosion_damage(itemPid) metarule2_explosions(6, itemPid, 0)
#define set_dynamite_damage(minDmg, maxDmg) metarule2_explosions(7, minDmg, maxDmg)
#define set_plastic_damage(minDmg, maxDmg) metarule2_explosions(8, minDmg, maxDmg)
#define set_explosion_max_targets(x) metarule2_explosions(9, x, 0)
#define GAME_MSG_COMBAT (0)