1
0
Fork 0

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.
This commit is contained in:
ivan tkachenko 2026-01-13 22:35:12 +02:00
parent b8accefff7
commit cfff2b808a
2 changed files with 29 additions and 1 deletions

View File

@ -4,6 +4,7 @@
- Added a new track TwoFastTuFurious (from the same artist as PickUpSticks), thematic to the upcoming Valentine's Day. - 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. - 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 ## MuzikaGromche 1337.9001.4 - v73 Chinese New Year Edition

View File

@ -50,10 +50,37 @@ namespace MuzikaGromche
]; ];
Patches = [.. patchDescriptors.Select(d => Patches = [.. patchDescriptors.Select(d =>
new TilePatch(d.TileName, assetBundle.LoadAsset<GameObject>(d.PrefabPath)) new TilePatch(d.TileName, HotFixPrefab(d.PrefabPath, assetBundle.LoadAsset<GameObject>(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) internal static void Patch(Tile tile)
{ {
var query = from patch in Patches var query = from patch in Patches