From 6dbf28e80085a2e91e87f0a2149662ce2c7db57f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 24 Jan 2019 19:13:30 -0200 Subject: Ship travel is once again more expensive, but discounts are absolutely smooth. --- npc/016-1/captain.txt | 36 +++--------------------------------- 1 file 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) -- cgit v1.2.3-60-g2f50