diff options
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r-- | npc/functions/util.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 55fdba9bc..f36ff8a4d 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -264,3 +264,16 @@ function script total_subclass { return .@i; } +// Gets how many subclasses were actually allowed +// max_subclass() +function script max_subclass { + return (MAGIC_LVL/2); +} + + +// Gets subclass current degree +// degree_subclass() +function script degree_subclass { + return (MAGIC_LVL/2)+(MAGIC_LVL%1); +} + |