summaryrefslogtreecommitdiff
path: root/npc/016-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-24 19:13:30 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-24 19:13:30 -0200
commit6dbf28e80085a2e91e87f0a2149662ce2c7db57f (patch)
tree64ec054cb9c3d2c94682f9a4adb473142bf4d382 /npc/016-1
parente76a14a2908e138702de05c55c4e6df50fe8a277 (diff)
downloadserverdata-6dbf28e80085a2e91e87f0a2149662ce2c7db57f.tar.gz
serverdata-6dbf28e80085a2e91e87f0a2149662ce2c7db57f.tar.bz2
serverdata-6dbf28e80085a2e91e87f0a2149662ce2c7db57f.tar.xz
serverdata-6dbf28e80085a2e91e87f0a2149662ce2c7db57f.zip
Ship travel is once again more expensive, but discounts are absolutely smooth.
Diffstat (limited to 'npc/016-1')
-rw-r--r--npc/016-1/captain.txt36
1 files changed, 3 insertions, 33 deletions
diff --git a/npc/016-1/captain.txt b/npc/016-1/captain.txt
index f379259c6..2d74b796d 100644
--- a/npc/016-1/captain.txt
+++ b/npc/016-1/captain.txt
@@ -26,17 +26,7 @@
///// ---------- Tulimshar ----------
L_TTulim:
.@x=(reputation("Tulim")+reputation(LOCATION$))/2;
-
- if (.@x >= 90)
- .@price-=800;
- else if (.@x >= 70)
- .@price-=640;
- else if (.@x >= 50)
- .@price-=480;
- else if (.@x >= 30)
- .@price-=320;
- else if (.@x >= 10)
- .@price-=160;
+ .@price-=min(800, (.@x/10)*80);
mes "";
mesn;
@@ -72,17 +62,7 @@ L_TTulim:
///// ---------- Hurnscald ----------
L_THurns:
.@x=(reputation("Hurns")+reputation(LOCATION$))/2;
-
- if (.@x >= 90)
- .@price-=800;
- else if (.@x >= 70)
- .@price-=640;
- else if (.@x >= 50)
- .@price-=480;
- else if (.@x >= 30)
- .@price-=320;
- else if (.@x >= 10)
- .@price-=160;
+ .@price-=min(800, (.@x/10)*80);
mes "";
mesn;
@@ -117,17 +97,7 @@ L_THurns:
///// ---------- Nivalis ----------
L_TNival:
.@x=(reputation("Nival")+reputation(LOCATION$))/2;
-
- if (.@x >= 90)
- .@price-=800;
- else if (.@x >= 70)
- .@price-=640;
- else if (.@x >= 50)
- .@price-=480;
- else if (.@x >= 30)
- .@price-=320;
- else if (.@x >= 10)
- .@price-=160;
+ .@price-=min(800, (.@x/10)*80);
// Nivalis Liberation Day. Zero could cause weird bugs.
if (!$NIVALIS_LIBDATE)