From e76a14a2908e138702de05c55c4e6df50fe8a277 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 24 Jan 2019 19:09:14 -0200 Subject: 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 --- npc/002-3/nard.txt | 17 +++-------------- npc/016-1/captain.txt | 30 +++++++++++++++--------------- 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. -- cgit v1.2.3-60-g2f50