summaryrefslogtreecommitdiff
path: root/npc/functions/crafting.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/crafting.txt')
-rw-r--r--npc/functions/crafting.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/functions/crafting.txt b/npc/functions/crafting.txt
index fa5fa84e..25c39d34 100644
--- a/npc/functions/crafting.txt
+++ b/npc/functions/crafting.txt
@@ -33,8 +33,8 @@ function script SmithSystem {
.@lv=getiteminfo(.@it, ITEMINFO_ELV);
.@skill=getskilllv(EVOL_CRAFTING);
- // Update your CRAFTING_SCORE
- CRAFTING_SCORE+=.@lv;
+ // Update your CRAFTING_SCORE accordingly
+ EXP_FORG += .@lv;
// Obtain the item. No bounds or restrictions applied.
getitem(.@it, 1);
@@ -59,7 +59,7 @@ function script SmithSystem {
// Apply the bonuses. They're capped by equip level and based on:
// Equip level, crafting experience and crafting skill
- .@val=min(.@lv, (.@skill*CRAFTING_SCORE)/100+.@skill);
+ .@val=min(.@lv, .@skill+LVL_FORG+1);
// MDEF rule range is 99 while DEF rule range is 399
// This is a really hackish way, for the record