diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-07-07 14:26:28 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-07-07 14:26:28 -0300 |
commit | b10f3d13c6a49ecf4bd5fb05f2ca15213c2781f3 (patch) | |
tree | 6be37ca31044b4f64c34c2d089123a7f7f5b6f44 /db | |
parent | 262e40ef1a4ad3e7088a325d61591276d0ec6c61 (diff) | |
download | serverdata-b10f3d13c6a49ecf4bd5fb05f2ca15213c2781f3.tar.gz serverdata-b10f3d13c6a49ecf4bd5fb05f2ca15213c2781f3.tar.bz2 serverdata-b10f3d13c6a49ecf4bd5fb05f2ca15213c2781f3.tar.xz serverdata-b10f3d13c6a49ecf4bd5fb05f2ca15213c2781f3.zip |
Options which give % bonuses are now capped to 100%.
Values above 100% will be disregarded.
I was careful to avoid a @Aeon bug which could make them all default to 100% %%e
Diffstat (limited to 'db')
-rw-r--r-- | db/item_options.conf | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/db/item_options.conf b/db/item_options.conf index 6899ffd38..a700b34b1 100644 --- a/db/item_options.conf +++ b/db/item_options.conf @@ -84,32 +84,32 @@ item_options_db: ( { Id: 9 Name: "VAR_MAXHPPERCENT" - Script: <" bonus(bMaxHPrate, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bMaxHPrate, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 10 Name: "VAR_MAXSPPERCENT" - Script: <" bonus(bMaxSPrate, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bMaxSPrate, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 11 Name: "VAR_HPACCELERATION" - Script: <" bonus(bHPrecovRate, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bHPrecovRate, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 12 Name: "VAR_SPACCELERATION" - Script: <" bonus(bSPrecovRate, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bSPrecovRate, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 13 Name: "VAR_ATKPERCENT" - Script: <" bonus(bAtkRate, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bAtkRate, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 14 Name: "VAR_MAGICATKPERCENT" - Script: <" bonus(bMatkRate, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bMatkRate, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 15 @@ -144,7 +144,7 @@ item_options_db: ( { Id: 21 Name: "VAR_MDEFPOWER" - Script: <" bonus(bMdef, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bMdef, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 22 @@ -154,12 +154,12 @@ item_options_db: ( { Id: 23 Name: "VAR_PLUSAVOIDSUCCESSVALUE" - Script: <" bonus(bFlee2, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bFlee2, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 24 Name: "VAR_CRITICALRATE" - Script: <" bonus(bCriticalRate, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bCriticalRate, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 25 @@ -938,7 +938,7 @@ item_options_db: ( { Id: 164 Name: "DAMAGE_CRI_TARGET" - Script: <" bonus(bCritAtkRate, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bCritAtkRate, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 165 @@ -948,7 +948,7 @@ item_options_db: ( { Id: 166 Name: "RANGE_ATTACK_DAMAGE_TARGET" - Script: <" bonus(bLongAtkRate, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bLongAtkRate, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 167 @@ -968,17 +968,17 @@ item_options_db: ( { Id: 170 Name: "DEC_SPELL_CAST_TIME" - Script: <" bonus(bVariableCastrate, -(getequippedoptioninfo(IT_OPT_VALUE))); "> + Script: <" bonus(bVariableCastrate, -(min(100, getequippedoptioninfo(IT_OPT_VALUE)))); "> }, { Id: 171 Name: "DEC_SPELL_DELAY_TIME" - Script: <" bonus(bDelayrate, -(getequippedoptioninfo(IT_OPT_VALUE))); "> + Script: <" bonus(bDelayrate, -(min(100, getequippedoptioninfo(IT_OPT_VALUE)))); "> }, { Id: 172 Name: "DEC_SP_CONSUMPTION" - Script: <" bonus(bUseSPrate, -(getequippedoptioninfo(IT_OPT_VALUE))); "> + Script: <" bonus(bUseSPrate, -(min(100, getequippedoptioninfo(IT_OPT_VALUE)))); "> }, { Id: 173 @@ -1060,17 +1060,17 @@ item_options_db: ( { Id: 188 Name: "IOPT_WALKSPEED" - Script: <" bonus(bSpeedAddRate, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bSpeedAddRate, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 189 Name: "IOPT_EXPGAIN" - Script: <" bonus2(bExpAddRace, RC_All, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus2(bExpAddRace, RC_All, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 190 Name: "IOPT_DOUBLEATTACK" - Script: <" bonus(bDoubleAddRate, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bDoubleAddRate, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 191 @@ -1115,12 +1115,12 @@ item_options_db: ( { Id: 199 Name: "IOPT_CRITDMG" - Script: <" bonus(bCritAtkRate, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bCritAtkRate, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 200 Name: "IOPT_RICHNESS" - Script: <" bonus2(bAddGetZenyNum, -2, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus2(bAddGetZenyNum, -2, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> } |