diff options
author | Hello TMW <hello@themanaworld.org> | 2024-11-09 22:07:43 +0000 |
---|---|---|
committer | Led Mitz <smoothshifter@tuta.io> | 2024-11-09 22:07:43 +0000 |
commit | aebc17117f24d16219f3f63b44a17e2723077254 (patch) | |
tree | 48c39f7ae0ad2bd1b193118faf22848319e8c7e2 | |
parent | fb94560f16159b3a73050d2ea6df524a7d74d5cb (diff) | |
download | serverdata-aebc17117f24d16219f3f63b44a17e2723077254.tar.gz serverdata-aebc17117f24d16219f3f63b44a17e2723077254.tar.bz2 serverdata-aebc17117f24d16219f3f63b44a17e2723077254.tar.xz serverdata-aebc17117f24d16219f3f63b44a17e2723077254.zip |
Fix candor rewards computing vs difficulty level
Does what advertised.
Candor rewards were meant to be scaled like (difficulty level / 2200)
However, someone messed up operands order and it became inverted.
So it became 100 * 2200 / 4500 = 48 BP only. While it meant to be 100 * 4500 / 2200 = 204 BP instead.
This restores reward scaling into what it really meant to be.
-rw-r--r-- | world/map/npc/029-3/parua.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/world/map/npc/029-3/parua.txt b/world/map/npc/029-3/parua.txt index 18b960aa..6142b089 100644 --- a/world/map/npc/029-3/parua.txt +++ b/world/map/npc/029-3/parua.txt @@ -401,8 +401,8 @@ L_IdleCheckPassed: OnReward: if (isdead()) end; - set @bp, 100 * 2200 / $@FIGHT_CAVE_MAX_LEVEL; - set @xp, 100000 * 2200 / $@FIGHT_CAVE_MAX_LEVEL; + set @bp, 100 * $@FIGHT_CAVE_MAX_LEVEL / 2200; + set @xp, 100000 * $@FIGHT_CAVE_MAX_LEVEL / 2200; getexp @xp, 0; set BOSS_POINTS, BOSS_POINTS + @bp; message strcharinfo(0), "You gain "+ @bp +" Boss Points giving you a total of " + BOSS_POINTS + "."; |