summaryrefslogtreecommitdiff
path: root/npc/config
diff options
context:
space:
mode:
Diffstat (limited to 'npc/config')
-rw-r--r--npc/config/magic.txt10
1 files changed, 1 insertions, 9 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 81d0cdbeb..e7f2c218f 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -17,21 +17,13 @@
// SkillID, EXP Points
function script GetManaExp {
- debugmes "--- Magic Subsystem: GME called";
.@sk=getarg(0);
.@pt=getarg(1);
- debugmes "--- Magic Subsystem: GME: Arguments Read";
- if (getskilllv(TMW2_SAGE))
- .@bonus=rand(0,getskilllv(TMW2_SAGE)*3/2);
- else
- .@bonus=0;
- debugmes "--- Magic Subsystem: GME: Evaluating";
+ .@bonus=rand(0,getskilllv(TMW2_SAGE)*3/2);
if (LAST_SKILL == .@sk)
end;
- debugmes "--- Magic Subsystem: GME: Recording";
LAST_SKILL=.@sk;
MAGIC_EXP=MAGIC_EXP+.@pt+.@bonus;
- debugmes "--- Magic Subsystem: GME: Complete";
return;
}