diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-11-27 14:22:02 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-11-27 14:22:02 -0300 |
commit | 68229385cfe83c85079dfef1333e310656071a0c (patch) | |
tree | 6a30e255b7f24d012675118b7648f01edb11c25d | |
parent | 591308e0b1f4bc5f8c816e2af3298c8b7899209b (diff) | |
download | serverdata-68229385cfe83c85079dfef1333e310656071a0c.tar.gz serverdata-68229385cfe83c85079dfef1333e310656071a0c.tar.bz2 serverdata-68229385cfe83c85079dfef1333e310656071a0c.tar.xz serverdata-68229385cfe83c85079dfef1333e310656071a0c.zip |
Sieges will now lower town exports instead of town reputation.
No longer 10%, but the *smallest* of 5% or 25 GP.
-rw-r--r-- | npc/functions/siege.txt | 7 |
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; |