diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-09-17 09:26:28 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-09-17 09:26:28 -0300 |
commit | abeec66856a3478df7ebafadb9c93c4afd6a4de6 (patch) | |
tree | 937d211c57ea67d1fcbd90b3db46d71430bebac6 | |
parent | 737e3483ba5c1447b04f1a901738af90faf33161 (diff) | |
download | serverdata-abeec66856a3478df7ebafadb9c93c4afd6a4de6.tar.gz serverdata-abeec66856a3478df7ebafadb9c93c4afd6a4de6.tar.bz2 serverdata-abeec66856a3478df7ebafadb9c93c4afd6a4de6.tar.xz serverdata-abeec66856a3478df7ebafadb9c93c4afd6a4de6.zip |
Could use some rewrite, tho
-rw-r--r-- | npc/functions/refine.txt | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt index 11925ba2..211edbb6 100644 --- a/npc/functions/refine.txt +++ b/npc/functions/refine.txt @@ -19,7 +19,6 @@ function script refineupdate { .@w=getequipid(EQI_HAND_R); .@r=getequiprefinerycnt(EQI_HAND_R); - debugmes "Refine function begin"; // Weapon cannot be refined if (!getequipisenableref(EQI_HAND_R)) @@ -28,14 +27,12 @@ function script refineupdate { // Register weaponExp[.@w] = weaponExp[.@w] + getmonsterinfo(.@k, MOB_LV); - debugmes "weaponEXP for %d updated: %d", .@w, weaponExp[.@w]; // Switch by refine level // TODO: This could be entirely rewritten with getd("REFEXP_LEVEL"+(.@r+1)) switch (.@r) { // +0 -> +1 case 0: - debugmes "Level zero %d/%d", weaponExp[.@w], REFEXP_LEVEL1; if (weaponExp[.@w] >= REFEXP_LEVEL1) { weaponExp[.@w]-=REFEXP_LEVEL1; successrefitem(EQI_HAND_R); @@ -44,7 +41,6 @@ function script refineupdate { break; // +1 -> +2 case 1: - debugmes "Level ONE %d/%d", weaponExp[.@w], REFEXP_LEVEL2; if (weaponExp[.@w] >= REFEXP_LEVEL2) { weaponExp[.@w]-=REFEXP_LEVEL2; successrefitem(EQI_HAND_R); @@ -77,7 +73,6 @@ function script refineupdate { break; // Max level reached default: - debugmes "Max level already reached"; break; } return; |