summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-08-25 20:17:14 -0300
committerJesusaves <cpntb1@ymail.com>2020-08-25 20:17:14 -0300
commita4fe491eea75e97a02d1cb852dc718456ff43861 (patch)
treecf348e20ba81969b72e4c9af9eabe81ff67d86e1
parent677f5e83f13b6daf26ca2d3d234e9789cd0539b6 (diff)
downloadserverdata-a4fe491eea75e97a02d1cb852dc718456ff43861.tar.gz
serverdata-a4fe491eea75e97a02d1cb852dc718456ff43861.tar.bz2
serverdata-a4fe491eea75e97a02d1cb852dc718456ff43861.tar.xz
serverdata-a4fe491eea75e97a02d1cb852dc718456ff43861.zip
Each (successful) skill use should now give you -1 RP cost :>
Patch by Mathias Cronqvist. All uses prior to this patch WILL BE COUNTED. Bugs may be present, WATCH OUT.
-rw-r--r--npc/functions/util.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 90106d177..a57162b5d 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -797,6 +797,9 @@ function script learn_magic {
.@ap=0;
}
+ // Discount from usage [Mathias]
+ .@ap=max(0, .@ap-skillInvoke[.@ski]);
+
mesc l("%s %s will require:", .@learn$, getskillname(.@ski));
mes l("* %d/%d MSP (Magic Skill Points)", sk_points(), .@msp);
mes l("* %s/%s RP (Research Points)", fnum(MAGIC_RP), fnum(.@ap));