summaryrefslogtreecommitdiff
path: root/npc/magic/study.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/magic/study.txt')
-rw-r--r--npc/magic/study.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/npc/magic/study.txt b/npc/magic/study.txt
index fb6116fae..f61bdbca9 100644
--- a/npc/magic/study.txt
+++ b/npc/magic/study.txt
@@ -21,9 +21,12 @@ function script SK_study {
// Research Points
if (array_rfind(@study, @mobGD) < 0) {
.@mult=max(1, 11-getskilllv(TMW2_STUDY));
- .@rp=getmonsterinfo(.@mobID, MOB_LV)/.@mult+1;
+ .@rp=getmonsterinfo(.@mobID, MOB_LV)/.@mult;
array_push(@study, @mobGD);
- dispbottom l("Research Points +%d", .@rp);
+ if (.@rp) {
+ MAGIC_RP+=.@rp;
+ dispbottom l("Research Points +%d", .@rp);
+ }
}
// Report