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 SeniorSir v1.0.2
SeniorLethalCompany.dll
Decompiled 2 years agousing System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Itemtuto.Behaviours; using LethalCompanyInfiniteSprint; using LethalLib.Modules; using UnityEngine; [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("SeniorLethalCompany")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("SeniorTest")] [assembly: AssemblyFileVersion("1.2.0.0")] [assembly: AssemblyInformationalVersion("1.2.0")] [assembly: AssemblyProduct("SeniorLethalCompany")] [assembly: AssemblyTitle("SeniorLethalCompany")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.2.0.0")] [module: UnverifiableCode] namespace LethalCompanyInfiniteSprint { [BepInPlugin("Elfamoso.Piou", "Lethal Sir Mod", "1.0.0.0")] public class SeniorSir : BaseUnityPlugin { public const string modGUID = "Elfamoso.Piou"; public const string modName = "Lethal Sir Mod"; public const string modVersion = "1.0.0.0"; public static Dictionary<string, GameObject> Prefabs = new Dictionary<string, GameObject>(); private readonly Harmony harmony = new Harmony("Elfamoso.Piou"); internal static List<AudioClip> Noise; internal static List<Item> itemsList = new List<Item>(); private void Awake() { ManualLogSource val = Logger.CreateLogSource("Elfamoso.Piou"); val.LogError((object)" @@+++++++++++++++++++++++========+**+++++++++=+++++++++++++++++++++++++++++\n@@+++++++++++++++++++*****+++*****#######%#**++++*+++++++++++++++++++++++++\n@@++++++++++++++++*#%@@%%##%%%%%%%%%%%########**++*+++++++++++++++++++++++*\n@@+++++++++++++**%@@@@@@@%@%%%########%%%%%%%%%***+**++++++++++++++++++++**\n@@+++++++++++++%@@@@@@@%%###**********###%%@@@%%###*#####*****++++++++++***\n@@+++++++++++*%@@@@@@%###***************###%%%@@@@%%%%%####***+*++++++*****\n@@++++++++++#%@@@@@%###*******************###%%@@@@@%%%#*###%#*++**+*******\n@@++++++=**#@@@@@@%###*********************###%%@@@@@@@@@@@@%%***++********\n@@+++++***#%@@@@@%###************###############%%@@@@@@@@%##%#*+++********\n@@++++***#%@@@@@@####***********#*####*****######%%@@@@@@@@@%%##*++********\n@@++**#*#%@@@@@@%%######**********************####%@@@@@@@@@@@@%%*+*+*****+\n@@+##*##@@@@@@@@%%%%%#####********###***********##%@@@@@@@@@@@@@@%*++*****+\n@@**#*%@@@@@@@@@@%##########*****####*************#%@@@@@@@@@@@@@@**++****+\n@@*#++#@@@@@@@@@%%###***##%#******#%%%%%#**********#@@@@@@@@@@@@%@#*++****+\n@@#*++*@@@@@@@@%%%%######%%##******###**************%@@@@@@@@@@@@%%#++***++\n@@#*++#@@@@@@@@%%%%%%%%%%###************************#@@@@@@@@@@@@%#**+***++\n@@*#++%@@@@@@@@%%%%%%#######*************************%@@@@@@@@@@@%##****+++\n@@*%%%@@@@@@@@@%%%###########**##********************%@@@@@@@@@@@%#*+***+++\n@@+%%#@@@@@@@@@@@%####***###%#**####*****************#@@@@@%@@@@@@#+=++++++\n@@+++*@@@@@@@@@@%%###*****#####**********************#@@@@@%@@@@@@#==++++++\n@@++++@@@@@@@@@@%###******#######********************#@@@@@@@@@@@@+--=+++++\n@@=====@@@@@@@@@%###******######*********************#@@@@@@@@@@=----=+++++\n@@=====@@@@@@@@@@####****#############***************#@@@@@@@@%%------+++++\n@@======@@@@@@@@@%####**##########*******************#%@@@@@@%=-------=++++\n@@==----+@@@@@@@@@%####*#########********************#%@@@%+----------=++++\n@@=------+@@@@@@@@@%####*#########******+************#@@@%-------------+++%\n@@--------=@@@@@@@@%##########***********************#@@@+-------------=+##\n@@----------+*+@@@@@%#######**************************%#+--------------=+#*\n@@--------------*@@@@%#######*************##*********++-----------------+#*\n@@--------------------=###%##########****####********+------------------+##\n@@----------------------=#%%###############**********+------------------=##\n@@-----------------------=#%%%%%%%#%#########*******++=-----------------=*%\n@@-------------------------#%%%%%***%######*******+++++------------------*%\n@@-------------------------*%%%%%*++####*********++++++------------------*%\n@@-------------------------*#####*+++##********++++++++------------------*%\n@@-------------------------+######*+++*******+++++++++++-----------------#%\n@@--------------------=*==*#######*+++******++++++++++++-----------------*%\n@@-------------=+**+*%**#@########**++++******+++++++++++-=--------------*#\n@@----=+++++++*##*+#%##@@@#########***++**********++++++++=-#*-----------**\n@@+++++*##%%@%#***%%%@@@@@%########*+**+++********++++++++===+#*+=-------**\n@@**#@@@@@@%##**#%%%@@@@@@@#########*+*++++*******++++++++++=#%####**+---+*\n@@%@@@@@%%#####%%%%%@@@@@@@@%#######****++++*****+++++++**++*#%%%@%#***###*\n@@@@%%####%##%%@@%%@@@@@@@@@@%###**********++++*+++++++*+++*##%#@@%#***#*#%\n@@@@@%%%%%%#%%@@@%%@@@@@@@@@@%****+******+++++++++++*++++++##%%*#%#%##*****\n@@@@@@@@%%@%@@@@%%@@@@@@@@@@**+**********++++++++*+++++++*##%%#*%##%%#*****\n@@@@@@@@@@@@@@@@@@@@@@@@@@@%*************+++++++++++++++*%%%@%##%%#%%%#****\n@@@@@@@@@@@@@@@@@@@@@@@@@@%##************+++++++++++++*#@@%@@@%#%%%%@@%***#\n@@@@@@@@@@@@@@@@@@@@@@@@@@##*************++++++++++***@@@@@%@@#%@%#%@@@%###\n@@@@@@@@@@@@@@@@@@@@@@@@@@@%###*********++++++++++++@@@@@@@@@%#%@%##%@@@%%%\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##*********++++++++++++#@@@@@@@@%%%@%###%@@@%@\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%######%##*+++++++++++++@@@@@@@@%%@@%%%%%@@@@@\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%####%%%%#**+++++++++++++@@@@@@@@%@@@@%@@@@@@@\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@####%%%%#***+++++++++++++%@@@@@@@@@@@@@@@@@@@\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%####%%%##***+++++++++++++%@@@@@@@@@@@@@@@@@@\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%#%%%%##***+++++++++++++#@@@@@@@@@@@@@@@@@\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%##*****++++++++++++@@@@@@@@@@@@@@@@\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%#*****+++++++++++++*@@@@@@@@@@@@@@\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%#*****++++++++++++++#@@@@@@@@@@@@\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%##****+++++++++++++++*%@@@@@@@@@\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%###****++++++++++++++++*@@@@@@@\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%##****+++++++++++++++++#@@@@ \n\n Domaine Expention"); string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "itemsenior"); AssetBundle val2 = AssetBundle.LoadFromFile(text); if ((Object)(object)val2 == (Object)null) { ((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load custom assets."); return; } Noise = new List<AudioClip>(); Noise = val2.LoadAllAssets<AudioClip>().ToList(); int num = 30; Item val3 = val2.LoadAsset<Item>("Assets/ItemTutorial/SeniorSirItem.asset"); itemsList.Add(val3); UseSenior useSenior = val3.spawnPrefab.AddComponent<UseSenior>(); ((GrabbableObject)useSenior).grabbable = true; ((GrabbableObject)useSenior).grabbableToEnemies = true; ((GrabbableObject)useSenior).itemProperties = val3; Utilities.FixMixerGroups(val3.spawnPrefab); NetworkPrefabs.RegisterNetworkPrefab(val3.spawnPrefab); Items.RegisterScrap(val3, num, (LevelTypes)(-1)); TerminalNode val4 = ScriptableObject.CreateInstance<TerminalNode>(); val4.clearPreviousText = true; val4.displayText = "ur goofy silly senior sir \n\n"; Items.RegisterShopItem(val3, (TerminalNode)null, (TerminalNode)null, val4, 10); } } } namespace Itemtuto.Behaviours { internal class UseSenior : PhysicsProp { public override void ItemActivate(bool used, bool buttonDown = true) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Unknown result type (might be due to invalid IL or missing references) Vector3 zero = Vector3.zero; zero = ((Component)this).transform.position + Vector3.up * 0.25f; int num = Random.Range(0, 2); ((GrabbableObject)this).ItemActivate(used, buttonDown); if (buttonDown && (Object)(object)((GrabbableObject)this).playerHeldBy != (Object)null) { ((GrabbableObject)this).playerHeldBy.movementAudio.PlayOneShot(SeniorSir.Noise[num]); RoundManager.Instance.PlayAudibleNoise(((Component)this).transform.position, 10f, (float)num, 0, ((GrabbableObject)this).isInElevator && StartOfRound.Instance.hangarDoorsClosed, 0); } } } }