Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of TomatoScrap v1.9.0
Tomatobird.TomatoScrap.dll
Decompiled a month agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using LethalLib.Modules; using Microsoft.CodeAnalysis; using UnityEngine; using UnityEngine.Rendering.HighDefinition; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("Tomatobird.TomatoScrap")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("TomatoScrap")] [assembly: AssemblyTitle("Tomatobird.TomatoScrap")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace TomatoScrap { [BepInPlugin("Tomatobird.TomatoScrap", "TomatoScrap", "1.0.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class TomatoScrap : BaseUnityPlugin { public bool forceRegistration; public int birdPlushRarity; public int lidlCubeRarity; public int tinyLidlCubeRarity; public int kongStrongRarity; public int marvCubeRarity; public int johnRarity; public int gigaJohnRarity; public int tomatoRarity; public int theBoneRarity; public int yoshistarRarity; public int kongStrongJugRarity; public int tomatoMugRarity; public int magic67BallRarity; public int burgerRarity; public int wrBurgerRarity; public int marbleRarity; public int birdPlushMinValue; public int birdPlushMaxValue; public int gigaJohnMinValue; public int gigaJohnMaxValue; public int johnMinValue; public int johnMaxValue; public int kongStrongMinValue; public int kongStrongMaxValue; public int kongStrongJugMinValue; public int kongStrongJugMaxValue; public int lidlCubeMinValue; public int lidlCubeMaxValue; public int tinyLidlCubeMinValue; public int tinyLidlCubeMaxValue; public int marvCubeMinValue; public int marvCubeMaxValue; public int theBoneMinValue; public int theBoneMaxValue; public int yoshistarMinValue; public int yoshistarMaxValue; public int tomatoMinValue; public int tomatoMaxValue; public int tomatoMugMinValue; public int tomatoMugMaxValue; public int magic67BallMinValue; public int magic67BallMaxValue; public int burgerMinValue; public int burgerMaxValue; public int wrBurgerMinValue; public int wrBurgerMaxValue; public int marbleMinValue; public int marbleMaxValue; public float tomatoExplosionChance; public float tomatoExplosionSize; public float tomatoExplosionVolume; public float tomatoExplosionDecalScale; public float tomatoExplosionDecalVisibilityRange; public float johnMusicVolume; public float johnMusicMaxRange; public float johnMusicMinRange; public float gigaJohnMusicVolume; public float gigaJohnMusicMaxRange; public float gigaJohnMusicMinRange; public static TomatoScrap Instance { get; private set; } private void Awake() { //IL_0df5: Unknown result type (might be due to invalid IL or missing references) //IL_0e00: Unknown result type (might be due to invalid IL or missing references) //IL_0e77: Unknown result type (might be due to invalid IL or missing references) //IL_0e85: Unknown result type (might be due to invalid IL or missing references) //IL_0e90: Unknown result type (might be due to invalid IL or missing references) Instance = this; ((BaseUnityPlugin)this).Logger.LogInfo((object)"Tomatobird.TomatoScrap v1.0.0 is loading!"); birdPlushRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "Bird Plush Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; lidlCubeRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "Big LIDL Cube Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; tinyLidlCubeRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "Tiny LIDL Cube Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; kongStrongRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "Kong Strong Rarity", 2, "Item rarity. Recommended values are between 1 to 99.").Value; marvCubeRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "Marv Cube Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; johnRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "JOHN Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; gigaJohnRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "GIGAJOHN Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; theBoneRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "The Bone Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; tomatoRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "Tomato Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; yoshistarRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "Yoshistar Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; kongStrongJugRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "Kong Strong Jug Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; tomatoMugRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "Lobby Mug Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; magic67BallRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "Magic 67 Ball Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; burgerRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "Burger Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; wrBurgerRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "WRBurger Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; marbleRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "Marble Rarity", 1, "Item rarity. Recommended values are between 1 to 99.").Value; birdPlushMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Bird Plush Min Value", 180, "Minimum Value.").Value; birdPlushMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Bird Plush Max Value", 280, "Maximum Value.").Value; gigaJohnMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "GIGAJOHN Min Value", 900, "Minimum Value.").Value; gigaJohnMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "GIGAJOHN Max Value", 1200, "Maximum Value.").Value; johnMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "JOHN Min Value", 180, "Minimum Value.").Value; johnMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "JOHN Max Value", 280, "Maximum Value.").Value; kongStrongMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Kong Strong Min Value", 135, "Minimum Value.").Value; kongStrongMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Kong Strong Max Value", 225, "Maximum Value.").Value; kongStrongJugMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Kong Strong Jug Min Value", 255, "Minimum Value.").Value; kongStrongJugMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Kong Strong Jug Max Value", 355, "Maximum Value.").Value; lidlCubeMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Big LIDL Cube Min Value", 190, "Minimum Value.").Value; lidlCubeMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Big LIDL Cube Max Value", 280, "Maximum Value.").Value; marvCubeMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Marv Cube Min Value", 190, "Minimum Value.").Value; marvCubeMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Marv Cube Max Value", 280, "Maximum Value.").Value; theBoneMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "The Bone Min Value", 75, "Minimum Value.").Value; theBoneMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "The Bone Max Value", 76, "Maximum Value.").Value; tinyLidlCubeMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Tiny LIDL Cube Min Value", 80, "Minimum Value.").Value; tinyLidlCubeMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Tiny LIDL Cube Max Value", 140, "Maximum Value.").Value; tomatoMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Tomato Min Value", 140, "Minimum Value.").Value; tomatoMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Tomato Max Value", 190, "Maximum Value.").Value; yoshistarMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Yoshistar Min Value", 420, "Minimum Value.").Value; yoshistarMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Yoshistar Max Value", 640, "Maximum Value.").Value; tomatoMugMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Lobby Mug Min Value", 140, "Minimum Value.").Value; tomatoMugMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Lobby Mug Max Value", 210, "Maximum Value.").Value; magic67BallMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Magic 67 Ball Min Value", 168, "Maximum Value.").Value; magic67BallMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Magic 67 Ball Max Value", 169, "Maximum Value.").Value; burgerMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Burger Min Value", 110, "Maximum Value.").Value; burgerMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Burger Max Value", 150, "Maximum Value.").Value; wrBurgerMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "WRBurger Min Value", 360, "Maximum Value.").Value; wrBurgerMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "WRBurger MaxValue", 580, "Maximum Value.").Value; marbleMinValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Marble Min Value", 3, "Maximum Value.").Value; marbleMaxValue = ((BaseUnityPlugin)this).Config.Bind<int>("Values", "Marble Max Value", 500, "Maximum Value.").Value; forceRegistration = ((BaseUnityPlugin)this).Config.Bind<bool>("Misc", "Force Registration", false, "Should items be registered despite rarity set to 0?").Value; tomatoExplosionChance = ((BaseUnityPlugin)this).Config.Bind<float>("Misc", "Tomato Explosion Chance", 16f, "How likely should the tomato explode?").Value; tomatoExplosionSize = ((BaseUnityPlugin)this).Config.Bind<float>("Misc", "Tomato Explosion Size", 0.5f, "Multiplier for the size of the explosion").Value; tomatoExplosionVolume = ((BaseUnityPlugin)this).Config.Bind<float>("Misc", "Tomato Explosion Volume", 0.66f, "Volume of the explosion").Value; tomatoExplosionDecalScale = ((BaseUnityPlugin)this).Config.Bind<float>("Misc", "Tomato Explosion Decal Scale", 4f, "Decal scale of the explosion").Value; tomatoExplosionDecalVisibilityRange = ((BaseUnityPlugin)this).Config.Bind<float>("Misc", "Tomato Explosion Decal Visibility Range", 48f, "Visibility range of the decal from the explosion").Value; johnMusicVolume = ((BaseUnityPlugin)this).Config.Bind<float>("Misc", "John Music Volume", 0.667f, "Volume of the music emitted by JOHN.").Value; johnMusicMaxRange = ((BaseUnityPlugin)this).Config.Bind<float>("Misc", "John Music Max Range", 4f, "Range of the music emitted by JOHN.").Value; johnMusicMinRange = ((BaseUnityPlugin)this).Config.Bind<float>("Misc", "John Music Min Range", 1f, "Lowest range where max music volume from JOHN is heard. Must be lower than MaxRange.").Value; gigaJohnMusicVolume = ((BaseUnityPlugin)this).Config.Bind<float>("Misc", "Giga John Music Volume", 0.9f, "Volume of the music emitted by GIGAJOHN.").Value; gigaJohnMusicMaxRange = ((BaseUnityPlugin)this).Config.Bind<float>("Misc", "Giga John Max Range", 5f, "Range of the music emitted by GIGAJOHN.").Value; gigaJohnMusicMinRange = ((BaseUnityPlugin)this).Config.Bind<float>("Misc", "Giga John Min Range", 1f, "Lowest range where max music volume from GIGAJOHN is heard. Must be lower than MaxRange.").Value; string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "tomatoscrap"); AssetBundle val = AssetBundle.LoadFromFile(text); if (birdPlushRarity > 0 || forceRegistration) { Item val2 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/BirdPlush.asset"); val2.minValue = birdPlushMinValue; val2.maxValue = birdPlushMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab); Utilities.FixMixerGroups(val2.spawnPrefab); Items.RegisterScrap(val2, birdPlushRarity, (LevelTypes)(-1)); } if (lidlCubeRarity > 0 || forceRegistration) { Item val3 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/LidlCube.asset"); val3.minValue = lidlCubeMinValue; val3.maxValue = lidlCubeMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val3.spawnPrefab); Utilities.FixMixerGroups(val3.spawnPrefab); Items.RegisterScrap(val3, lidlCubeRarity, (LevelTypes)(-1)); } if (tinyLidlCubeRarity > 0 || forceRegistration) { Item val4 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/TinyLidlCube.asset"); val4.minValue = tinyLidlCubeMinValue; val4.maxValue = tinyLidlCubeMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val4.spawnPrefab); Utilities.FixMixerGroups(val4.spawnPrefab); Items.RegisterScrap(val4, tinyLidlCubeRarity, (LevelTypes)(-1)); } if (kongStrongRarity > 0 || forceRegistration) { Item val5 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/KongStrong.asset"); val5.minValue = kongStrongMinValue; val5.maxValue = kongStrongMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val5.spawnPrefab); Utilities.FixMixerGroups(val5.spawnPrefab); Items.RegisterScrap(val5, kongStrongRarity, (LevelTypes)(-1)); } if (marvCubeRarity > 0 || forceRegistration) { Item val6 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/MarvCube.asset"); val6.minValue = marvCubeMinValue; val6.maxValue = marvCubeMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val6.spawnPrefab); Utilities.FixMixerGroups(val6.spawnPrefab); Items.RegisterScrap(val6, marvCubeRarity, (LevelTypes)(-1)); } if (johnRarity > 0 || forceRegistration) { Item val7 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/John.asset"); AudioSource component = ((Component)val7.spawnPrefab.transform.Find("Music")).GetComponent<AudioSource>(); component.maxDistance = johnMusicMaxRange; component.minDistance = johnMusicMinRange; component.volume = johnMusicVolume; val7.minValue = johnMinValue; val7.maxValue = johnMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val7.spawnPrefab); Utilities.FixMixerGroups(val7.spawnPrefab); Items.RegisterScrap(val7, johnRarity, (LevelTypes)(-1)); } if (gigaJohnRarity > 0 || forceRegistration) { Item val8 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/GigaJohn.asset"); AudioSource component2 = ((Component)val8.spawnPrefab.transform.Find("Music")).GetComponent<AudioSource>(); component2.maxDistance = gigaJohnMusicMaxRange; component2.minDistance = gigaJohnMusicMinRange; component2.volume = gigaJohnMusicVolume; val8.minValue = gigaJohnMinValue; val8.maxValue = gigaJohnMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val8.spawnPrefab); Utilities.FixMixerGroups(val8.spawnPrefab); Items.RegisterScrap(val8, gigaJohnRarity, (LevelTypes)(-1)); } if (theBoneRarity > 0 || forceRegistration) { Item val9 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/TheBone.asset"); val9.minValue = theBoneMinValue; val9.maxValue = theBoneMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val9.spawnPrefab); Utilities.FixMixerGroups(val9.spawnPrefab); Items.RegisterScrap(val9, theBoneRarity, (LevelTypes)(-1)); } if (tomatoRarity > 0 || forceRegistration) { Item val10 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/Tomato.asset"); val10.spawnPrefab.GetComponent<StunGrenadeItem>().chanceToExplode = tomatoExplosionChance; GameObject stunGrenadeExplosion = val10.spawnPrefab.GetComponent<StunGrenadeItem>().stunGrenadeExplosion; Transform transform = stunGrenadeExplosion.transform; transform.localScale *= tomatoExplosionSize; AudioSource val11 = default(AudioSource); ((Component)stunGrenadeExplosion.transform.GetChild(5)).TryGetComponent<AudioSource>(ref val11); AudioSource val12 = default(AudioSource); ((Component)stunGrenadeExplosion.transform.GetChild(5).GetChild(0)).TryGetComponent<AudioSource>(ref val12); val11.volume = tomatoExplosionVolume; val12.volume = tomatoExplosionVolume; Transform child = stunGrenadeExplosion.transform.GetChild(0); child.rotation = Quaternion.Euler(90f, 0f, 0f); child.localScale *= tomatoExplosionDecalScale; DecalProjector val13 = default(DecalProjector); ((Component)child).TryGetComponent<DecalProjector>(ref val13); val13.drawDistance = tomatoExplosionDecalVisibilityRange; val10.minValue = tomatoMinValue; val10.maxValue = tomatoMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val10.spawnPrefab); Utilities.FixMixerGroups(val10.spawnPrefab); Items.RegisterScrap(val10, tomatoRarity, (LevelTypes)(-1)); } if (yoshistarRarity > 0 || forceRegistration) { Item val14 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/Yoshistar.asset"); val14.minValue = yoshistarMinValue; val14.maxValue = yoshistarMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val14.spawnPrefab); Utilities.FixMixerGroups(val14.spawnPrefab); Items.RegisterScrap(val14, yoshistarRarity, (LevelTypes)(-1)); } if (kongStrongJugRarity > 0 || forceRegistration) { Item val15 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/KongStrongJug.asset"); val15.minValue = kongStrongJugMinValue; val15.maxValue = kongStrongJugMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val15.spawnPrefab); Utilities.FixMixerGroups(val15.spawnPrefab); Items.RegisterScrap(val15, kongStrongJugRarity, (LevelTypes)(-1)); } if (tomatoMugRarity > 0 || forceRegistration) { Item val16 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/TomatoMug.asset"); val16.minValue = tomatoMugMinValue; val16.maxValue = tomatoMugMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val16.spawnPrefab); Utilities.FixMixerGroups(val16.spawnPrefab); Items.RegisterScrap(val16, tomatoMugRarity, (LevelTypes)(-1)); } if (magic67BallRarity > 0 || forceRegistration) { Item val17 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/67Ball.asset"); val17.minValue = magic67BallMinValue; val17.maxValue = magic67BallMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val17.spawnPrefab); Utilities.FixMixerGroups(val17.spawnPrefab); Items.RegisterScrap(val17, magic67BallRarity, (LevelTypes)(-1)); } if (burgerRarity > 0 || forceRegistration) { Item val18 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/Burger.asset"); val18.minValue = burgerMinValue; val18.maxValue = burgerMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val18.spawnPrefab); Utilities.FixMixerGroups(val18.spawnPrefab); Items.RegisterScrap(val18, burgerRarity, (LevelTypes)(-1)); } if (magic67BallRarity > 0 || forceRegistration) { Item val19 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/WRBurger.asset"); val19.minValue = wrBurgerMinValue; val19.maxValue = wrBurgerMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val19.spawnPrefab); Utilities.FixMixerGroups(val19.spawnPrefab); Items.RegisterScrap(val19, wrBurgerRarity, (LevelTypes)(-1)); } if (magic67BallRarity > 0 || forceRegistration) { Item val20 = val.LoadAsset<Item>("Assets/LethalCompany/Mods/TomatoScrap/ScriptableObjects/Item/Marble.asset"); val20.minValue = marbleMinValue; val20.maxValue = marbleMaxValue; NetworkPrefabs.RegisterNetworkPrefab(val20.spawnPrefab); Utilities.FixMixerGroups(val20.spawnPrefab); Items.RegisterScrap(val20, marbleRarity, (LevelTypes)(-1)); } ((BaseUnityPlugin)this).Logger.LogInfo((object)"Tomatobird.TomatoScrap v1.0.0 has loaded!"); } } public static class MyPluginInfo { public const string PLUGIN_GUID = "Tomatobird.TomatoScrap"; public const string PLUGIN_NAME = "TomatoScrap"; public const string PLUGIN_VERSION = "1.0.0"; } }