diff options
-rw-r--r-- | npc/functions/util.txt | 3 |
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)); |