summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-02-16 21:32:24 -0300
committerJesusaves <cpntb1@ymail.com>2024-02-16 21:32:24 -0300
commit93c68457281c56aa719f6f55885040f75d1f03f3 (patch)
treee604c4b7c5fa654ce54a895d2f9951804a4d97d8
parent424987283fe15cb0e2154c995a39fd57a7d90253 (diff)
downloadserverdata-93c68457281c56aa719f6f55885040f75d1f03f3.tar.gz
serverdata-93c68457281c56aa719f6f55885040f75d1f03f3.tar.bz2
serverdata-93c68457281c56aa719f6f55885040f75d1f03f3.tar.xz
serverdata-93c68457281c56aa719f6f55885040f75d1f03f3.zip
Minor updates to the actual functionality of the event
-rw-r--r--npc/functions/siege.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt
index 1be9e4d45..380c49d80 100644
--- a/npc/functions/siege.txt
+++ b/npc/functions/siege.txt
@@ -216,6 +216,8 @@ function script siege_check {
// Lower the town exports in 5% (but never more than 25 GP)
.@var$="$"+strtoupper(MapToLoc(.@m$))+"_EXPORT";
.@pen=min(25, getd(.@var$)/20);
+ if ($EVENT$ == "Siege")
+ .@pen /= 2;
setd(.@var$, getd(.@var$)-.@pen);
} else {
kamibroadcast("The city was defended with success! GG, everyone!");
@@ -302,7 +304,7 @@ function script siege_boss {
.@s+=max(0, (TOP3AVERAGELVL()-100 / 5)); // Over-100 scaling
// Over-act tweaks
- if ($GAME_STORYLINE == 4) {
+ if ($GAME_STORYLINE >= 4) {
.@bhp *= 2; // +100% HP Buff (Andrei Sakar is dead)
.@bat *= 2;
.@bcr *= 2;
@@ -391,7 +393,7 @@ function script do_siege {
}
// No one is active, cancel the event
- if (!.@idle) {
+ if (!.@idle && $EVENT$ != "Siege") {
kamibroadcast(col(b("EVENT CANCELLED DUE TO PLAYER INACTIVITY"),1));
$@MK_AGGRO=$@MK_AGGRO/5; // Lower aggro bar to 20%