From 5d65a6adb10d77618f0acf689a855c4d47de82c4 Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Fri, 3 Dec 2021 23:17:04 +0100 Subject: fixed daily points drain for chars greater lvl 110 (#593) (Technically uses Level 99 as reference, so the behavior is identical) --- world/map/npc/030-4/mana_battery.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/world/map/npc/030-4/mana_battery.txt b/world/map/npc/030-4/mana_battery.txt index 15ff40c3..e3910d5d 100644 --- a/world/map/npc/030-4/mana_battery.txt +++ b/world/map/npc/030-4/mana_battery.txt @@ -311,7 +311,7 @@ OnReward: if (($@XmasBattleStatusClone % 2) == 0) set XMASTIME, XMASTIME | $@xmas_boss_hero_bit; set @xmas_state, (XMASTIME & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT; - set @bonus, (55 - (BaseLevel / 2)); + set @bonus, (55 - (min(BaseLevel, 99) / 2)); set DailyQuestBonus, DailyQuestBonus + @bonus; message strcharinfo(0), "You feel a temporary rush of power and zest for action."; if (@xmas_state != $@xmas_boss_door_open_state ) @@ -319,6 +319,7 @@ OnReward: set @xmas_state, $@xmas_reward_start; callfunc "XmasSetState"; set @xmas_state, 0; + //following line seems to do nothing since xmas_boss_bonus is not defined anywhere set @karma_bonus, $@xmas_boss_bonus; message strcharinfo(0), "Wow, what happened here?."; goto L_End; -- cgit v1.2.3-60-g2f50