diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-05 01:03:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-05 01:03:27 -0300 |
commit | 5776e3681fb111ec327b1236adc6fd7b0016b54b (patch) | |
tree | fbeec9adfa93c1db78523b714ea3054102aad792 | |
parent | 65bc4fe39ac1e79a9972c44e0eff80a74207dd0d (diff) | |
download | serverdata-5776e3681fb111ec327b1236adc6fd7b0016b54b.tar.gz serverdata-5776e3681fb111ec327b1236adc6fd7b0016b54b.tar.bz2 serverdata-5776e3681fb111ec327b1236adc6fd7b0016b54b.tar.xz serverdata-5776e3681fb111ec327b1236adc6fd7b0016b54b.zip |
Suppress a lot of Siege Difficulty variation upon Demure's Request
-rw-r--r-- | npc/functions/siege.txt | 9 |
1 files changed, 5 insertions, 4 deletions
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 <mobID> if their level is within a 15 levels range +// push to $@SIEGE_TMPMOBS the <mobID> if their level is within a x levels range // above or below <level> -// 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); |