diff options
-rw-r--r-- | db/item_options.conf | 5 | ||||
-rw-r--r-- | npc/craft/options.txt | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/db/item_options.conf b/db/item_options.conf index fb2b76c82..6d0a26ed3 100644 --- a/db/item_options.conf +++ b/db/item_options.conf @@ -536,6 +536,11 @@ item_options_db: ( }, */ { + Id: 92 + Name: "VAR_CRITICALRATE" + Script: <" bonus(bCriticalRate, getequippedoptioninfo(IT_OPT_VALUE)); "> +}, +{ Id: 93 Name: "RACE_TOLERACE_DEVIL" Script: <" diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 564612a48..e63b2eac4 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -103,6 +103,9 @@ function script csys_Generate { array_push(@csys_attr, VAR_HITSUCCESSVALUE); } if (.@lvl >= 5) { + array_push(@csys_attr, VAR_CRITICALRATE); + } + if (.@lvl >= 10) { array_push(@csys_attr, VAR_CRITICALSUCCESSVALUE); } array_push(@csys_penalty, VAR_LUKAMOUNT); @@ -359,6 +362,7 @@ function script csys_Multiplier { case VAR_INTAMOUNT: case VAR_DEXAMOUNT: case VAR_LUKAMOUNT: + case VAR_CRITICALSUCCESSVALUE: return 4; case VAR_MAXHPPERCENT: case VAR_MAXSPPERCENT: @@ -368,7 +372,7 @@ function script csys_Multiplier { case IOPT_DOUBLEATTACK: case VAR_PLUSAVOIDSUCCESSVALUE: case IOPT_EXPGAIN: - case VAR_CRITICALSUCCESSVALUE: + case VAR_CRITICALRATE: return 5; case IOPT_SCRESIST_POISON: case IOPT_SCRESIST_SILENCE: @@ -399,7 +403,7 @@ function script csys_ArmorFix { array_remove(@csys_attr, HP_DRAIN); array_remove(@csys_attr, SP_DRAIN); array_remove(@csys_attr, IOPT_DOUBLEATTACK); - //array_remove(@csys_attr, VAR_CRITICALSUCCESSVALUE); + array_remove(@csys_attr, VAR_CRITICALSUCCESSVALUE); // VAR_PLUSASPDPERCENT and VAR_PLUSASPD ? // Remove penalties array_remove(@csys_penalty, VAR_ITEMDEFPOWER); |