From cfff2b808a1ed6a66f2f4870fe5b19a721ee4c8b Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Tue, 13 Jan 2026 22:35:12 +0200 Subject: [PATCH] Tweak disco balls at the factory's start room Remove all but one in the center and hang it lower. I don't access to source assets of the bundle, and I have no idea if reassembling it after the AssetReapper is gonna work. --- CHANGELOG.md | 1 + MuzikaGromche/DiscoBallManager.cs | 29 ++++++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4d3df1..ad6e694 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Added a new track TwoFastTuFurious (from the same artist as PickUpSticks), thematic to the upcoming Valentine's Day. - Added support for client-side playback while playing with an unmodded/vanilla host. +- Tweaked the amount of visual flare at the Factory's start room (main tile). ## MuzikaGromche 1337.9001.4 - v73 Chinese New Year Edition diff --git a/MuzikaGromche/DiscoBallManager.cs b/MuzikaGromche/DiscoBallManager.cs index af5c19d..03cdf8f 100644 --- a/MuzikaGromche/DiscoBallManager.cs +++ b/MuzikaGromche/DiscoBallManager.cs @@ -50,10 +50,37 @@ namespace MuzikaGromche ]; Patches = [.. patchDescriptors.Select(d => - new TilePatch(d.TileName, assetBundle.LoadAsset(d.PrefabPath)) + new TilePatch(d.TileName, HotFixPrefab(d.PrefabPath, assetBundle.LoadAsset(d.PrefabPath))) )]; } + static GameObject HotFixPrefab(string PrefabPath, GameObject gameObject) + { + // beacause I can't be bothered to reassemble the asset bundle + if (PrefabPath == "Assets/LethalCompany/Mods/MuzikaGromche/DiscoBallContainerFactory.prefab") + { + void RemoveGameObject(string gameObjectPath) + { + var transform = gameObject.transform.Find(gameObjectPath); + if (transform != null) + { + UnityEngine.Object.Destroy(transform.gameObject); + } + } + RemoveGameObject("DiscoBallProp1"); + RemoveGameObject("DiscoBallProp2"); + + var discoBall = gameObject.transform.Find("DiscoBallProp3"); + if (discoBall != null) + { + var position = discoBall.position; + position.y -= 5f; + discoBall.position = position; + } + } + return gameObject; + } + internal static void Patch(Tile tile) { var query = from patch in Patches