Skip to content

Commit

Permalink
WorldHandler: WorldThingSpawned is no longer needed here
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemon-King committed Jun 28, 2024
1 parent 252415a commit c01346b
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions resources/assets/zscript/events/hxdd/worldhandler.zs
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,6 @@ class HXDDWorldEventHandler : EventHandler {
//LemonUtil.TryOpenMapByName();
}

// real nasty hack
override void WorldThingSpawned (WorldEvent e) {
if (e.Thing) {
PlayerPawn p = PlayerPawn(players[0].mo);
Progression prog = Progression(p.FindInventory("Progression"));
if (prog) {
Inventory item = Inventory(e.Thing);
if (item is "Inventory" || item is "CustomInventory") {
String pkupSound = item.PickupSound;
String replacement = prog.FindSoundReplacement(pkupSound);
item.PickupSound = replacement;
}
}
}
}

override void WorldLinePreActivated(WorldEvent e) {
if (LemonUtil.IsGameType(GAME_Doom)) {
return;
Expand Down

0 comments on commit c01346b

Please sign in to comment.