From e7047903da5997d3225f84558944fe3ed024817f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 8 Jun 2020 15:38:44 -0300 Subject: Summoning: Abizit effects are now variable. Instead of a fixed seconds/HP bonus, it causes a -20%~+30% variation. --- npc/config/magic.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'npc/config') 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); } -- cgit v1.2.3-70-g09d2