Skip to content
Snippets Groups Projects
Commit fe356bf2 authored by yutio888's avatar yutio888
Browse files

fix brawler randbosses on certain monster types having very high weapon damage

resolvers.levelup is handled before applyRandomClass, so the levelup part is not replaced currently.
Manually remove the levelup part to fix it.
parent 3a06daa0
No related branches found
No related tags found
No related merge requests found
......@@ -2074,6 +2074,14 @@ function _M:applyRandomClass(b, data, instant)
}
if b.combat_old.sound then b.combat.sound = b.combat_old.sound end
if b.combat_old.sound_miss then b.combat.sound_miss = b.combat_old.sound_miss end
if b._levelup_info then
for i, v in ipairs(b._levelup_info) do
if v.kchain[1] == "combat" and v.k == "dam" then
table.remove(b._levelup_info, i)
break
end
end
end
end
print("[applyRandomClass]", b.uid, b.name, "Adding class", class.name, mclass.name)
......@@ -2599,6 +2607,14 @@ function _M:applyRandomClassNew(b, data, instant)
}
if b.combat_old.sound then b.combat.sound = b.combat_old.sound end
if b.combat_old.sound_miss then b.combat.sound_miss = b.combat_old.sound_miss end
if b._levelup_info then
for i, v in ipairs(b._levelup_info) do
if v.kchain[1] == "combat" and v.k == "dam" then
table.remove(b._levelup_info, i)
break
end
end
end
end
print("[applyRandomClassNew]", b.uid, b.name, "Adding class", class.name, mclass.name, "level_rate", level_rate)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment