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.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index a924286ed..de172bda6 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -303,3 +303,11 @@ function script sk_intcost {
return 0;
}
+// Returns a value defining your current magic control (affects success ratio, higher is better)
+// A value of '5' means perfect control, and a value of '0' means overwhelm.
+// abizit()
+function script abizit {
+ .@base=(MAGIC_LVL**3);
+ return (MAGIC_EXP/.@base);
+}
+