From adfa12aa7096f6b3800a3d3772285bb6e873aeb4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 18 Jun 2019 12:14:08 -0300 Subject: De-hardcode UseEffect in grenades --- db/constants.conf | 1 + db/re/item_db.conf | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/db/constants.conf b/db/constants.conf index 604f913bd..58c03213f 100644 --- a/db/constants.conf +++ b/db/constants.conf @@ -4406,6 +4406,7 @@ constants_db: { FX_FAILURE: 28 FX_SMOKE: 50 FX_GRENADE: 51 + FX_SMOKEBOMB: 52 FX_TORCH: 53 FX_GOLDSTAR: 54 FX_MGSHIELD: 60 diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 0ad04713d..f90d0daae 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -1571,7 +1571,7 @@ item_db: ( Refine: false ViewSprite: 541 Delay: 500 - UseEffect: 52 // TODO FIXME: We should add to db/constants.conf instead of using numbers + UseEffect: "FX_SMOKEBOMB" Script: <" itemskill AS_CLOAKING,1,1; //itemskill SM_MAGNUM,1; @@ -3243,7 +3243,7 @@ item_db: ( Refine: false ViewSprite: 682 Delay: 500 - UseEffect: 52 // TODO FIXME: We should add to db/constants.conf instead of using numbers + UseEffect: "FX_GRENADE" Script: <" itemskill WZ_STORMGUST,3,0; "> -- cgit v1.2.3-70-g09d2