From 839a57cfff7f724b068f50b25f2f8b634afaa3c5 Mon Sep 17 00:00:00 2001
From: Jesusaves <cpntb1@ymail.com>
Date: Wed, 4 Sep 2019 15:04:18 -0300
Subject: Item may break more often while refining.

---
 npc/functions/refine.txt | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

(limited to 'npc/functions')

diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt
index 6275c042c..55d39c497 100644
--- a/npc/functions/refine.txt
+++ b/npc/functions/refine.txt
@@ -153,17 +153,6 @@ function	script	refineMaster	{
         mesc l("Weapons: +8 attack, +8 magic attack");
         mesc l("Armors: +3~5 defense");
         next;
-    // Perhaps the item has broken? (~0.01% chance)
-    } else if (rand2(10000) <= 1) {
-		failedrefitem .@it;
-        mesc l("*CRASH*");
-        next;
-        mesn;
-        mesq l("Ops... I hammered this stuff too hard... It's junk now.");
-        next;
-        mesn;
-        mesq l("Well, you were warned. Do you have any other stuff for me?");
-        next;
     // Item is weakened. (1% per refine level)
     } else if (rand2(100) < .@rlv) {
 		downrefitem .@it, 1;
@@ -176,6 +165,17 @@ function	script	refineMaster	{
         mesn;
         mesq l("I'm sure I could refine this again, if you bring me the payment and the reagents again.");
         next;
+    // Perhaps the item has broken? (~0.1% chance/refine level)
+    } else if (rand2(10000) <= 10*(.@rlv+1)) {
+		failedrefitem .@it;
+        mesc l("*CRASH*");
+        next;
+        mesn;
+        mesq l("Ops... I hammered this stuff too hard... It's junk now.");
+        next;
+        mesn;
+        mesq l("Well, you were warned. Do you have any other stuff for me?");
+        next;
     // Nothing happens
     } else {
         mesn;
-- 
cgit v1.2.3-70-g09d2