summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-24 19:09:14 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-24 19:09:14 -0200
commite76a14a2908e138702de05c55c4e6df50fe8a277 (patch)
treede83b4f64277e0c7780f6249b2be1263ad54a161
parent7f198fb76962b8256e9a2adbc26322c441473575 (diff)
downloadserverdata-e76a14a2908e138702de05c55c4e6df50fe8a277.tar.gz
serverdata-e76a14a2908e138702de05c55c4e6df50fe8a277.tar.bz2
serverdata-e76a14a2908e138702de05c55c4e6df50fe8a277.tar.xz
serverdata-e76a14a2908e138702de05c55c4e6df50fe8a277.zip
Ship travel prices were lowered in relative terms.
In absolute values, nothing changes. But technically getting discounts is now easier. ...As promised I would do when I add Milly quest :3
-rw-r--r--npc/002-3/nard.txt17
-rw-r--r--npc/016-1/captain.txt30
2 files changed, 18 insertions, 29 deletions
diff --git a/npc/002-3/nard.txt b/npc/002-3/nard.txt
index 605b29444..8317f89b6 100644
--- a/npc/002-3/nard.txt
+++ b/npc/002-3/nard.txt
@@ -221,20 +221,9 @@ L_NotYet:
close;
L_Travel:
- if (nard_reputation() >= 15)
- .@price-=1180;
- else if (nard_reputation() >= 13)
- .@price-=1000;
- else if (nard_reputation() >= 11)
- .@price-=850;
- else if (nard_reputation() >= 9)
- .@price-=650;
- else if (nard_reputation() >= 7)
- .@price-=450;
- else if (nard_reputation() >= 5)
- .@price-=300;
- else if (nard_reputation() >= 3)
- .@price-=200;
+ // Current nard_reputation() value for 100% discount: 15
+ .@price-=min(1199, nard_reputation()*80);
+
mesn;
mesq l("Hi @@.", strcharinfo(0));
next;
diff --git a/npc/016-1/captain.txt b/npc/016-1/captain.txt
index 877549428..f379259c6 100644
--- a/npc/016-1/captain.txt
+++ b/npc/016-1/captain.txt
@@ -27,15 +27,15 @@
L_TTulim:
.@x=(reputation("Tulim")+reputation(LOCATION$))/2;
- if (.@x >= 100)
+ if (.@x >= 90)
.@price-=800;
- else if (.@x >= 80)
+ else if (.@x >= 70)
.@price-=640;
- else if (.@x >= 60)
+ else if (.@x >= 50)
.@price-=480;
- else if (.@x >= 40)
+ else if (.@x >= 30)
.@price-=320;
- else if (.@x >= 20)
+ else if (.@x >= 10)
.@price-=160;
mes "";
@@ -73,15 +73,15 @@ L_TTulim:
L_THurns:
.@x=(reputation("Hurns")+reputation(LOCATION$))/2;
- if (.@x >= 100)
+ if (.@x >= 90)
.@price-=800;
- else if (.@x >= 80)
+ else if (.@x >= 70)
.@price-=640;
- else if (.@x >= 60)
+ else if (.@x >= 50)
.@price-=480;
- else if (.@x >= 40)
+ else if (.@x >= 30)
.@price-=320;
- else if (.@x >= 20)
+ else if (.@x >= 10)
.@price-=160;
mes "";
@@ -118,15 +118,15 @@ L_THurns:
L_TNival:
.@x=(reputation("Nival")+reputation(LOCATION$))/2;
- if (.@x >= 100)
+ if (.@x >= 90)
.@price-=800;
- else if (.@x >= 80)
+ else if (.@x >= 70)
.@price-=640;
- else if (.@x >= 60)
+ else if (.@x >= 50)
.@price-=480;
- else if (.@x >= 40)
+ else if (.@x >= 30)
.@price-=320;
- else if (.@x >= 20)
+ else if (.@x >= 10)
.@price-=160;
// Nivalis Liberation Day. Zero could cause weird bugs.