summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-30 21:11:11 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-30 21:11:11 -0300
commit67776c8baac25a106550eb750c0cab28f96d8629 (patch)
treea6aee813179add0ce479bf384f38068106deabec /npc/functions
parent0df5528282d2435a6fc7c1a1b852c7add3589884 (diff)
downloadserverdata-67776c8baac25a106550eb750c0cab28f96d8629.tar.gz
serverdata-67776c8baac25a106550eb750c0cab28f96d8629.tar.bz2
serverdata-67776c8baac25a106550eb750c0cab28f96d8629.tar.xz
serverdata-67776c8baac25a106550eb750c0cab28f96d8629.zip
Make investment in exportation profitable in 24~52 weeks.
Greater cost, greater effect, there's however 1 GP of fixed component
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/politics.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index 30909b15a..455cd463a 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -438,9 +438,10 @@ function script POL_Manage {
break;
mesc l("Are you sure?");
if (askyesno() == ASK_YES) {
+ .@BN=rand2(.@cost/52, .@cost/24) + 1;
.@GP=getd("$"+getarg(0)+"_MONEY");
setd(.@town$+"_MONEY", .@GP-.@cost);
- setd(.@town$+"_EXPORT", .@EX+rand2(6,8));
+ setd(.@town$+"_EXPORT", .@EX+.@BN);
TOWN_ACTIONS[.@TP]+=1;
mesc l("Investment executed"), 2;
next;