diff options
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r-- | npc/functions/util.txt | 8 |
1 files changed, 4 insertions, 4 deletions
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; |