summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/clientversion.txt2
-rw-r--r--npc/functions/util.txt8
2 files changed, 5 insertions, 5 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index ad7251fb8..3f52b40ab 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -1294,7 +1294,7 @@ function script clientupdater {
}
}
- .@MSP_used = sk_usedpoints();
+ .@MSP_used = sk_calcpoints();
if (.@MSP_used != MAGIC_PTS) {
//MAGIC_PTS = .@MSP_used;
.@msg$ = sprintf("character: %s, used MSK saved: %d, calculated: %d, total: %d",
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index b0ecffc32..9372e00f4 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -850,9 +850,9 @@ function script sk_maxpoints {
return .@val;
}
-// sk_usedpoints() → Magic Skill Points you have used up
+// sk_calcpoints() → Magic Skill Points you have used up
// Returns how many points you have used up
-function script sk_usedpoints {
+function script sk_calcpoints {
.@MSP_used = 0;
getskilllist();
for (.@i=0; .@i < @skilllist_count; .@i++) {
@@ -877,10 +877,10 @@ function script sk_usedpoints {
case MC_OVERCHARGE:
.@MSP_used += .@lv;
break;
- case default:
+ default:
// every level > 5 costs 1 MSP to upgrade
if (.@lv > 5)
- .@MSP_used += (.@lv - 5);
+ .@MSP_used += (.@lv - 5);
}
}
return .@MSP_used;