summaryrefslogtreecommitdiff
path: root/npc/031-5
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-01-18 16:25:04 -0300
committerJesusaves <cpntb1@ymail.com>2024-01-18 16:25:04 -0300
commit44ec7c04d69456a477cabc1c578a413ba5ceaba3 (patch)
treef177ebae38d35db0b71c683565e2522e0c9187fd /npc/031-5
parentbc72f47f9df43d9545d567fe0244836caba22eec (diff)
downloadserverdata-44ec7c04d69456a477cabc1c578a413ba5ceaba3.tar.gz
serverdata-44ec7c04d69456a477cabc1c578a413ba5ceaba3.tar.bz2
serverdata-44ec7c04d69456a477cabc1c578a413ba5ceaba3.tar.xz
serverdata-44ec7c04d69456a477cabc1c578a413ba5ceaba3.zip
Touch up Beatrice's Formula. Note down results.
Diffstat (limited to 'npc/031-5')
-rw-r--r--npc/031-5/beatrice.txt19
1 files changed, 16 insertions, 3 deletions
diff --git a/npc/031-5/beatrice.txt b/npc/031-5/beatrice.txt
index c42fdfe4c..418d535cb 100644
--- a/npc/031-5/beatrice.txt
+++ b/npc/031-5/beatrice.txt
@@ -75,13 +75,26 @@ L_Seller:
}
//debugmes "Ratio %s", .@mb$;
.@pc = 1+.ratio-(.@rt); // The reverse, so it goes from 1 to ratio
- // Bonus points for when quadratic scaling apply
+ // Bonus points for when quadratic scaling apply (42 pts)
if (.@pc >= 100)
- .@pc += 2;
+ .@pc += 4;
else if (.@pc >= 99)
+ .@pc += 2;
+ else if (.@pc >= 98)
.@pc += 1;
+ // These values may be incorrect due to truncation
+ // 0.01% = 1144 pts
+ // 0.02% = 1122 pts
+ // 0.03% = 990 pts
+ // 0.04% = 970 pts
+ // 0.05% = 960 pts
+ // 0.10% = 910 pts
+ // 0.12% = 810 pts
+ // 0.50% = 306 pts
+ // 0.90% = 22 pts
+ // 1.00% = 2 pts
// Sanitization and Scaling
- .@pc *= 10;
+ .@pc *= (.@pc < 10 ? 2 : 1) + (.@pc / 10);
.@pc = min(.@pc, 1120);
mesn;
mesq l("I offer you %s Aethyr Points per unit of %s. How many do you wish to sell? (0-%d)", fnum(.@pc), getitemlink(.@id), countitem(.@id));