summaryrefslogtreecommitdiff
path: root/world/map/npc/030-4
diff options
context:
space:
mode:
authorHoraK-FDF <HoraK-FDF@web.de>2021-12-03 23:17:04 +0100
committerGitHub <noreply@github.com>2021-12-03 22:17:04 +0000
commit5d65a6adb10d77618f0acf689a855c4d47de82c4 (patch)
treee312bb79488c0ef7f60e4e4e2a60ebdb5f763e8f /world/map/npc/030-4
parent69b4dea1140ab4d49858665a8ccfe4a2b06630ee (diff)
downloadserverdata-5d65a6adb10d77618f0acf689a855c4d47de82c4.tar.gz
serverdata-5d65a6adb10d77618f0acf689a855c4d47de82c4.tar.bz2
serverdata-5d65a6adb10d77618f0acf689a855c4d47de82c4.tar.xz
serverdata-5d65a6adb10d77618f0acf689a855c4d47de82c4.zip
fixed daily points drain for chars greater lvl 110 (#593)
(Technically uses Level 99 as reference, so the behavior is identical)
Diffstat (limited to 'world/map/npc/030-4')
-rw-r--r--world/map/npc/030-4/mana_battery.txt3
1 files changed, 2 insertions, 1 deletions
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;