From 5776e3681fb111ec327b1236adc6fd7b0016b54b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 5 May 2019 01:03:27 -0300 Subject: Suppress a lot of Siege Difficulty variation upon Demure's Request --- npc/functions/siege.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'npc/functions/siege.txt') diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt index 10fa4736f..dd94e1b3f 100644 --- a/npc/functions/siege.txt +++ b/npc/functions/siege.txt @@ -44,14 +44,15 @@ function script siege_calcdiff { return (.@bsum/.@c); } -// push to $@SIEGE_TMPMOBS the if their level is within a 15 levels range +// push to $@SIEGE_TMPMOBS the if their level is within a x levels range // above or below -// siege_push ( mobID, level ) +// siege_push ( mobID, {level{, variation}} ) function script siege_push { .@mi=getarg(0); .@lv=getarg(1,0); + .@var=getarg(2,5); // Old Default: 15 - if ( is_between(.@lv-15, .@lv+15, strmobinfo(3, .@mi)) ) { + if ( is_between(.@lv-.@var, .@lv+.@var, strmobinfo(3, .@mi)) ) { //debugmes "Monster %s (%d) level %d ~= %d", strmobinfo(1, .@mi), .@mi, strmobinfo(3, .@mi), .@lv; array_push($@SIEGE_TMPMOBS, .@mi); } @@ -86,7 +87,6 @@ function script siege_selectmob { siege_push(BlackSlime, .@blv); siege_push(BlackScorpion, .@blv); siege_push(Forain, .@blv); - siege_push(GreenDragon, .@blv); siege_push(Terranite, .@blv); siege_push(JackO, .@blv); siege_push(BlackMamba, .@blv); @@ -115,6 +115,7 @@ function script siege_selectmob { siege_push(AngryYellowSlime, .@blv); siege_push(GrassSnake, .@blv); siege_push(WickedMushroom, .@blv); + siege_push(GreenDragon, .@blv); } if (.@tp & TP_NIVAL) { siege_push(Bluepar, .@blv); -- cgit v1.2.3-60-g2f50