From eab7932015a2a19a695d7d76789241b218482430 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 24 Feb 2020 00:36:07 -0300 Subject: politics: Prevent reputation overflow --- npc/functions/politics.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-60-g2f50