diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-06-27 02:25:18 +0200 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-06-27 02:26:39 +0200 |
commit | f2d74f1628348e98e2801a1f5ec00a09cffefa08 (patch) | |
tree | 33b028a4a1644a657d381736a4f5fa9c1f85158b | |
parent | b7535483777a70459abfc28022af52e3659fd0e8 (diff) | |
download | serverdata-MAGIC_PTS_mismatch.tar.gz serverdata-MAGIC_PTS_mismatch.tar.bz2 serverdata-MAGIC_PTS_mismatch.tar.xz serverdata-MAGIC_PTS_mismatch.zip |
-rw-r--r-- | npc/functions/clientversion.txt | 2 | ||||
-rw-r--r-- | npc/functions/util.txt | 8 |
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; |