diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-22 16:26:42 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-22 16:26:42 -0300 |
commit | 898ad77faa9ed091298ae4b0da9d2b9fdec89f96 (patch) | |
tree | f1da8fb25d96b32865df0d459ee33b9ee1e17a06 | |
parent | 1dcecac6e12c940b8f3cabf1482d3d7395c32b25 (diff) | |
download | serverdata-898ad77faa9ed091298ae4b0da9d2b9fdec89f96.tar.gz serverdata-898ad77faa9ed091298ae4b0da9d2b9fdec89f96.tar.bz2 serverdata-898ad77faa9ed091298ae4b0da9d2b9fdec89f96.tar.xz serverdata-898ad77faa9ed091298ae4b0da9d2b9fdec89f96.zip |
Repeating already used skills now *can* give you a single mana exp point, depending
on the skill power. (Mana Magic only).
-rw-r--r-- | npc/config/magic.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt index 5d4df94bd..6516a2609 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -20,8 +20,10 @@ function script GetManaExp { .@sk=getarg(0); .@pt=getarg(1); .@bonus=rand(0,getskilllv(TMW2_SAGE)*3/2); - if (LAST_SKILL == .@sk) - end; + if (LAST_SKILL == .@sk) { + .@pt=limit(0, (.@pt+.@bonus)/3, 1); + .@bonus=0; + } LAST_SKILL=.@sk; MAGIC_EXP=MAGIC_EXP+.@pt+.@bonus; return; |