summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-24 00:36:07 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-24 00:36:07 -0300
commiteab7932015a2a19a695d7d76789241b218482430 (patch)
tree6a6fb541812627aa5338c2188ebb206bc994360a
parent44daede921cfccbdc26a162f978c301fe9370475 (diff)
downloadserverdata-eab7932015a2a19a695d7d76789241b218482430.tar.gz
serverdata-eab7932015a2a19a695d7d76789241b218482430.tar.bz2
serverdata-eab7932015a2a19a695d7d76789241b218482430.tar.xz
serverdata-eab7932015a2a19a695d7d76789241b218482430.zip
politics: Prevent reputation overflow
-rw-r--r--npc/functions/politics.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index 95f12399f..8a2ad6d27 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -381,7 +381,7 @@ function script POL_Manage {
// Mark 0: Cycle
case 1:
if (rand(3) == 1)
- setd(.@town$+"_REPUTATION", .@RP+1);
+ setd(.@town$+"_REPUTATION", limit(0, .@RP+1, 100));
setd(.@town$+"_DAILYQUEST", gettimeparam(GETTIME_DAYOFMONTH));
mesc l("You dealt with paperwork."), 2;
break;