diff options
Diffstat (limited to 'npc/magic/config.txt')
-rw-r--r-- | npc/magic/config.txt | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/npc/magic/config.txt b/npc/magic/config.txt index c0f00cec..ddb56902 100644 --- a/npc/magic/config.txt +++ b/npc/magic/config.txt @@ -59,26 +59,18 @@ function script AdjustAttackpower { // SkillID, EXP Points function script GetManaExp { - // FIXME .@sk=getarg(0); .@pt=getarg(1); - .@bonus=rand2(0,getskilllv(TMW2_SAGE)*3/2); - if (LAST_SKILL == .@sk) { - .@pt=limit(0, (.@pt+.@bonus)/3, 1); - .@bonus=0; - } else { + if (LAST_SKILL != .@sk) { // Update skill memory LAST_SKILL[4]=LAST_SKILL[3]; LAST_SKILL[3]=LAST_SKILL[2]; LAST_SKILL[2]=LAST_SKILL[1]; LAST_SKILL[1]=LAST_SKILL[0]; LAST_SKILL[0]=.@sk; - MAGIC_RP+=1; - // Magic RP is gained by switching skills often + // Magic EXP is gained by switching skills often + MAGIC_EXP=MAGIC_EXP+.@pt; } - - // Update Magic EXP - MAGIC_EXP=MAGIC_EXP+.@pt+.@bonus; return; } |