From c01346b0dc3b174a19b926c76bc0adbda3226db5 Mon Sep 17 00:00:00 2001 From: Lemon-King Date: Fri, 28 Jun 2024 19:50:37 -0400 Subject: [PATCH] WorldHandler: WorldThingSpawned is no longer needed here --- .../assets/zscript/events/hxdd/worldhandler.zs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/resources/assets/zscript/events/hxdd/worldhandler.zs b/resources/assets/zscript/events/hxdd/worldhandler.zs index 71faf01..ba6b9c5 100644 --- a/resources/assets/zscript/events/hxdd/worldhandler.zs +++ b/resources/assets/zscript/events/hxdd/worldhandler.zs @@ -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;