summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-01-18 16:06:02 -0300
committerJesusaves <cpntb1@ymail.com>2024-01-18 16:06:02 -0300
commitb705d7cb8e5e25d079b4d0f87d86ed14a5e4932f (patch)
tree8d31fd19e27b15ba371bf3d4facb01311bb44255
parent1edc7f159d3cc8555ddc5adebff69e8e32b33593 (diff)
downloadserverdata-b705d7cb8e5e25d079b4d0f87d86ed14a5e4932f.tar.gz
serverdata-b705d7cb8e5e25d079b4d0f87d86ed14a5e4932f.tar.bz2
serverdata-b705d7cb8e5e25d079b4d0f87d86ed14a5e4932f.tar.xz
serverdata-b705d7cb8e5e25d079b4d0f87d86ed14a5e4932f.zip
Fix a bug on point calculation in Batrice
-rw-r--r--npc/031-5/beatrice.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/npc/031-5/beatrice.txt b/npc/031-5/beatrice.txt
index 627a1abd8..0ded086b3 100644
--- a/npc/031-5/beatrice.txt
+++ b/npc/031-5/beatrice.txt
@@ -75,7 +75,8 @@ L_Seller:
}
//debugmes "Ratio %s", .@mb$;
.@pc = 1+.ratio-(.@rt); // The reverse, so it goes from 1 to ratio
- .@pc *= 12; // Each 0.01% chance gives a bonus of 12 points
+ if (.@pc >= 100)
+ .@pc += 12; // Each 0.01% chance gives a bonus of 12 points
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);