From 6af4c479fdc941725166fd4bf8a04510eb04d50c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 25 Dec 2021 10:21:58 -0300 Subject: Allow some other consumables to stack as well. Note that stacking is done with a ponderate average method. The strength will never exceed the strongest one on the stack, and adding weaker ones to increase time will decrease effects proportionally. --- db/re/item_db.conf | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 9ea7ed5b5..4b733d06c 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -512,7 +512,7 @@ item_db: ( @rarity=2; if ($EVENT$ == "Easter") { @rarity=6; - sc_start SC_INCHIT,10000,10; + callfunc("SC_Bonus", 10, SC_INCHIT, 10); } doevent "rand_sc_heal::OnUse"; "> @@ -702,8 +702,8 @@ item_db: ( Delay: 1000 UseEffect: "EFFECT_HEAL" Script: <" - sc_start SC_INCATKRATE, 30000, 10; - //sc_start SC_ATTHASTE_POTION1, 30000, 5; + callfunc("SC_Bonus", 30, SC_INCATKRATE, 10); + //callfunc("SC_Bonus", 30, SC_ATTHASTE_POTION1, 5); sc_end SC_POISON; @type = 1; @rarity=9; @@ -1433,7 +1433,7 @@ item_db: ( if (.@val > 64) .@val=rand(32,96); itemheal 0, .@val; - sc_start SC_ATTHASTE_POTION1, 10000, 3; + callfunc("SC_Bonus", 10, SC_ATTHASTE_POTION1, 3); doevent "rand_sc_heal::OnUse"; "> }, @@ -2197,7 +2197,7 @@ item_db: ( Delay: 500 UseEffect: "EFFECT_HEAL" Script: <" - sc_start SC_ATTHASTE_POTION1, 30000, 60; + callfunc("SC_Bonus", 30, SC_ATTHASTE_POTION1, 60); if (rand(10000) < 6000) sc_start callfunc("any", SC_POISON, SC_SILENCE, SC_POISON, SC_CONFUSE, SC_POISON, SC_POISON), rand(20000, 40000), 0; itemheal 0, rand(10,200); @@ -2399,7 +2399,7 @@ item_db: ( Delay: 1000 UseEffect: "EFFECT_HEAL" Script: <" - sc_start SC_ATTHASTE_POTION1, 17000, 10; + callfunc("SC_Bonus", 17, SC_ATTHASTE_POTION1, 10); @min = 40; @max = 70; @delay = 4; @@ -18897,7 +18897,7 @@ item_db: ( KeepAfterUse: false Delay: 200 Script: <" - sc_start SC_CASH_DEATHPENALTY, 900000, 1; + callfunc("SC_Bonus", 900, SC_CASH_DEATHPENALTY, 1); "> }, { -- cgit v1.2.3-70-g09d2