summaryrefslogtreecommitdiff
path: root/npc/functions/siege.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/siege.txt')
-rw-r--r--npc/functions/siege.txt7
1 files 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;