summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-01-18 16:10:46 -0300
committerJesusaves <cpntb1@ymail.com>2024-01-18 16:10:46 -0300
commitbc72f47f9df43d9545d567fe0244836caba22eec (patch)
treec4f4da76d8a95cecc722ccdb5847589ca3756a67 /npc
parentb705d7cb8e5e25d079b4d0f87d86ed14a5e4932f (diff)
downloadserverdata-bc72f47f9df43d9545d567fe0244836caba22eec.tar.gz
serverdata-bc72f47f9df43d9545d567fe0244836caba22eec.tar.bz2
serverdata-bc72f47f9df43d9545d567fe0244836caba22eec.tar.xz
serverdata-bc72f47f9df43d9545d567fe0244836caba22eec.zip
Fix the typo
Diffstat (limited to 'npc')
-rw-r--r--npc/031-5/beatrice.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/npc/031-5/beatrice.txt b/npc/031-5/beatrice.txt
index 0ded086b3..c42fdfe4c 100644
--- a/npc/031-5/beatrice.txt
+++ b/npc/031-5/beatrice.txt
@@ -75,8 +75,14 @@ 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
if (.@pc >= 100)
- .@pc += 12; // Each 0.01% chance gives a bonus of 12 points
+ .@pc += 2;
+ else if (.@pc >= 99)
+ .@pc += 1;
+ // Sanitization and Scaling
+ .@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));
input .@am, 0, countitem(.@id);