summaryrefslogtreecommitdiff
path: root/npc/016-1
diff options
context:
space:
mode:
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)