BerserkerOrbFix
Fixes BerserkerEnemies_Reborn bugs: orb drop, explosion crash, containModded flag, and missing enemies (Hidden, Cleanup Crew).BerserkerOrbFix
A patch mod for BerserkerEnemies_Reborn that fixes several bugs.
Bugs Fixed
-
Orbs never drop — Berserker enemies never dropped their custom orbs when killed. The mod was checking max HP (always > 0) instead of current HP (0 when dead), so the death condition was never met. Fixed with a Harmony Transpiler that corrects the field access.
-
Orbs crash instead of exploding at high levels — At Moon Level 4+ (level 20+), enemy orbs are supposed to explode on destruction. The berserker orb prefab was missing the explosion object, causing a NullReferenceException. Fixed by injecting the vanilla explosion (with damage, particles, and camera shake) into berserker orbs at spawn.
-
containModded always true — The
containModdedflag defaulted totrueand was never set tofalse, causing modded enemy names (Gusher, Roaster, etc.) to always appear in the eligible list even without those mods installed. Fixed by re-checking installed DLLs after load. -
Missing enemies — Hidden and Cleanup Crew were missing from the berserker-eligible enemy list. Added both as toggleable config entries in BerserkerEnemies' own config file under
[Enemies].
Installation
Install via r2modman or Thunderstore Mod Manager. Requires BerserkerEnemies_Reborn.
