summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-01-18 23:01:22 -0300
committerJesusaves <cpntb1@ymail.com>2024-01-18 23:01:22 -0300
commita97dcce0dce7dd24a4e68bab55911ff3d3c7aeca (patch)
treefbaad92805021e162cfd25b22210e9660d231ed4 /npc
parent450a93be054b454739e4d8593c273bb001a9bc4f (diff)
downloadserverdata-a97dcce0dce7dd24a4e68bab55911ff3d3c7aeca.tar.gz
serverdata-a97dcce0dce7dd24a4e68bab55911ff3d3c7aeca.tar.bz2
serverdata-a97dcce0dce7dd24a4e68bab55911ff3d3c7aeca.tar.xz
serverdata-a97dcce0dce7dd24a4e68bab55911ff3d3c7aeca.zip
Make Siege Boss slightly stronger (not really) once TOP3AVERAGELVL() pass 100.
This will avoid General from getting **too** weak (but will still be weak)
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/siege.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt
index f9266d2f6..974e4e979 100644
--- a/npc/functions/siege.txt
+++ b/npc/functions/siege.txt
@@ -299,6 +299,7 @@ function script siege_boss {
.@bcr=getunitdata(.@mg, UDT_CRIT);
.@s+=getusers(1);
+ .@s+=max(0, (TOP3AVERAGELVL()-100 / 5)); // Over-100 scaling
setunitdata(.@mg, UDT_MAXHP, .@bhp+(.@s*250)+.@val*5*getmapusers(.@m$));
setunitdata(.@mg, UDT_HP, .@bhp+(.@s*250)+.@val*5*getmapusers(.@m$));