summaryrefslogtreecommitdiff
path: root/npc/config/magic.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-08-09 23:33:28 -0300
committerJesusaves <cpntb1@ymail.com>2018-08-09 23:33:28 -0300
commit4af79e0e276ba70148c22e2d84cbc02e778e36f2 (patch)
treeba7bf4d8f3912892c441a84087467962ad6302e0 /npc/config/magic.txt
parent0d3c2f023eeb67275dac9aa9c2d7f2dda9f269b4 (diff)
downloadserverdata-4af79e0e276ba70148c22e2d84cbc02e778e36f2.tar.gz
serverdata-4af79e0e276ba70148c22e2d84cbc02e778e36f2.tar.bz2
serverdata-4af79e0e276ba70148c22e2d84cbc02e778e36f2.tar.xz
serverdata-4af79e0e276ba70148c22e2d84cbc02e778e36f2.zip
Revert "Debug markers required", because they aren't.
The bug was caused because missing returns and wrong ends. This reverts commit f662ebc4232d427ec394d27d3c9153a625de8a4d.
Diffstat (limited to 'npc/config/magic.txt')
-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;
}