summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 519c14f00..4e12e5fed 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -582,6 +582,8 @@ function script max_subclass {
}
*/
+// MAGIC_PTS → Amount of used Magic Skill Points
+// sk_maxpoints() → Max Magic Skill Points you may use
// Returns how many points you can use
function script sk_maxpoints {
// 2 points per magic level
@@ -592,7 +594,7 @@ function script sk_maxpoints {
}
// Returns true if a skill can be leveled up.
-// Ideally, we would also check for skill max level...
+// TODO: Ideally, we would also check for skill max level...
// sk_canlvup( sk, {cost=1} )
function script sk_canlvup {
if (MAGIC_PTS+getarg(1,1) >= sk_maxpoints())
@@ -601,6 +603,7 @@ function script sk_canlvup {
}
// Level up a skill in 1 level
+// TODO: Return the point if leveling about Max Level
// sk_lvup( sk )
function script sk_lvup {
.@lvl=getskilllv(getarg(0));