diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-06-08 15:38:44 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-06-08 15:38:44 -0300 |
commit | e7047903da5997d3225f84558944fe3ed024817f (patch) | |
tree | 6eb10c359551e9304ed163e31a3dce3963b9e5d6 /npc/config | |
parent | 38710c49f20e032f21ebe28a497d3e5b472fc0c4 (diff) | |
download | serverdata-e7047903da5997d3225f84558944fe3ed024817f.tar.gz serverdata-e7047903da5997d3225f84558944fe3ed024817f.tar.bz2 serverdata-e7047903da5997d3225f84558944fe3ed024817f.tar.xz serverdata-e7047903da5997d3225f84558944fe3ed024817f.zip |
Summoning: Abizit effects are now variable.
Instead of a fixed seconds/HP bonus, it causes a -20%~+30% variation.
Diffstat (limited to 'npc/config')
-rw-r--r-- | npc/config/magic.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt index 1c73a9ab3..c4f4e2912 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -97,9 +97,14 @@ function script SummonMagic { // The 35~50 is not a defect, remember skill starts at level 1... // PS. Abizit gives 3s per level, and +1 HP per level for (.@i = 0; .@i < (.@lv+(.@adj-1))/.@adj; .@i++) { - .@mids=summon("Summoned Monster", .@id, rand(35,50)+.@lv*10+abizit()*3); + .@lifetime=rand(35,50)+.@lv*10; + // Abizit makes lifetime vary (like AdjustSpellpower) + .@lifetime = .@lifetime * (80 + abizit() * rand2(5,10)) / 100; + .@mids=summon("Summoned Monster", .@id, .@lifetime); .@bhp=getunitdata(.@mids, UDT_MAXHP); - .@lvx=max(0, (.@lv-1)*.@bhp/50)+abizit(); + .@lvx=max(0, (.@lv-1)*.@bhp/50); + // Abizit makes bonus HP vary (like AdjustSpellpower) + .@lvx = .@lvx * (80 + abizit() * rand2(5,10)) / 100; setunitdata(.@mids, UDT_MAXHP, .@bhp+.@lvx); setunitdata(.@mids, UDT_HP, .@bhp+.@lvx); } |