Commit dac2504bf159163fcdbc927739602f8bb1e461e5

Authored by DarkGod
2 parents 678bc015 fe356bf2

Merge branch 'fix_brawler_rare_high_dam' into 'master'

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.

See merge request !776
... ... @@ -2074,6 +2074,14 @@ function _M:applyRandomClass(b, data, instant)
2074 2074 }
2075 2075 if b.combat_old.sound then b.combat.sound = b.combat_old.sound end
2076 2076 if b.combat_old.sound_miss then b.combat.sound_miss = b.combat_old.sound_miss end
  2077 + if b._levelup_info then
  2078 + for i, v in ipairs(b._levelup_info) do
  2079 + if v.kchain[1] == "combat" and v.k == "dam" then
  2080 + table.remove(b._levelup_info, i)
  2081 + break
  2082 + end
  2083 + end
  2084 + end
2077 2085 end
2078 2086
2079 2087 print("[applyRandomClass]", b.uid, b.name, "Adding class", class.name, mclass.name)
... ... @@ -2599,6 +2607,14 @@ function _M:applyRandomClassNew(b, data, instant)
2599 2607 }
2600 2608 if b.combat_old.sound then b.combat.sound = b.combat_old.sound end
2601 2609 if b.combat_old.sound_miss then b.combat.sound_miss = b.combat_old.sound_miss end
  2610 + if b._levelup_info then
  2611 + for i, v in ipairs(b._levelup_info) do
  2612 + if v.kchain[1] == "combat" and v.k == "dam" then
  2613 + table.remove(b._levelup_info, i)
  2614 + break
  2615 + end
  2616 + end
  2617 + end
2602 2618 end
2603 2619
2604 2620 print("[applyRandomClassNew]", b.uid, b.name, "Adding class", class.name, mclass.name, "level_rate", level_rate)
... ...