summaryrefslogtreecommitdiff
path: root/npc/items/books.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items/books.txt')
-rw-r--r--npc/items/books.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/npc/items/books.txt b/npc/items/books.txt
index 0932a6337..e3726766e 100644
--- a/npc/items/books.txt
+++ b/npc/items/books.txt
@@ -191,6 +191,22 @@ OnInit:
if (getskilllv(TMW2_PARUM))
mesc l("Parum - @sk-parum");
next;
+ mesn l("Current Magic Control");
+ .@val=MAGIC_EXP+rand(-MAGIC_LVL*5, MAGIC_LVL*5);
+ .@base=(MAGIC_LVL**3);
+ if (.@val > .@base+3500)
+ mesc l("You are perfectly in control of your magic."), 3;
+ else if (.@val > .@base+2000)
+ mesc l("You are mostly in control of your magic."), 2;
+ else if (.@val > .@base+1000)
+ mesc l("You are somewhat in control of your magic."), 4;
+ else if (.@val > .@base+200)
+ mesc l("Your magic is more powerful than you, but you can control."), 7;
+ else if (.@val > .@base)
+ mesc l("You still are overwhelmed by your magic."), 6;
+ else
+ mesc l("You are completly overwhelmed by your magic."), 1;
+ next;
break;
case 3:
mesc l("You currently have @@/@@ subclass(es).", total_subclass(),max_subclass());