From 68229385cfe83c85079dfef1333e310656071a0c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 27 Nov 2020 14:22:02 -0300 Subject: Sieges will now lower town exports instead of town reputation. No longer 10%, but the *smallest* of 5% or 25 GP. --- npc/functions/siege.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt index 6f4508b56..3e9367081 100644 --- a/npc/functions/siege.txt +++ b/npc/functions/siege.txt @@ -201,9 +201,10 @@ function script siege_check { kamibroadcast("Players failed to defend the city!!"); debugmes "Number of boss grade monsters found: %d", .@mb; $SIEGE_DIFFICULTY=max(1, ($SIEGE_DIFFICULTY/2)); - // Lower the town reputation in 10% - .@var$="$"+strtoupper(MapToLoc(.@m$))+"_REPUTATION"; - setd(.@var$, getd(.@var$)*9/10); + // Lower the town exports in 5% (but never more than 25 GP) + .@var$="$"+strtoupper(MapToLoc(.@m$))+"_EXPORT"; + .@pen=min(25, getd(.@var$)/20); + setd(.@var$, getd(.@var$)-.@pen); } else { kamibroadcast("The city was defended with success! GG, everyone!"); $SIEGE_DIFFICULTY+=1; -- cgit v1.2.3-70-g09d2