summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-26 13:46:40 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-26 13:46:40 -0300
commit9ba1952838a97be125b73f95694779ad196c81d2 (patch)
tree101a1be1801778587f8f8acf9cae2045c14ece1c
parente63df3aa088d1c1bc3cd4a48c886ebdd50b6e33d (diff)
downloadserverdata-9ba1952838a97be125b73f95694779ad196c81d2.tar.gz
serverdata-9ba1952838a97be125b73f95694779ad196c81d2.tar.bz2
serverdata-9ba1952838a97be125b73f95694779ad196c81d2.tar.xz
serverdata-9ba1952838a97be125b73f95694779ad196c81d2.zip
Refine: Break chance: 0.01%, Downgrade chance: 1% per refine level.
In usual, nothing happens when you fail, except reagent loss.
-rw-r--r--npc/functions/refine.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt
index 0c9985c3a..c23739d07 100644
--- a/npc/functions/refine.txt
+++ b/npc/functions/refine.txt
@@ -54,7 +54,7 @@ function script refineMaster {
// Not all items are refinable
if (!getequipisenableref(.@it)) {
mesn;
- mesq l("Well, sorry, but only weapons and body armor can be refined.");
+ mesq l("Well, sorry, but only some items can be refined.");
mesq l("There may be some exceptions. Anyway, this item clearly cannot be refined.");
next;
return;
@@ -152,8 +152,8 @@ function script refineMaster {
mesc l("Weapons: +8 attack, +8 magic attack");
mesc l("Armors: +3~5 defense");
next;
- // Perhaps the item has broken?
- } else if (rand2(100) < .@rlv) {
+ // Perhaps the item has broken? (~0.01% chance)
+ } else if (rand2(10000) <= 1) {
failedrefitem .@it;
mesc l("*CRASH*");
next;
@@ -163,7 +163,7 @@ function script refineMaster {
mesn;
mesq l("Well, you were warned. Do you have any other stuff for me?");
next;
- // Item is weakened.
+ // Item is weakened. (1% per refine level)
} else if (rand2(100) < .@rlv) {
downrefitem .@it, 1;
mesn;