diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-13 12:02:57 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-13 12:02:57 -0300 |
commit | e9fac5b29405eaad267639167215b42cc50ae868 (patch) | |
tree | b06ca6d5af25a275cd47e3f578b291b26c7e5e78 /npc/magic/config.txt | |
parent | 9431abfcaa22101e740ed90186917bf17842fd79 (diff) | |
download | serverdata-e9fac5b29405eaad267639167215b42cc50ae868.tar.gz serverdata-e9fac5b29405eaad267639167215b42cc50ae868.tar.bz2 serverdata-e9fac5b29405eaad267639167215b42cc50ae868.tar.xz serverdata-e9fac5b29405eaad267639167215b42cc50ae868.zip |
Disconnect "legacy magic exp" so it goes over 9000
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; } |