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 Doey v1.0.0
AnimDoey.dll
Decompiled a year agousing System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using UnityEngine; using UnityEngine.SceneManagement; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("AnimDoey")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("AnimMega")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("a562d1ec-e166-4948-8d98-c8939d0ea56b")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace AnimDoey; public class AnimDoey : MonoBehaviour { [SerializeField] private Animator animOrigin; [SerializeField] private Animator animMod; private void Update() { animOrigin = GameObject.Find("[VISUALS]D").GetComponent<Animator>(); animMod = GameObject.Find("Doey").GetComponent<Animator>(); if ((Object)(object)animOrigin != (Object)null && (Object)(object)animMod != (Object)null) { animMod.SetBool("moving", animOrigin.GetBool("moving")); animMod.SetBool("stunned", animOrigin.GetBool("stunned")); animMod.SetBool("despawning", animOrigin.GetBool("despawning")); animMod.SetBool("attacking", animOrigin.GetBool("attacking")); animMod.SetBool("falling", animOrigin.GetBool("falling")); animMod.SetBool("lookingUnder", animOrigin.GetBool("lookingUnder")); if (animOrigin.GetBool("Stun")) { animMod.SetTrigger("Stun"); } if (animOrigin.GetBool("Notice")) { animMod.SetTrigger("Notice"); } if (animOrigin.GetBool("Attack")) { animMod.SetTrigger("Attack"); } if (animOrigin.GetBool("Jump")) { animMod.SetTrigger("Jump"); } if (animOrigin.GetBool("Land")) { animMod.SetTrigger("Land"); } if (animOrigin.GetBool("LookUnder")) { animMod.SetTrigger("LookUnder"); } if (animOrigin.GetBool("LookUnderAttack")) { animMod.SetTrigger("LookUnderAttack"); } if (animOrigin.GetBool("StuckAttack")) { animMod.SetTrigger("StuckAttack"); } } } } public class SpawnChicken : MonoBehaviour { public EnemyDirector director; public EnemySetup enemySetupOrigin; public EnemySetup enemySetupMod; public GameObject PrefMod; private void Awake() { enemySetupOrigin = Doey.enemySetupOrigin; enemySetupMod = Doey.enemySetupMod; director = Object.FindAnyObjectByType<EnemyDirector>(); director.enemiesDifficulty3[5] = enemySetupMod; } private void Start() { Object.Destroy((Object)(object)((Component)this).gameObject, 1f); } } [BepInPlugin("com.Doey.DarwinVS", "Doey", "1.0.0")] public class Doey : BaseUnityPlugin { public static Doey instance; public static EnemySetup enemySetupOrigin; public static EnemySetup enemySetupMod; private AssetBundle bundle = null; private AssetBundle InstaBundle = null; private GameObject inst; private void Awake() { ((BaseUnityPlugin)this).Logger.LogWarning((object)"Mod made by DarwinVS."); SceneManager.sceneLoaded += OnSceneLoaded; if ((Object)(object)instance == (Object)null) { instance = this; } } private void OnSceneLoaded(Scene scene, LoadSceneMode mode) { bool flag = false; LoadAssets(); if ((Object)(object)inst != (Object)null && !flag) { Object.Instantiate<GameObject>(inst.gameObject); flag = true; ((BaseUnityPlugin)this).Logger.LogInfo((object)"Prefab instanciado correctamente."); } else { ((BaseUnityPlugin)this).Logger.LogError((object)"No se pudo instanciar el prefab, ya que es nulo."); } } public AssetBundle LoadAssetBundle(string name) { if ((Object)(object)bundle != (Object)null) { bundle.Unload(true); bundle = null; } string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), name); if (File.Exists(text)) { bundle = AssetBundle.LoadFromFile(text); if ((Object)(object)bundle == (Object)null) { ((BaseUnityPlugin)this).Logger.LogError((object)("No se pudo cargar el AssetBundle en " + text)); } } else { ((BaseUnityPlugin)this).Logger.LogError((object)("No se encontró el AssetBundle en " + text)); } return bundle; } private void LoadAssets() { if ((Object)(object)InstaBundle != (Object)null) { InstaBundle.Unload(true); InstaBundle = null; inst = null; } InstaBundle = LoadAssetBundle("instdoey"); if ((Object)(object)InstaBundle != (Object)null) { if (InstaBundle.isStreamedSceneAssetBundle) { ((BaseUnityPlugin)this).Logger.LogWarning((object)"El AssetBundle contiene escenas, no objetos. Verifica el contenido."); } enemySetupOrigin = InstaBundle.LoadAsset<EnemySetup>("Assets/REPO/Game/ScriptableObjects/EnemySetup/Enemy - Slow Walker.asset"); enemySetupMod = InstaBundle.LoadAsset<EnemySetup>("Assets/modDoey/Enemy - Doey.asset"); inst = InstaBundle.LoadAsset<GameObject>("Assets/modDoey/InstaD.prefab"); if ((Object)(object)inst != (Object)null) { ((BaseUnityPlugin)this).Logger.LogInfo((object)"GameObject inst cargado."); } else { ((BaseUnityPlugin)this).Logger.LogError((object)"No se pudo cargar el GameObject inst. Verifica el nombre y la ruta del asset."); } if ((Object)(object)enemySetupMod != (Object)null) { ((BaseUnityPlugin)this).Logger.LogInfo((object)"enemySetupMod cargado."); } else { ((BaseUnityPlugin)this).Logger.LogError((object)"No se pudo cargar el enemySetupMod. Verifica el nombre y la ruta del asset."); } if ((Object)(object)enemySetupOrigin != (Object)null) { ((BaseUnityPlugin)this).Logger.LogInfo((object)"enemySetupOrigin cargado."); } else { ((BaseUnityPlugin)this).Logger.LogError((object)"No se pudo cargar el enemySetupOrigin. Verifica el nombre y la ruta del asset."); } } else { ((BaseUnityPlugin)this).Logger.LogError((object)"La carga del AssetBundle falló."); } } }