Decompiled source of ShigarakiMod v2.2.3
ShiggyMod.dll
Decompiled 5 months ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; 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.Bootstrap; using BepInEx.Configuration; using EmotesAPI; using EntityStates; using EntityStates.Bandit2; using EntityStates.BeetleGuardMonster; using EntityStates.BeetleMonster; using EntityStates.Bell.BellWeapon; using EntityStates.Bison; using EntityStates.Captain.Weapon; using EntityStates.ClayBoss; using EntityStates.ClayBruiser.Weapon; using EntityStates.ClayGrenadier; using EntityStates.Commando; using EntityStates.Commando.CommandoWeapon; using EntityStates.Croco; using EntityStates.Engi.EngiWeapon; using EntityStates.Engi.SpiderMine; using EntityStates.GolemMonster; using EntityStates.GrandParent; using EntityStates.GravekeeperBoss; using EntityStates.HermitCrab; using EntityStates.Huntress; using EntityStates.Huntress.HuntressWeapon; using EntityStates.ImpMonster; using EntityStates.JellyfishMonster; using EntityStates.LemurianBruiserMonster; using EntityStates.LemurianMonster; using EntityStates.Loader; using EntityStates.LunarGolem; using EntityStates.LunarWisp; using EntityStates.Mage.Weapon; using EntityStates.Merc; using EntityStates.MiniMushroom; using EntityStates.NullifierMonster; using EntityStates.RoboBallBoss.Weapon; using EntityStates.ScavMonster; using EntityStates.Toolbot; using EntityStates.Treebot.Weapon; using EntityStates.VagrantMonster; using EntityStates.VoidJailer; using EntityStates.VoidJailer.Weapon; using EntityStates.VoidMegaCrab.BackWeapon; using EntityStates.Vulture; using EntityStates.Vulture.Weapon; using EntityStates.Wisp1Monster; using ExtraSkillSlots; using HG; using KinematicCharacterController; using On.RoR2; using On.RoR2.Orbs; using R2API; using R2API.Networking; using R2API.Networking.Interfaces; using R2API.Utils; using RiskOfOptions; using RiskOfOptions.OptionConfigs; using RiskOfOptions.Options; using RoR2; using RoR2.Achievements; using RoR2.Audio; using RoR2.CharacterAI; using RoR2.ContentManagement; using RoR2.Navigation; using RoR2.Orbs; using RoR2.Projectile; using RoR2.Skills; using RoR2.UI; using ShiggyMod.Modules; using ShiggyMod.Modules.Achievements; using ShiggyMod.Modules.Networking; using ShiggyMod.Modules.Survivors; using ShiggyMod.SkillStates; using ShiggyMod.SkillStates.BaseStates; using TMPro; using UnityEngine; using UnityEngine.AddressableAssets; using UnityEngine.Networking; using UnityEngine.Rendering; using UnityEngine.UI; [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.0", FrameworkDisplayName = ".NET Standard 2.0")] [assembly: AssemblyCompany("ShiggyMod")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("ShiggyMod")] [assembly: AssemblyTitle("ShiggyMod")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] internal class BodyInfo { internal string bodyName = ""; internal string bodyNameToken = ""; internal string subtitleNameToken = ""; internal string bodyNameToClone = "Commando"; internal Texture characterPortrait = null; internal GameObject crosshair = null; internal GameObject podPrefab = null; internal float maxHealth = 100f; internal float healthGrowth = 2f; internal float healthRegen = 0f; internal float shield = 0f; internal float shieldGrowth = 0f; internal float moveSpeed = 7f; internal float moveSpeedGrowth = 0f; internal float acceleration = 80f; internal float jumpPower = 15f; internal float jumpPowerGrowth = 0f; internal float damage = 12f; internal float attackSpeed = 1f; internal float attackSpeedGrowth = 0f; internal float armor = 0f; internal float armorGrowth = 0f; internal float crit = 1f; internal float critGrowth = 0f; internal int jumpCount = 1; internal Color bodyColor = Color.grey; internal Vector3 aimOriginPosition = new Vector3(0f, 1.8f, 0f); internal Vector3 modelBasePosition = new Vector3(0f, -0.92f, 0f); internal Vector3 cameraPivotPosition = new Vector3(0f, 1.6f, 0f); } internal class CustomRendererInfo { internal string childName; internal Material material; internal bool ignoreOverlays; } internal class SkillDefInfo { public string skillName; public string skillNameToken; public string skillDescriptionToken; public Sprite skillIcon; public SerializableEntityStateType activationState; public string activationStateMachineName; public int baseMaxStock; public float baseRechargeInterval; public bool beginSkillCooldownOnSkillEnd; public bool canceledFromSprinting; public bool forceSprintDuringState; public bool fullRestockOnAssign; public InterruptPriority interruptPriority; public bool resetCooldownTimerOnUse; public bool isCombatSkill; public bool mustKeyPress; public bool cancelSprintingOnActivation; public int rechargeStock; public int requiredStock; public int stockToConsume; public string[] keywordTokens; } namespace ShiggyMod { [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [NetworkCompatibility(/*Could not decode attribute arguments.*/)] [BepInPlugin("com.TeaL.ShigarakiMod", "ShigarakiMod", "2.2.3")] public class ShiggyPlugin : BaseUnityPlugin { public static bool scepterInstalled; public ShiggyController Shiggycon; public ShiggyMasterController Shiggymastercon; public const string MODUID = "com.TeaL.ShigarakiMod"; public const string MODNAME = "ShigarakiMod"; public const string MODVERSION = "2.2.3"; public const string developerPrefix = "TEAL"; internal List<SurvivorBase> Survivors = new List<SurvivorBase>(); public static ShiggyPlugin instance; public static CharacterBody ShiggyCharacterBody; private BlastAttack blastAttack; private void Awake() { instance = this; ShiggyCharacterBody = null; instance = this; Assets.Initialize(); Config.ReadConfig(); Damage.SetupModdedDamage(); if (Chainloader.PluginInfos.ContainsKey("com.rune580.riskofoptions")) { Config.SetupRiskOfOptions(); } States.RegisterStates(); Buffs.RegisterBuffs(); Dots.RegisterDots(); Projectiles.RegisterProjectiles(); Tokens.AddTokens(); ItemDisplays.PopulateDisplays(); new Shiggy().Initialize(); StaticValues.LoadDictionary(); NetworkingAPI.RegisterMessageType<EquipmentDropNetworked>(); NetworkingAPI.RegisterMessageType<HealNetworkRequest>(); NetworkingAPI.RegisterMessageType<SpawnBodyNetworkRequest>(); NetworkingAPI.RegisterMessageType<PerformForceNetworkRequest>(); NetworkingAPI.RegisterMessageType<PeformDirectionalForceNetworkRequest>(); NetworkingAPI.RegisterMessageType<ItemDropNetworked>(); NetworkingAPI.RegisterMessageType<SpendHealthNetworkRequest>(); NetworkingAPI.RegisterMessageType<DisableSlideStateMachine>(); NetworkingAPI.RegisterMessageType<SetTheWorldFreezeOnBodyRequest>(); NetworkingAPI.RegisterMessageType<TakeMeleeDamageForceRequest>(); NetworkingAPI.RegisterMessageType<ForceReversalState>(); NetworkingAPI.RegisterMessageType<SetShunpoStateMachine>(); NetworkingAPI.RegisterMessageType<SetMugetsuStateMachine>(); NetworkingAPI.RegisterMessageType<SetGetsugaStateMachine>(); NetworkingAPI.RegisterMessageType<ForceGiveQuirkState>(); NetworkingAPI.RegisterMessageType<OrbDamageRequest>(); NetworkingAPI.RegisterMessageType<LightAndDarknessPullRequest>(); NetworkingAPI.RegisterMessageType<BlastingZoneDebuffDamageRequest>(); NetworkingAPI.RegisterMessageType<ExpungeNetworkRequest>(); new ContentPacks().Initialize(); ContentManager.onContentPacksAssigned += LateSetup; Hook(); } private void LateSetup(ReadOnlyArray<ReadOnlyContentPack> obj) { SurvivorBase.instance.SetItemDisplays(); } private void Hook() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Expected O, but got Unknown //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Expected O, but got Unknown //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Expected O, but got Unknown //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Expected O, but got Unknown //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Expected O, but got Unknown //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_00a2: Expected O, but got Unknown //IL_00aa: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Expected O, but got Unknown //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Expected O, but got Unknown //IL_00ce: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Expected O, but got Unknown //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Expected O, but got Unknown //IL_0106: Unknown result type (might be due to invalid IL or missing references) //IL_0110: Expected O, but got Unknown CharacterBody.OnDeathStart += new hook_OnDeathStart(CharacterBody_OnDeathStart); CharacterModel.Awake += new hook_Awake(CharacterModel_Awake); CharacterBody.RecalculateStats += new hook_RecalculateStats(CharacterBody_RecalculateStats); HealthComponent.TakeDamage += new hook_TakeDamage(HealthComponent_TakeDamage); GlobalEventManager.onServerDamageDealt += GlobalEventManager_OnDamageDealt; CharacterModel.UpdateOverlays += new hook_UpdateOverlays(CharacterModel_UpdateOverlays); GlobalEventManager.OnHitEnemy += new hook_OnHitEnemy(GlobalEventManager_OnHitEnemy); RecalculateStatsAPI.GetStatCoefficients += new StatHookEventHandler(RecalculateStatsAPI_GetStatCoefficients); GlobalEventManager.OnCharacterDeath += new hook_OnCharacterDeath(GlobalEventManager_OnCharacterDeath); LightningOrb.OnArrival += new hook_OnArrival(LightningOrb_OnArrival); OverlapAttack.Fire += new hook_Fire(OverlapAttack_Fire); BulletAttack.Fire += new hook_Fire(BulletAttack_Fire); BlastAttack.Fire += new hook_Fire(BlastAttack_Fire); if (Chainloader.PluginInfos.ContainsKey("com.weliveinasociety.CustomEmotesAPI")) { SurvivorCatalog.Init += new hook_Init(SurvivorCatalog_Init); } } private Result BlastAttack_Fire(orig_Fire orig, BlastAttack self) { //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_0137: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Unknown result type (might be due to invalid IL or missing references) //IL_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_011f: Unknown result type (might be due to invalid IL or missing references) if (Object.op_Implicit((Object)(object)self.attacker)) { GameObject attacker = self.attacker; if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.acridBuff)) { self.damageType = (DamageType)(self.damageType | 0x1000); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.impbossBuff)) { self.damageType = (DamageType)(self.damageType | 0x400); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionFireBuff)) { self.damageType = (DamageType)(self.damageType | 0x80); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionFreezeBuff)) { self.damageType = (DamageType)(self.damageType | 0x100); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionShockBuff)) { self.damageType = (DamageType)(self.damageType | 0x1000000); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.decayAwakenedBuff)) { DamageAPI.AddModdedDamageType(self, Damage.shiggyDecay); } } return orig.Invoke(self); } private void BulletAttack_Fire(orig_Fire orig, BulletAttack self) { //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_006c: 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) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Unknown result type (might be due to invalid IL or missing references) //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_0104: Unknown result type (might be due to invalid IL or missing references) //IL_0127: Unknown result type (might be due to invalid IL or missing references) orig.Invoke(self); if (Object.op_Implicit((Object)(object)self.owner)) { GameObject owner = self.owner; if (owner.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.acridBuff)) { self.damageType = (DamageType)(self.damageType | 0x1000); } if (owner.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.impbossBuff)) { self.damageType = (DamageType)(self.damageType | 0x400); } if (owner.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionFireBuff)) { self.damageType = (DamageType)(self.damageType | 0x80); } if (owner.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionFreezeBuff)) { self.damageType = (DamageType)(self.damageType | 0x100); } if (owner.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionShockBuff)) { self.damageType = (DamageType)(self.damageType | 0x1000000); } if (owner.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.decayAwakenedBuff)) { DamageAPI.AddModdedDamageType(self, Damage.shiggyDecay); } } } private bool OverlapAttack_Fire(orig_Fire orig, OverlapAttack self, List<HurtBox> hitResults) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00c1: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Unknown result type (might be due to invalid IL or missing references) //IL_00f0: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_011f: Unknown result type (might be due to invalid IL or missing references) //IL_0129: Unknown result type (might be due to invalid IL or missing references) //IL_012a: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Unknown result type (might be due to invalid IL or missing references) if (Object.op_Implicit((Object)(object)self.attacker)) { GameObject attacker = self.attacker; if (attacker.gameObject.GetComponent<CharacterBody>().baseNameToken == "TEAL_SHIGGY_BODY_NAME") { DamageAPI.AddModdedDamageType(self, Damage.shiggyDecay); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.acridBuff)) { self.damageType = (DamageType)(self.damageType | 0x1000); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.impbossBuff)) { self.damageType = (DamageType)(self.damageType | 0x400); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionFireBuff)) { self.damageType = (DamageType)(self.damageType | 0x80); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionFreezeBuff)) { self.damageType = (DamageType)(self.damageType | 0x100); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionShockBuff)) { self.damageType = (DamageType)(self.damageType | 0x1000000); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.decayAwakenedBuff)) { DamageAPI.AddModdedDamageType(self, Damage.shiggyDecay); } } return orig.Invoke(self, hitResults); } private void LightningOrb_OnArrival(orig_OnArrival orig, LightningOrb self) { //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Invalid comparison between Unknown and I4 //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00bf: Expected O, but got Unknown orig.Invoke(self); if (self.attacker.gameObject.GetComponent<CharacterBody>().baseNameToken == "TEAL_SHIGGY_BODY_NAME" && (int)self.lightningType == 4) { NetMessageExtensions.Send((INetMessage)(object)new PerformForceNetworkRequest(self.attacker.gameObject.GetComponent<CharacterBody>().masterObjectId, ((Component)((Orb)self).target).transform.position, Vector3.up, 15f, 0f, self.damageValue, 360f, playEffect: false), (NetworkDestination)1); EffectManager.SpawnEffect(Assets.voidMegaCrabExplosionEffect, new EffectData { origin = ((Component)((Orb)self).target).transform.position, scale = 15f }, true); } } private void RecalculateStatsAPI_GetStatCoefficients(CharacterBody sender, StatHookEventArgs args) { if (Object.op_Implicit((Object)(object)((sender != null) ? sender.healthComponent : null)) && Object.op_Implicit((Object)(object)sender)) { if (sender.HasBuff(Buffs.roboballminiattackspeedBuff)) { args.baseAttackSpeedAdd += 0.02f * (float)sender.GetBuffCount(Buffs.roboballminiattackspeedBuff); } if (sender.HasBuff(Buffs.claydunestriderBuff)) { args.baseAttackSpeedAdd += 0.5f; } if (sender.HasBuff(Buffs.multBuff)) { args.armorAdd += 100f; args.attackSpeedMultAdd += 1f; args.moveSpeedReductionMultAdd += 0.6f; } if (sender.HasBuff(Buffs.stonetitanBuff)) { args.armorAdd += 10f; } if (sender.HasBuff(Buffs.voidbarnaclemortarattackspeedBuff)) { args.baseAttackSpeedAdd += 0.05f * (float)sender.GetBuffCount(Buffs.voidbarnaclemortarattackspeedBuff); } if (sender.HasBuff(Buffs.hermitcrabmortararmorBuff)) { args.armorAdd += 1f * (float)sender.GetBuffCount(Buffs.hermitcrabmortararmorBuff); } if (sender.HasBuff(Buffs.verminsprintBuff)) { args.moveSpeedMultAdd += 0.5f; sender.sprintingSpeedMultiplier = 2f; } if (sender.HasBuff(Buffs.airwalkBuff)) { sender.acceleration *= 2f; } if (sender.HasBuff(Buffs.beetleBuff)) { args.baseDamageAdd += 5f; } if (sender.HasBuff(Buffs.lesserwispBuff)) { args.baseAttackSpeedAdd += 0.5f; } if (sender.HasBuff(Buffs.lunarexploderBuff)) { args.baseShieldAdd += sender.maxHealth * 0.25f; } if (sender.HasBuff(Buffs.omniboostBuff)) { args.damageMultAdd += 0.3f; args.attackSpeedMultAdd += 0.3f; } if (sender.HasBuff(Buffs.omniboostBuffStacks)) { int buffCount = sender.GetBuffCount(Buffs.omniboostBuffStacks); args.damageMultAdd += 0.05f * (float)buffCount; args.attackSpeedMultAdd += 0.05f * (float)buffCount; } if (sender.HasBuff(Buffs.ingrainBuff)) { args.baseRegenAdd += StaticValues.ingrainBuffHealthRegen * sender.healthComponent.fullCombinedHealth; } if (sender.HasBuff(Buffs.OFABuff)) { args.armorAdd += sender.armor * (1f + StaticValues.OFACoefficient); args.attackSpeedMultAdd += StaticValues.OFACoefficient; args.moveSpeedMultAdd += StaticValues.OFACoefficient; } if (sender.HasBuff(Buffs.doubleTimeBuffStacks)) { int buffCount2 = sender.GetBuffCount(Buffs.doubleTimeBuffStacks); args.damageMultAdd += StaticValues.doubleTimeCoefficient * (float)buffCount2; args.attackSpeedMultAdd += StaticValues.doubleTimeCoefficient * (float)buffCount2; args.moveSpeedMultAdd += StaticValues.doubleTimeCoefficient * (float)buffCount2; } if (sender.HasBuff(Buffs.doubleTimeDebuff)) { args.attackSpeedMultAdd -= StaticValues.doubleTimeSlowCoefficient; args.moveSpeedMultAdd -= StaticValues.doubleTimeSlowCoefficient; } } } private void GlobalEventManager_OnHitEnemy(orig_OnHitEnemy orig, GlobalEventManager self, DamageInfo damageInfo, GameObject victim) { //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_00ba: Unknown result type (might be due to invalid IL or missing references) //IL_00c4: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Invalid comparison between Unknown and I4 //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Unknown result type (might be due to invalid IL or missing references) //IL_0135: Invalid comparison between Unknown and I4 //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_0151: Unknown result type (might be due to invalid IL or missing references) //IL_0158: Expected O, but got Unknown //IL_016e: Unknown result type (might be due to invalid IL or missing references) //IL_0173: Unknown result type (might be due to invalid IL or missing references) //IL_017a: Unknown result type (might be due to invalid IL or missing references) //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0193: Unknown result type (might be due to invalid IL or missing references) //IL_01bd: Unknown result type (might be due to invalid IL or missing references) //IL_01c2: Unknown result type (might be due to invalid IL or missing references) //IL_01ce: Unknown result type (might be due to invalid IL or missing references) //IL_03a9: Unknown result type (might be due to invalid IL or missing references) //IL_03b3: Unknown result type (might be due to invalid IL or missing references) //IL_03b9: Invalid comparison between Unknown and I4 //IL_03ff: Unknown result type (might be due to invalid IL or missing references) //IL_0409: Unknown result type (might be due to invalid IL or missing references) //IL_040f: Invalid comparison between Unknown and I4 //IL_0240: Unknown result type (might be due to invalid IL or missing references) //IL_0257: Unknown result type (might be due to invalid IL or missing references) //IL_026f: Unknown result type (might be due to invalid IL or missing references) //IL_054a: Unknown result type (might be due to invalid IL or missing references) //IL_0554: Unknown result type (might be due to invalid IL or missing references) //IL_055a: Invalid comparison between Unknown and I4 //IL_03ca: Unknown result type (might be due to invalid IL or missing references) //IL_03d4: Unknown result type (might be due to invalid IL or missing references) //IL_03d5: Unknown result type (might be due to invalid IL or missing references) //IL_02dd: Unknown result type (might be due to invalid IL or missing references) //IL_02e2: Unknown result type (might be due to invalid IL or missing references) //IL_02e9: Unknown result type (might be due to invalid IL or missing references) //IL_02f5: Unknown result type (might be due to invalid IL or missing references) //IL_02fc: Unknown result type (might be due to invalid IL or missing references) //IL_0301: Unknown result type (might be due to invalid IL or missing references) //IL_0306: Unknown result type (might be due to invalid IL or missing references) //IL_0308: Unknown result type (might be due to invalid IL or missing references) //IL_030d: Unknown result type (might be due to invalid IL or missing references) //IL_032c: Unknown result type (might be due to invalid IL or missing references) //IL_032f: Unknown result type (might be due to invalid IL or missing references) //IL_0334: Unknown result type (might be due to invalid IL or missing references) //IL_0336: Unknown result type (might be due to invalid IL or missing references) //IL_033b: Unknown result type (might be due to invalid IL or missing references) //IL_0346: Unknown result type (might be due to invalid IL or missing references) //IL_034d: Unknown result type (might be due to invalid IL or missing references) //IL_0352: Unknown result type (might be due to invalid IL or missing references) //IL_0357: Unknown result type (might be due to invalid IL or missing references) //IL_036f: Unknown result type (might be due to invalid IL or missing references) //IL_037a: Unknown result type (might be due to invalid IL or missing references) //IL_037c: Unknown result type (might be due to invalid IL or missing references) //IL_0381: Unknown result type (might be due to invalid IL or missing references) //IL_02a6: Unknown result type (might be due to invalid IL or missing references) //IL_02ab: Unknown result type (might be due to invalid IL or missing references) //IL_02b2: Unknown result type (might be due to invalid IL or missing references) //IL_02bd: Unknown result type (might be due to invalid IL or missing references) //IL_02db: Expected O, but got Unknown //IL_07a9: Unknown result type (might be due to invalid IL or missing references) //IL_07b3: Unknown result type (might be due to invalid IL or missing references) //IL_07b9: Invalid comparison between Unknown and I4 //IL_0433: Unknown result type (might be due to invalid IL or missing references) //IL_0438: Unknown result type (might be due to invalid IL or missing references) //IL_043f: Unknown result type (might be due to invalid IL or missing references) //IL_044a: Unknown result type (might be due to invalid IL or missing references) //IL_0455: Unknown result type (might be due to invalid IL or missing references) //IL_0457: Unknown result type (might be due to invalid IL or missing references) //IL_045c: Unknown result type (might be due to invalid IL or missing references) //IL_0461: Unknown result type (might be due to invalid IL or missing references) //IL_046c: Expected O, but got Unknown //IL_046d: Unknown result type (might be due to invalid IL or missing references) //IL_0472: Unknown result type (might be due to invalid IL or missing references) //IL_0479: Unknown result type (might be due to invalid IL or missing references) //IL_0485: Unknown result type (might be due to invalid IL or missing references) //IL_048c: Unknown result type (might be due to invalid IL or missing references) //IL_0491: Unknown result type (might be due to invalid IL or missing references) //IL_0496: Unknown result type (might be due to invalid IL or missing references) //IL_0498: Unknown result type (might be due to invalid IL or missing references) //IL_049d: Unknown result type (might be due to invalid IL or missing references) //IL_04af: Unknown result type (might be due to invalid IL or missing references) //IL_04b1: Unknown result type (might be due to invalid IL or missing references) //IL_04b6: Unknown result type (might be due to invalid IL or missing references) //IL_04bb: Unknown result type (might be due to invalid IL or missing references) //IL_04bd: Unknown result type (might be due to invalid IL or missing references) //IL_04c2: Unknown result type (might be due to invalid IL or missing references) //IL_04cd: Unknown result type (might be due to invalid IL or missing references) //IL_04cf: Unknown result type (might be due to invalid IL or missing references) //IL_04d4: Unknown result type (might be due to invalid IL or missing references) //IL_04d9: Unknown result type (might be due to invalid IL or missing references) //IL_04e0: Unknown result type (might be due to invalid IL or missing references) //IL_04e5: Unknown result type (might be due to invalid IL or missing references) //IL_04ea: Unknown result type (might be due to invalid IL or missing references) //IL_04f5: Unknown result type (might be due to invalid IL or missing references) //IL_0500: Unknown result type (might be due to invalid IL or missing references) //IL_0502: Unknown result type (might be due to invalid IL or missing references) //IL_0507: Unknown result type (might be due to invalid IL or missing references) //IL_0931: Unknown result type (might be due to invalid IL or missing references) //IL_093b: Unknown result type (might be due to invalid IL or missing references) //IL_0941: Invalid comparison between Unknown and I4 //IL_0bec: Unknown result type (might be due to invalid IL or missing references) //IL_0bf6: Unknown result type (might be due to invalid IL or missing references) //IL_0bfc: Invalid comparison between Unknown and I4 //IL_0599: Unknown result type (might be due to invalid IL or missing references) //IL_0ce4: Unknown result type (might be due to invalid IL or missing references) //IL_0cee: Unknown result type (might be due to invalid IL or missing references) //IL_0cf4: Invalid comparison between Unknown and I4 //IL_07f7: Unknown result type (might be due to invalid IL or missing references) //IL_0d56: Unknown result type (might be due to invalid IL or missing references) //IL_0d60: Unknown result type (might be due to invalid IL or missing references) //IL_0d66: Invalid comparison between Unknown and I4 //IL_0c18: Unknown result type (might be due to invalid IL or missing references) //IL_0c1d: Unknown result type (might be due to invalid IL or missing references) //IL_0c1f: Unknown result type (might be due to invalid IL or missing references) //IL_0c24: Unknown result type (might be due to invalid IL or missing references) //IL_0c29: Unknown result type (might be due to invalid IL or missing references) //IL_0c3b: Unknown result type (might be due to invalid IL or missing references) //IL_0c42: Unknown result type (might be due to invalid IL or missing references) //IL_0c47: Unknown result type (might be due to invalid IL or missing references) //IL_0c4c: Unknown result type (might be due to invalid IL or missing references) //IL_0c58: Unknown result type (might be due to invalid IL or missing references) //IL_0c5a: Unknown result type (might be due to invalid IL or missing references) //IL_0c5f: Unknown result type (might be due to invalid IL or missing references) //IL_0c6a: Unknown result type (might be due to invalid IL or missing references) //IL_0c6c: Unknown result type (might be due to invalid IL or missing references) //IL_0c71: Unknown result type (might be due to invalid IL or missing references) //IL_0c7e: Expected O, but got Unknown //IL_097f: Unknown result type (might be due to invalid IL or missing references) //IL_08b2: Unknown result type (might be due to invalid IL or missing references) //IL_08cc: Unknown result type (might be due to invalid IL or missing references) //IL_08e2: Unknown result type (might be due to invalid IL or missing references) //IL_08e7: Unknown result type (might be due to invalid IL or missing references) //IL_08ee: Unknown result type (might be due to invalid IL or missing references) //IL_08f9: Unknown result type (might be due to invalid IL or missing references) //IL_090a: Expected O, but got Unknown //IL_0833: Unknown result type (might be due to invalid IL or missing references) //IL_084d: Unknown result type (might be due to invalid IL or missing references) //IL_0863: Unknown result type (might be due to invalid IL or missing references) //IL_0868: Unknown result type (might be due to invalid IL or missing references) //IL_086f: Unknown result type (might be due to invalid IL or missing references) //IL_087a: Unknown result type (might be due to invalid IL or missing references) //IL_088b: Expected O, but got Unknown //IL_0dc8: Unknown result type (might be due to invalid IL or missing references) //IL_0dd2: Unknown result type (might be due to invalid IL or missing references) //IL_0dd8: Invalid comparison between Unknown and I4 //IL_0d20: Unknown result type (might be due to invalid IL or missing references) //IL_0acb: Unknown result type (might be due to invalid IL or missing references) //IL_09b1: Unknown result type (might be due to invalid IL or missing references) //IL_0e31: Unknown result type (might be due to invalid IL or missing references) //IL_0e3b: Unknown result type (might be due to invalid IL or missing references) //IL_0e41: Invalid comparison between Unknown and I4 //IL_0d92: Unknown result type (might be due to invalid IL or missing references) //IL_0b29: Unknown result type (might be due to invalid IL or missing references) //IL_0b2e: Unknown result type (might be due to invalid IL or missing references) //IL_0b35: Unknown result type (might be due to invalid IL or missing references) //IL_0b41: Unknown result type (might be due to invalid IL or missing references) //IL_0b48: Unknown result type (might be due to invalid IL or missing references) //IL_0b4d: Unknown result type (might be due to invalid IL or missing references) //IL_0b52: Unknown result type (might be due to invalid IL or missing references) //IL_0b54: Unknown result type (might be due to invalid IL or missing references) //IL_0b59: Unknown result type (might be due to invalid IL or missing references) //IL_0b6b: Unknown result type (might be due to invalid IL or missing references) //IL_0b6e: Unknown result type (might be due to invalid IL or missing references) //IL_0b73: Unknown result type (might be due to invalid IL or missing references) //IL_0b75: Unknown result type (might be due to invalid IL or missing references) //IL_0b7a: Unknown result type (might be due to invalid IL or missing references) //IL_0b85: Unknown result type (might be due to invalid IL or missing references) //IL_0b8c: Unknown result type (might be due to invalid IL or missing references) //IL_0b91: Unknown result type (might be due to invalid IL or missing references) //IL_0b96: Unknown result type (might be due to invalid IL or missing references) //IL_0bae: Unknown result type (might be due to invalid IL or missing references) //IL_0bb9: Unknown result type (might be due to invalid IL or missing references) //IL_0bbb: Unknown result type (might be due to invalid IL or missing references) //IL_0bc0: Unknown result type (might be due to invalid IL or missing references) //IL_0af2: Unknown result type (might be due to invalid IL or missing references) //IL_0af7: Unknown result type (might be due to invalid IL or missing references) //IL_0afe: Unknown result type (might be due to invalid IL or missing references) //IL_0b09: Unknown result type (might be due to invalid IL or missing references) //IL_0b27: Expected O, but got Unknown //IL_0a0f: Unknown result type (might be due to invalid IL or missing references) //IL_0a14: Unknown result type (might be due to invalid IL or missing references) //IL_0a1b: Unknown result type (might be due to invalid IL or missing references) //IL_0a27: Unknown result type (might be due to invalid IL or missing references) //IL_0a2e: Unknown result type (might be due to invalid IL or missing references) //IL_0a33: Unknown result type (might be due to invalid IL or missing references) //IL_0a38: Unknown result type (might be due to invalid IL or missing references) //IL_0a3a: Unknown result type (might be due to invalid IL or missing references) //IL_0a3f: Unknown result type (might be due to invalid IL or missing references) //IL_0a51: Unknown result type (might be due to invalid IL or missing references) //IL_0a54: Unknown result type (might be due to invalid IL or missing references) //IL_0a59: Unknown result type (might be due to invalid IL or missing references) //IL_0a5b: Unknown result type (might be due to invalid IL or missing references) //IL_0a60: Unknown result type (might be due to invalid IL or missing references) //IL_0a6b: Unknown result type (might be due to invalid IL or missing references) //IL_0a72: Unknown result type (might be due to invalid IL or missing references) //IL_0a77: Unknown result type (might be due to invalid IL or missing references) //IL_0a7c: Unknown result type (might be due to invalid IL or missing references) //IL_0a94: Unknown result type (might be due to invalid IL or missing references) //IL_0a9f: Unknown result type (might be due to invalid IL or missing references) //IL_0aa1: Unknown result type (might be due to invalid IL or missing references) //IL_0aa6: Unknown result type (might be due to invalid IL or missing references) //IL_09d8: Unknown result type (might be due to invalid IL or missing references) //IL_09dd: Unknown result type (might be due to invalid IL or missing references) //IL_09e4: Unknown result type (might be due to invalid IL or missing references) //IL_09ef: Unknown result type (might be due to invalid IL or missing references) //IL_0a0d: Expected O, but got Unknown //IL_05ea: Unknown result type (might be due to invalid IL or missing references) //IL_0601: Unknown result type (might be due to invalid IL or missing references) //IL_0618: Unknown result type (might be due to invalid IL or missing references) //IL_062e: Unknown result type (might be due to invalid IL or missing references) //IL_0633: Unknown result type (might be due to invalid IL or missing references) //IL_0635: Unknown result type (might be due to invalid IL or missing references) //IL_0640: Unknown result type (might be due to invalid IL or missing references) //IL_064b: Unknown result type (might be due to invalid IL or missing references) //IL_064c: Unknown result type (might be due to invalid IL or missing references) //IL_0651: Unknown result type (might be due to invalid IL or missing references) //IL_065c: Expected O, but got Unknown //IL_0ea6: Unknown result type (might be due to invalid IL or missing references) //IL_0eb0: Unknown result type (might be due to invalid IL or missing references) //IL_0eb6: Invalid comparison between Unknown and I4 //IL_0df2: Unknown result type (might be due to invalid IL or missing references) //IL_0dfe: Unknown result type (might be due to invalid IL or missing references) //IL_067e: Unknown result type (might be due to invalid IL or missing references) //IL_0695: Unknown result type (might be due to invalid IL or missing references) //IL_06ac: Unknown result type (might be due to invalid IL or missing references) //IL_06c2: Unknown result type (might be due to invalid IL or missing references) //IL_06c7: Unknown result type (might be due to invalid IL or missing references) //IL_06c9: Unknown result type (might be due to invalid IL or missing references) //IL_06d4: Unknown result type (might be due to invalid IL or missing references) //IL_06df: Unknown result type (might be due to invalid IL or missing references) //IL_06e0: Unknown result type (might be due to invalid IL or missing references) //IL_06e5: Unknown result type (might be due to invalid IL or missing references) //IL_06f0: Expected O, but got Unknown //IL_0f45: Unknown result type (might be due to invalid IL or missing references) //IL_0f4f: Unknown result type (might be due to invalid IL or missing references) //IL_0f55: Invalid comparison between Unknown and I4 //IL_0e6d: Unknown result type (might be due to invalid IL or missing references) //IL_070f: Unknown result type (might be due to invalid IL or missing references) //IL_0726: Unknown result type (might be due to invalid IL or missing references) //IL_073d: Unknown result type (might be due to invalid IL or missing references) //IL_0753: Unknown result type (might be due to invalid IL or missing references) //IL_0758: Unknown result type (might be due to invalid IL or missing references) //IL_075a: Unknown result type (might be due to invalid IL or missing references) //IL_0765: Unknown result type (might be due to invalid IL or missing references) //IL_0770: Unknown result type (might be due to invalid IL or missing references) //IL_0771: Unknown result type (might be due to invalid IL or missing references) //IL_0776: Unknown result type (might be due to invalid IL or missing references) //IL_0781: Expected O, but got Unknown //IL_0edd: Unknown result type (might be due to invalid IL or missing references) //IL_0ee3: Unknown result type (might be due to invalid IL or missing references) //IL_0ee8: Unknown result type (might be due to invalid IL or missing references) //IL_0f65: Unknown result type (might be due to invalid IL or missing references) orig.Invoke(self, damageInfo, victim); if (!Object.op_Implicit((Object)(object)damageInfo.attacker)) { return; } CharacterBody component = damageInfo.attacker.GetComponent<CharacterBody>(); CharacterBody component2 = victim.GetComponent<CharacterBody>(); if (component.HasBuff(Buffs.impbossBuff)) { damageInfo.damageType = (DamageType)(damageInfo.damageType | 0x400); } if (component.HasBuff(Buffs.acridBuff)) { damageInfo.damageType = (DamageType)(damageInfo.damageType | 0x1000); } if (component.HasBuff(Buffs.decayAwakenedBuff)) { DamageAPI.AddModdedDamageType(damageInfo, Damage.shiggyDecay); } if (component.HasBuff(Buffs.finalReleaseBuff) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864) { int buffCount = component.GetBuffCount(Buffs.finalReleaseBuff); NetworkingHelpers.ApplyBuff(component, Buffs.finalReleaseBuff.buffIndex, buffCount + 1, -1f); } if (component.HasBuff(Buffs.commandoBuff) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864 && damageInfo.procCoefficient > 0f) { DamageInfo val = new DamageInfo(); val.damage = damageInfo.damage * 0.1f; val.position = component2.corePosition; val.force = Vector3.zero; val.procCoefficient = 1f; val.damageColorIndex = (DamageColorIndex)0; val.crit = false; val.attacker = ((Component)component).gameObject; val.inflictor = ((Component)component2).gameObject; val.damageType = damageInfo.damageType; val.procChainMask = default(ProcChainMask); component2.healthComponent.TakeDamage(val); } if (component.HasBuff(Buffs.vagrantBuff) && !component2.HasBuff(Buffs.vagrantdisableBuff) && damageInfo.damage / component.damage >= 4f && damageInfo.procCoefficient > 0f) { NetworkingHelpers.ApplyBuff(component, Buffs.vagrantBuff.buffIndex, 0, -1f); NetworkingHelpers.ApplyBuff(component, Buffs.vagrantdisableBuff.buffIndex, 10, -1f); component2.AddTimedBuffAuthority(Buffs.vagrantDebuff.buffIndex, 10f); Util.PlaySound(JellyNova.novaSoundString, ((Component)this).gameObject); if (Object.op_Implicit((Object)(object)JellyNova.novaEffectPrefab)) { EffectManager.SpawnEffect(JellyNova.novaEffectPrefab, new EffectData { origin = component2.transform.position, scale = 12f * component.attackSpeed / 3f }, true); } new BlastAttack { crit = false, attacker = ((Component)component).gameObject, teamIndex = TeamComponent.GetObjectTeam(((Component)component).gameObject), falloffModel = (FalloffModel)0, baseDamage = component.damage * 21f * component.attackSpeed / 3f, damageType = (DamageType)32, damageColorIndex = (DamageColorIndex)0, baseForce = 0f, position = component2.transform.position, radius = 12f * component.attackSpeed / 3f, procCoefficient = 1f, attackerFiltering = (AttackerFiltering)2 }.Fire(); } if (component.HasBuff(Buffs.claydunestriderBuff) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864) { damageInfo.damageType = (DamageType)(damageInfo.damageType | 0x200); } if (component.HasBuff(Buffs.greaterwispBuff) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864 && damageInfo.procCoefficient != 0f) { EffectManager.SpawnEffect(Assets.chargegreaterwispBall, new EffectData { origin = component2.transform.position, scale = 6f, rotation = Util.QuaternionSafeLookRotation(damageInfo.force) }, true); new BlastAttack { crit = false, attacker = ((Component)component).gameObject, teamIndex = TeamComponent.GetObjectTeam(((Component)component).gameObject), falloffModel = (FalloffModel)0, baseDamage = damageInfo.damage * 0.5f, damageType = damageInfo.damageType, damageColorIndex = (DamageColorIndex)0, baseForce = 0f, procChainMask = damageInfo.procChainMask, position = component2.transform.position, radius = 6f, procCoefficient = 0f, attackerFiltering = (AttackerFiltering)2 }.Fire(); } if ((component.HasBuff(Buffs.elementalFusionFireBuff) | component.HasBuff(Buffs.elementalFusionFreezeBuff) | component.HasBuff(Buffs.elementalFusionShockBuff)) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864 && damageInfo.procCoefficient > 0f) { int buffCount2 = component.GetBuffCount(Buffs.elementalFusionBuffStacks); if (buffCount2 < StaticValues.elementalFusionThreshold) { NetworkingHelpers.ApplyBuff(component, Buffs.elementalFusionBuffStacks.buffIndex, buffCount2 + 1, -1f); } else if (buffCount2 >= StaticValues.elementalFusionThreshold && Object.op_Implicit((Object)(object)component2)) { if (component.HasBuff(Buffs.elementalFusionFireBuff)) { NetworkingHelpers.ApplyBuff(component, Buffs.elementalFusionFireBuff.buffIndex, 0, -1f); NetworkingHelpers.ApplyBuff(component, Buffs.elementalFusionFreezeBuff.buffIndex, 1, -1f); NetworkingHelpers.ApplyBuff(component, Buffs.elementalFusionBuffStacks.buffIndex, 0, -1f); EffectManager.SpawnEffect(Assets.artificerFireMuzzleEffect, new EffectData { origin = component.corePosition, scale = 1f, rotation = Quaternion.identity }, false); } else if (component.HasBuff(Buffs.elementalFusionFreezeBuff)) { NetworkingHelpers.ApplyBuff(component, Buffs.elementalFusionFreezeBuff.buffIndex, 0, -1f); NetworkingHelpers.ApplyBuff(component, Buffs.elementalFusionShockBuff.buffIndex, 1, -1f); NetworkingHelpers.ApplyBuff(component, Buffs.elementalFusionBuffStacks.buffIndex, 0, -1f); EffectManager.SpawnEffect(Assets.artificerIceMuzzleEffect, new EffectData { origin = component.corePosition, scale = 1f, rotation = Quaternion.identity }, false); } else if (component.HasBuff(Buffs.elementalFusionShockBuff)) { NetworkingHelpers.ApplyBuff(component, Buffs.elementalFusionShockBuff.buffIndex, 0, -1f); NetworkingHelpers.ApplyBuff(component, Buffs.elementalFusionFireBuff.buffIndex, 1, -1f); NetworkingHelpers.ApplyBuff(component, Buffs.elementalFusionBuffStacks.buffIndex, 0, -1f); EffectManager.SpawnEffect(Assets.artificerLightningMuzzleEffect, new EffectData { origin = component.corePosition, scale = 1f, rotation = Quaternion.identity }, false); } } } if (component.HasBuff(Buffs.omniboostBuff) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864 && damageInfo.procCoefficient > 0f) { int buffCount3 = component2.GetBuffCount(Buffs.omniboostDebuffStacks); if (buffCount3 < 3) { NetworkingHelpers.ApplyBuff(component2, Buffs.omniboostDebuffStacks.buffIndex, buffCount3 + 1, -1f); buffCount3++; if (buffCount3 >= 3) { int buffCount4 = component.GetBuffCount(Buffs.omniboostBuffStacks); NetworkingHelpers.ApplyBuff(component, Buffs.omniboostBuffStacks.buffIndex, buffCount4 + 1, -1f); NetworkingHelpers.ApplyBuff(component2, Buffs.omniboostDebuffStacks.buffIndex, 0, -1f); EffectManager.SpawnEffect(FireEmbers.hitEffectPrefab, new EffectData { origin = component2.transform.position, scale = 1f }, false); } } else if (buffCount3 >= 3) { int buffCount5 = component.GetBuffCount(Buffs.omniboostBuffStacks); NetworkingHelpers.ApplyBuff(component, Buffs.omniboostBuffStacks.buffIndex, buffCount5 + 1, -1f); NetworkingHelpers.ApplyBuff(component2, Buffs.omniboostDebuffStacks.buffIndex, 0, -1f); EffectManager.SpawnEffect(FireEmbers.hitEffectPrefab, new EffectData { origin = component2.transform.position, scale = 1f }, false); } } if (component.HasBuff(Buffs.bigbangBuff) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864 && damageInfo.procCoefficient > 0f) { int buffCount6 = component2.GetBuffCount(Buffs.bigbangDebuff); if (buffCount6 < 5) { NetworkingHelpers.ApplyBuff(component2, Buffs.bigbangDebuff.buffIndex, buffCount6 + 1, -1f); buffCount6++; if (buffCount6 >= 5) { NetworkingHelpers.ApplyBuff(component2, Buffs.bigbangDebuff.buffIndex, 0, -1f); if (Object.op_Implicit((Object)(object)ExplosionAttack.novaEffectPrefab)) { EffectManager.SpawnEffect(ExplosionAttack.novaEffectPrefab, new EffectData { origin = component2.transform.position, scale = 20f * component.attackSpeed / 3f }, true); } new BlastAttack { crit = false, attacker = ((Component)component).gameObject, teamIndex = TeamComponent.GetObjectTeam(((Component)component).gameObject), falloffModel = (FalloffModel)0, baseDamage = damageInfo.damage * 10f, damageType = (DamageType)32, damageColorIndex = (DamageColorIndex)0, baseForce = 0f, position = component2.transform.position, radius = 20f * component.attackSpeed / 3f, procCoefficient = 0f, attackerFiltering = (AttackerFiltering)2 }.Fire(); } } else if (buffCount6 >= 5) { NetworkingHelpers.ApplyBuff(component2, Buffs.bigbangDebuff.buffIndex, 0, -1f); if (Object.op_Implicit((Object)(object)ExplosionAttack.novaEffectPrefab)) { EffectManager.SpawnEffect(ExplosionAttack.novaEffectPrefab, new EffectData { origin = component2.transform.position, scale = 20f * component.attackSpeed / 3f }, true); } new BlastAttack { crit = false, attacker = ((Component)component).gameObject, teamIndex = TeamComponent.GetObjectTeam(((Component)component).gameObject), falloffModel = (FalloffModel)0, baseDamage = damageInfo.damage * 10f, damageType = (DamageType)32, damageColorIndex = (DamageColorIndex)0, baseForce = 0f, position = component2.transform.position, radius = 20f * component.attackSpeed / 3f, procCoefficient = 0f, attackerFiltering = (AttackerFiltering)2 }.Fire(); } } if (component.HasBuff(Buffs.wisperBuff) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864 && damageInfo.procCoefficient > 0f) { DevilOrb val2 = new DevilOrb { origin = component.corePosition, damageValue = component.damage * 2f, teamIndex = component.teamComponent.teamIndex, attacker = ((Component)component).gameObject, damageColorIndex = (DamageColorIndex)3, scale = 1f, effectType = (EffectType)1, procCoefficient = 0f }; if (Object.op_Implicit((Object)(object)(((Orb)val2).target = component2.mainHurtBox))) { val2.isCrit = Util.CheckRoll(component.crit, component.master); OrbManager.instance.AddOrb((Orb)(object)val2); } } if (component.HasBuff(Buffs.lightFormBuff) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864 && damageInfo.procCoefficient > 0f) { int buffCount7 = component2.GetBuffCount(Buffs.lightFormDebuff); NetworkingHelpers.ApplyBuff(component2, Buffs.lightFormDebuff.buffIndex, buffCount7 + 1, -1f); } if (component.HasBuff(Buffs.darknessFormBuff) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864 && damageInfo.procCoefficient > 0f) { int buffCount8 = component2.GetBuffCount(Buffs.darknessFormDebuff); NetworkingHelpers.ApplyBuff(component2, Buffs.darknessFormDebuff.buffIndex, buffCount8 + 1, -1f); } if (component2.HasBuff(Buffs.lightFormDebuff) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864 && damageInfo.procCoefficient > 0f) { NetMessageExtensions.Send((INetMessage)(object)new OrbDamageRequest(component2.masterObjectId, damageInfo.damage, component.masterObjectId), (NetworkDestination)1); } if (component.HasBuff(Buffs.lightAndDarknessFormBuff) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864 && damageInfo.procCoefficient > 0f) { int buffCount9 = component2.GetBuffCount(Buffs.lightAndDarknessFormDebuff); NetworkingHelpers.ApplyBuff(component2, Buffs.lightAndDarknessFormDebuff.buffIndex, buffCount9 + 1, -1f); } if (component2.HasBuff(Buffs.lightAndDarknessFormDebuff) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864 && damageInfo.procCoefficient > 0f) { int buffCount10 = component2.GetBuffCount(Buffs.lightAndDarknessFormDebuff); NetMessageExtensions.Send((INetMessage)(object)new LightAndDarknessPullRequest(component.masterObjectId, component2.corePosition, Vector3.up, StaticValues.lightAndDarknessRange + StaticValues.lightAndDarknessRangeAddition * (float)buffCount10, 0f, damageInfo.damage * (StaticValues.lightAndDarknessBonusDamage * (float)buffCount10), 360f, playEffect: true), (NetworkDestination)1); } if (component.HasBuff(Buffs.limitBreakBuff) && damageInfo.damage > 0f && (damageInfo.damageType & 0x4000000) != 67108864) { NetMessageExtensions.Send((INetMessage)(object)new SpendHealthNetworkRequest(component.masterObjectId, component.healthComponent.fullHealth * StaticValues.limitBreakHealthCostCoefficient), (NetworkDestination)1); } } private void CharacterBody_OnDeathStart(orig_OnDeathStart orig, CharacterBody self) { orig.Invoke(self); if (!Object.op_Implicit((Object)(object)self)) { return; } if (self.baseNameToken == "TEAL_SHIGGY_BODY_NAME") { ShiggyController component = ((Component)self).gameObject.GetComponent<ShiggyController>(); if (Config.allowVoice.Value) { AkSoundEngine.PostEvent("ShiggyDeath", ((Component)self).gameObject); } } BuffController component2 = ((Component)self).gameObject.GetComponent<BuffController>(); if (Object.op_Implicit((Object)(object)component2)) { if (Object.op_Implicit((Object)(object)component2.overloadingWard)) { EntityState.Destroy((Object)(object)component2.overloadingWard); } if (Object.op_Implicit((Object)(object)component2.mushroomWard)) { EntityState.Destroy((Object)(object)component2.mushroomWard); } if (Object.op_Implicit((Object)(object)component2.magmawormWard)) { EntityState.Destroy((Object)(object)component2.magmawormWard); } if (Object.op_Implicit((Object)(object)component2.mortarIndicatorInstance)) { component2.mortarIndicatorInstance.SetActive(false); EntityState.Destroy((Object)(object)component2.mortarIndicatorInstance.gameObject); } if (Object.op_Implicit((Object)(object)component2.voidmortarIndicatorInstance)) { component2.voidmortarIndicatorInstance.SetActive(false); EntityState.Destroy((Object)(object)component2.voidmortarIndicatorInstance.gameObject); } if (Object.op_Implicit((Object)(object)component2.barbedSpikesIndicatorInstance)) { component2.barbedSpikesIndicatorInstance.SetActive(false); EntityState.Destroy((Object)(object)component2.barbedSpikesIndicatorInstance.gameObject); } } } private void GlobalEventManager_OnCharacterDeath(orig_OnCharacterDeath orig, GlobalEventManager self, DamageReport damageReport) { //IL_00e6: Unknown result type (might be due to invalid IL or missing references) //IL_0149: Unknown result type (might be due to invalid IL or missing references) orig.Invoke(self, damageReport); if (Object.op_Implicit((Object)(object)damageReport.attackerBody) && Object.op_Implicit((Object)(object)damageReport.victimBody)) { if (damageReport.attackerBody?.baseNameToken == "TEAL_SHIGGY_BODY_NAME" && damageReport.damageInfo.damage > 0f && damageReport.attackerBody.hasEffectiveAuthority) { EnergySystem component = ((Component)damageReport.attackerBody).gameObject.GetComponent<EnergySystem>(); component.GainplusChaos(component.maxPlusChaos * StaticValues.killPlusChaosGain); } if (damageReport.attackerBody.HasBuff(Buffs.doubleTimeBuff) && damageReport.damageInfo.damage > 0f) { int buffCount = damageReport.attackerBody.GetBuffCount(Buffs.doubleTimeBuffStacks); NetworkingHelpers.ApplyBuff(damageReport.attackerBody, Buffs.doubleTimeBuffStacks.buffIndex, buffCount + 1, -1f); } if (damageReport.attackerBody.HasBuff(Buffs.omniboostBuffStacks) && damageReport.damageInfo.damage > 0f) { int buffCount2 = damageReport.attackerBody.GetBuffCount(Buffs.omniboostBuffStacks); NetworkingHelpers.ApplyBuff(damageReport.attackerBody, Buffs.omniboostBuffStacks.buffIndex, Mathf.RoundToInt((float)(buffCount2 / 2)), -1f); } } } private void SurvivorCatalog_Init(orig_Init orig) { orig.Invoke(); foreach (SurvivorDef allSurvivorDef in SurvivorCatalog.allSurvivorDefs) { if (((Object)allSurvivorDef.bodyPrefab).name == "ShiggyBody") { CustomEmotesAPI.ImportArmature(allSurvivorDef.bodyPrefab, Assets.mainAssetBundle.LoadAsset<GameObject>("humanoidShigaraki"), 0, true); } } } private void GlobalEventManager_OnDamageDealt(DamageReport report) { //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) bool flag = !Object.op_Implicit((Object)(object)report.attacker) || !Object.op_Implicit((Object)(object)report.attackerBody); if (!flag && report.attackerBody.HasBuff(Buffs.claydunestriderBuff)) { CharacterBody attackerBody = report.attackerBody; attackerBody.healthComponent.Heal(report.damageDealt * 0.1f, default(ProcChainMask), true); } if (!flag && report.attackerBody.HasBuff(Buffs.OFAFOBuff)) { CharacterBody attackerBody2 = report.attackerBody; attackerBody2.healthComponent.Heal(report.damageDealt * StaticValues.OFAFOLifestealCoefficient, default(ProcChainMask), true); EnergySystem component = ((Component)attackerBody2).gameObject.GetComponent<EnergySystem>(); if (Object.op_Implicit((Object)(object)component)) { component.GainplusChaos(StaticValues.OFAFOEnergyGainCoefficient * report.damageDealt); } } if (!flag && report.attackerBody.HasBuff(Buffs.loaderBuff)) { CharacterBody attackerBody3 = report.attackerBody; attackerBody3.healthComponent.AddBarrierAuthority(report.damageDealt * 0.01f); } } private void HealthComponent_TakeDamage(orig_TakeDamage orig, HealthComponent self, DamageInfo damageInfo) { //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Invalid comparison between Unknown and I4 //IL_00b9: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Invalid comparison between Unknown and I4 //IL_0210: Unknown result type (might be due to invalid IL or missing references) //IL_0109: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_0119: Invalid comparison between Unknown and I4 //IL_022a: Unknown result type (might be due to invalid IL or missing references) //IL_0487: Unknown result type (might be due to invalid IL or missing references) //IL_0491: Invalid comparison between Unknown and I4 //IL_0273: Unknown result type (might be due to invalid IL or missing references) //IL_02b8: Unknown result type (might be due to invalid IL or missing references) //IL_02cf: Unknown result type (might be due to invalid IL or missing references) //IL_02d4: Unknown result type (might be due to invalid IL or missing references) //IL_02ec: Unknown result type (might be due to invalid IL or missing references) //IL_02f1: Unknown result type (might be due to invalid IL or missing references) //IL_02f2: Unknown result type (might be due to invalid IL or missing references) //IL_02fa: Unknown result type (might be due to invalid IL or missing references) //IL_0305: Unknown result type (might be due to invalid IL or missing references) //IL_030c: Unknown result type (might be due to invalid IL or missing references) //IL_0311: Unknown result type (might be due to invalid IL or missing references) //IL_0316: Unknown result type (might be due to invalid IL or missing references) //IL_0321: Expected O, but got Unknown //IL_03ad: Unknown result type (might be due to invalid IL or missing references) //IL_03b2: Unknown result type (might be due to invalid IL or missing references) //IL_03be: Unknown result type (might be due to invalid IL or missing references) //IL_03d0: Unknown result type (might be due to invalid IL or missing references) //IL_03db: Unknown result type (might be due to invalid IL or missing references) //IL_03dc: Unknown result type (might be due to invalid IL or missing references) //IL_03e1: Unknown result type (might be due to invalid IL or missing references) //IL_03e6: Unknown result type (might be due to invalid IL or missing references) //IL_03e8: Unknown result type (might be due to invalid IL or missing references) //IL_03ed: Unknown result type (might be due to invalid IL or missing references) //IL_03f9: Unknown result type (might be due to invalid IL or missing references) //IL_03fb: Unknown result type (might be due to invalid IL or missing references) //IL_0400: Unknown result type (might be due to invalid IL or missing references) //IL_0402: Unknown result type (might be due to invalid IL or missing references) //IL_0407: Unknown result type (might be due to invalid IL or missing references) //IL_0409: Unknown result type (might be due to invalid IL or missing references) //IL_040e: Unknown result type (might be due to invalid IL or missing references) //IL_041a: Unknown result type (might be due to invalid IL or missing references) //IL_041b: Unknown result type (might be due to invalid IL or missing references) //IL_041d: Unknown result type (might be due to invalid IL or missing references) //IL_0422: Unknown result type (might be due to invalid IL or missing references) //IL_0428: Unknown result type (might be due to invalid IL or missing references) //IL_042e: Unknown result type (might be due to invalid IL or missing references) //IL_0439: Unknown result type (might be due to invalid IL or missing references) //IL_0444: Unknown result type (might be due to invalid IL or missing references) //IL_0446: Unknown result type (might be due to invalid IL or missing references) //IL_044b: Unknown result type (might be due to invalid IL or missing references) //IL_0452: Unknown result type (might be due to invalid IL or missing references) //IL_0457: Unknown result type (might be due to invalid IL or missing references) //IL_045c: Unknown result type (might be due to invalid IL or missing references) //IL_0462: Unknown result type (might be due to invalid IL or missing references) //IL_0467: Unknown result type (might be due to invalid IL or missing references) //IL_046c: Unknown result type (might be due to invalid IL or missing references) //IL_0567: Unknown result type (might be due to invalid IL or missing references) //IL_01aa: Unknown result type (might be due to invalid IL or missing references) //IL_01c7: Unknown result type (might be due to invalid IL or missing references) //IL_0605: Unknown result type (might be due to invalid IL or missing references) //IL_060b: Unknown result type (might be due to invalid IL or missing references) //IL_060d: Invalid comparison between Unknown and I4 //IL_0617: Unknown result type (might be due to invalid IL or missing references) //IL_058a: Unknown result type (might be due to invalid IL or missing references) //IL_05bd: Unknown result type (might be due to invalid IL or missing references) //IL_05c2: Unknown result type (might be due to invalid IL or missing references) //IL_0554: Unknown result type (might be due to invalid IL or missing references) //IL_0559: Unknown result type (might be due to invalid IL or missing references) //IL_064b: Unknown result type (might be due to invalid IL or missing references) //IL_0675: Unknown result type (might be due to invalid IL or missing references) //IL_06d3: Unknown result type (might be due to invalid IL or missing references) //IL_06da: Expected O, but got Unknown //IL_06fa: Unknown result type (might be due to invalid IL or missing references) //IL_06ff: Unknown result type (might be due to invalid IL or missing references) //IL_0706: Unknown result type (might be due to invalid IL or missing references) //IL_070b: Unknown result type (might be due to invalid IL or missing references) //IL_0713: Unknown result type (might be due to invalid IL or missing references) //IL_0730: Unknown result type (might be due to invalid IL or missing references) //IL_0748: Unknown result type (might be due to invalid IL or missing references) //IL_075c: Unknown result type (might be due to invalid IL or missing references) //IL_0761: Unknown result type (might be due to invalid IL or missing references) //IL_0763: Unknown result type (might be due to invalid IL or missing references) //IL_076e: Unknown result type (might be due to invalid IL or missing references) //IL_076f: Unknown result type (might be due to invalid IL or missing references) //IL_0774: Unknown result type (might be due to invalid IL or missing references) //IL_077b: Expected O, but got Unknown //IL_0789: Unknown result type (might be due to invalid IL or missing references) //IL_078e: Unknown result type (might be due to invalid IL or missing references) //IL_079a: Unknown result type (might be due to invalid IL or missing references) //IL_07a5: Unknown result type (might be due to invalid IL or missing references) //IL_07a6: Unknown result type (might be due to invalid IL or missing references) //IL_07ab: Unknown result type (might be due to invalid IL or missing references) //IL_07b2: Expected O, but got Unknown //IL_0975: Unknown result type (might be due to invalid IL or missing references) //IL_07f4: Unknown result type (might be due to invalid IL or missing references) //IL_07ff: Unknown result type (might be due to invalid IL or missing references) //IL_0811: Unknown result type (might be due to invalid IL or missing references) //IL_0816: Unknown result type (might be due to invalid IL or missing references) //IL_0828: Unknown result type (might be due to invalid IL or missing references) //IL_083c: Unknown result type (might be due to invalid IL or missing references) //IL_0843: Expected O, but got Unknown //IL_086f: Unknown result type (might be due to invalid IL or missing references) //IL_0897: Unknown result type (might be due to invalid IL or missing references) //IL_089f: Unknown result type (might be due to invalid IL or missing references) //IL_08a4: Unknown result type (might be due to invalid IL or missing references) //IL_08b0: Unknown result type (might be due to invalid IL or missing references) //IL_08d5: Unknown result type (might be due to invalid IL or missing references) //IL_08ee: Unknown result type (might be due to invalid IL or missing references) //IL_08f3: Unknown result type (might be due to invalid IL or missing references) //IL_0921: Unknown result type (might be due to invalid IL or missing references) //IL_0926: Unknown result type (might be due to invalid IL or missing references) //IL_0928: Unknown result type (might be due to invalid IL or missing references) //IL_0933: Unknown result type (might be due to invalid IL or missing references) //IL_0935: Unknown result type (might be due to invalid IL or missing references) //IL_093a: Unknown result type (might be due to invalid IL or missing references) //IL_094e: Unknown result type (might be due to invalid IL or missing references) //IL_0946: Unknown result type (might be due to invalid IL or missing references) //IL_0b1d: Unknown result type (might be due to invalid IL or missing references) //IL_0953: Unknown result type (might be due to invalid IL or missing references) //IL_0958: Unknown result type (might be due to invalid IL or missing references) //IL_095f: Expected O, but got Unknown //IL_09dd: Unknown result type (might be due to invalid IL or missing references) //IL_09e4: Expected O, but got Unknown //IL_0a10: Unknown result type (might be due to invalid IL or missing references) //IL_0a38: Unknown result type (might be due to invalid IL or missing references) //IL_0a40: Unknown result type (might be due to invalid IL or missing references) //IL_0a45: Unknown result type (might be due to invalid IL or missing references) //IL_0a51: Unknown result type (might be due to invalid IL or missing references) //IL_0a76: Unknown result type (might be due to invalid IL or missing references) //IL_0a8f: Unknown result type (might be due to invalid IL or missing references) //IL_0a94: Unknown result type (might be due to invalid IL or missing references) //IL_0ac9: Unknown result type (might be due to invalid IL or missing references) //IL_0ace: Unknown result type (might be due to invalid IL or missing references) //IL_0ad0: Unknown result type (might be due to invalid IL or missing references) //IL_0adb: Unknown result type (might be due to invalid IL or missing references) //IL_0add: Unknown result type (might be due to invalid IL or missing references) //IL_0ae2: Unknown result type (might be due to invalid IL or missing references) //IL_0af6: Unknown result type (might be due to invalid IL or missing references) //IL_0aee: Unknown result type (might be due to invalid IL or missing references) //IL_0cce: Unknown result type (might be due to invalid IL or missing references) //IL_0b4f: Unknown result type (might be due to invalid IL or missing references) //IL_0b54: Unknown result type (might be due to invalid IL or missing references) //IL_0afb: Unknown result type (might be due to invalid IL or missing references) //IL_0b00: Unknown result type (might be due to invalid IL or missing references) //IL_0b07: Expected O, but got Unknown //IL_0b79: Unknown result type (might be due to invalid IL or missing references) //IL_0c7a: Unknown result type (might be due to invalid IL or missing references) //IL_0c7f: Unknown result type (might be due to invalid IL or missing references) //IL_0c81: Unknown result type (might be due to invalid IL or missing references) //IL_0c8c: Unknown result type (might be due to invalid IL or missing references) //IL_0c8e: Unknown result type (might be due to invalid IL or missing references) //IL_0c93: Unknown result type (might be due to invalid IL or missing references) //IL_0b8d: Unknown result type (might be due to invalid IL or missing references) //IL_0b94: Expected O, but got Unknown //IL_0bc0: Unknown result type (might be due to invalid IL or missing references) //IL_0be8: Unknown result type (might be due to invalid IL or missing references) //IL_0bf0: Unknown result type (might be due to invalid IL or missing references) //IL_0bf5: Unknown result type (might be due to invalid IL or missing references) //IL_0c01: Unknown result type (might be due to invalid IL or missing references) //IL_0c26: Unknown result type (might be due to invalid IL or missing references) //IL_0c3f: Unknown result type (might be due to invalid IL or missing references) //IL_0c44: Unknown result type (might be due to invalid IL or missing references) //IL_0dbb: Unknown result type (might be due to invalid IL or missing references) //IL_0ca7: Unknown result type (might be due to invalid IL or missing references) //IL_0c9f: Unknown result type (might be due to invalid IL or missing references) //IL_0d0d: Unknown result type (might be due to invalid IL or missing references) //IL_0d17: Unknown result type (might be due to invalid IL or missing references) //IL_0d1d: Invalid comparison between Unknown and I4 //IL_0cac: Unknown result type (might be due to invalid IL or missing references) //IL_0cb1: Unknown result type (might be due to invalid IL or missing references) //IL_0cb8: Expected O, but got Unknown //IL_0e75: Unknown result type (might be due to invalid IL or missing references) //IL_0dec: Unknown result type (might be due to invalid IL or missing references) //IL_0df1: Unknown result type (might be due to invalid IL or missing references) //IL_0df3: Unknown result type (might be due to invalid IL or missing references) //IL_0dfe: 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_0e05: Unknown result type (might be due to invalid IL or missing references) //IL_0d8c: Unknown result type (might be due to invalid IL or missing references) //IL_0d91: Unknown result type (might be due to invalid IL or missing references) //IL_0d2d: Unknown result type (might be due to invalid IL or missing references) //IL_0d32: Unknown result type (might be due to invalid IL or missing references) //IL_0e19: Unknown result type (might be due to invalid IL or missing references) //IL_0e11: Unknown result type (might be due to invalid IL or missing references) //IL_0d6c: Unknown result type (might be due to invalid IL or missing references) //IL_0d72: Unknown result type (might be due to invalid IL or missing references) //IL_0e1e: Unknown result type (might be due to invalid IL or missing references) //IL_0e23: Unknown result type (might be due to invalid IL or missing references) //IL_0e2a: Expected O, but got Unknown //IL_0e45: Unknown result type (might be due to invalid IL or missing references) //IL_0e5c: Unknown result type (might be due to invalid IL or missing references) //IL_0ea7: Unknown result type (might be due to invalid IL or missing references) //IL_0eb1: Expected O, but got Unknown //IL_0edd: Unknown result type (might be due to invalid IL or missing references) //IL_0ee2: Unknown result type (might be due to invalid IL or missing references) //IL_0f32: Unknown result type (might be due to invalid IL or missing references) //IL_0f53: Unknown result type (might be due to invalid IL or missing references) //IL_0f58: Unknown result type (might be due to invalid IL or missing references) //IL_0f68: Unknown result type (might be due to invalid IL or missing references) //IL_0f74: Unknown result type (might be due to invalid IL or missing references) //IL_0f7f: Unknown result type (might be due to invalid IL or missing references) //IL_0f90: Unknown result type (might be due to invalid IL or missing references) //IL_0f9b: Unknown result type (might be due to invalid IL or missing references) //IL_0fa0: Unknown result type (might be due to invalid IL or missing references) //IL_0fa7: Unknown result type (might be due to invalid IL or missing references) //IL_0fb2: Unknown result type (might be due to invalid IL or missing references) //IL_0fbd: Unknown result type (might be due to invalid IL or missing references) //IL_0fc4: Unknown result type (might be due to invalid IL or missing references) //IL_0fc9: Unknown result type (might be due to invalid IL or missing references) //IL_0fce: Unknown result type (might be due to invalid IL or missing references) //IL_0fd9: Expected O, but got Unknown orig.Invoke(self, damageInfo); if (!Object.op_Implicit((Object)(object)self) || !Object.op_Implicit((Object)(object)damageInfo.attacker)) { return; } CharacterBody body = self.body; CharacterBody component = damageInfo.attacker.GetComponent<CharacterBody>(); if (!Object.op_Implicit((Object)(object)component) || !Object.op_Implicit((Object)(object)body)) { return; } if (body.HasBuff(Buffs.deathAuraDebuff) && (int)damageInfo.damageType == 67108864) { damageInfo.damage *= 1f + (float)body.GetBuffCount(Buffs.deathAuraDebuff) * StaticValues.deathAuraDebuffCoefficient; } if (component.HasBuff(Buffs.deathAuraBuff) && (int)damageInfo.damageType == 67108864) { damageInfo.damage *= 1f + (float)component.GetBuffCount(Buffs.deathAuraBuff) * StaticValues.deathAuraBuffCoefficient; } if (component.HasBuff(Buffs.multiplierBuff) && (damageInfo.damageType & 0x4000000) != 67108864) { EnergySystem component2 = damageInfo.attacker.gameObject.GetComponent<EnergySystem>(); if (Object.op_Implicit((Object)(object)component2)) { float num = 10f - component2.costflatplusChaos; if (num < 0f) { num = 0f; } float num2 = component2.costmultiplierplusChaos * num; if (num2 < 0f) { num2 = 0f; } if (component2.currentplusChaos < num2) { NetworkingHelpers.ApplyBuff(component, Buffs.multiplierBuff.buffIndex, 0, -1f); component2.TriggerGlow(0.3f, 0.3f, Color.black); } else if (component2.currentplusChaos >= num2) { damageInfo.damage *= 3f; component2.SpendplusChaos(num2); } } } if (body.HasBuff(Buffs.supernovaBuff.buffIndex)) { int num3 = body.GetBuffCount(Buffs.supernovaBuff.buffIndex) - 1; int num4 = Mathf.RoundToInt(damageInfo.damage); int num5 = num4 + num3; if (num5 < Mathf.RoundToInt(StaticValues.supernovaHealthThreshold * body.healthComponent.fullCombinedHealth)) { NetworkingHelpers.ApplyBuff(body, Buffs.supernovaBuff.buffIndex, num5, -1f); } else if (num5 >= Mathf.RoundToInt(StaticValues.supernovaHealthThreshold * body.healthComponent.fullCombinedHealth)) { NetworkingHelpers.ApplyBuff(body, Buffs.supernovaBuff.buffIndex, 1, -1f); Vector3 position = body.transform.position; Util.PlaySound(FireMegaNova.novaSoundString, ((Component)body).gameObject); EffectManager.SpawnEffect(FireMegaNova.novaEffectPrefab, new EffectData { origin = position, scale = StaticValues.supernovaRadius, rotation = Quaternion.LookRotation(((Component)self).transform.position) }, true); Transform modelTransform = ((Component)body).gameObject.GetComponent<ModelLocator>().modelTransform; if (Object.op_Implicit((Object)(object)modelTransform)) { TemporaryOverlay val = ((Component)modelTransform).gameObject.AddComponent<TemporaryOverlay>(); val.duration = 3f; val.animateShaderAlpha = true; val.alphaCurve = AnimationCurve.EaseInOut(0f, 1f, 1f, 0f); val.destroyComponentOnEnd = true; val.originalMaterial = LegacyResourcesAPI.Load<Material>("Materials/matVagrantEnergized"); val.AddToCharacerModel(((Component)modelTransform).GetComponent<CharacterModel>()); } new BlastAttack { attacker = ((Component)body).gameObject, baseDamage = body.damage * StaticValues.supernovaDamageCoefficient, baseForce = FireMegaNova.novaForce, bonusForce = Vector3.zero, attackerFiltering = (AttackerFiltering)2, crit = body.RollCrit(), damageColorIndex = (DamageColorIndex)0, damageType = (DamageType)0, falloffModel = (FalloffModel)0, inflictor = ((Component)body).gameObject, position = position, procChainMask = default(ProcChainMask), procCoefficient = StaticValues.supernovaProcCoefficient, radius = StaticValues.supernovaRadius, losType = (LoSType)1, teamIndex = body.teamComponent.teamIndex, impactEffect = EffectCatalog.FindEffectIndexFromPrefab(FireMegaNova.novaImpactEffectPrefab) }.Fire(); } } if (body.HasBuff(Buffs.darknessFormDebuff) && (int)damageInfo.damageType != 67108864 && damageInfo.procCoefficient > 0f) { int buffCount = body.GetBuffCount(Buffs.darknessFormDebuff); float num6 = damageInfo.damage * StaticValues.darkFormBonusDamage * (float)buffCount; damageInfo.damage += num6; } if (body.HasBuff(Buffs.MercExpose) && component.baseNameToken == "TEAL_SHIGGY_BODY_NAME") { body.RemoveBuff(Buffs.MercExpose); float num7 = component.damage * StaticValues.exposeDamageCoefficient; damageInfo.damage += num7; SkillLocator skillLocator = component.skillLocator; if (Object.op_Implicit((Object)(object)skillLocator)) { skillLocator.DeductCooldownFromAllSkillsServer(1f); } EffectManager.SimpleImpactEffect(AssetReferences.mercExposeConsumeEffectPrefab, damageInfo.position, Vector3.up, true); } if (DamageAPI.HasModdedDamageType(damageInfo, Damage.shiggyDecay)) { int buffCount2 = body.GetBuffCount(Buffs.decayDebuff); InflictDotInfo val2 = default(InflictDotInfo); val2.attackerObject = damageInfo.attacker.gameObject; val2.victimObject = ((Component)self).gameObject; val2.duration = 10f; val2.dotIndex = Dots.decayDot; DotController.InflictDot(ref val2); DecayEffectController component3 = ((Component)self).gameObject.GetComponent<DecayEffectController>(); if (!Object.op_Implicit((Object)(object)component3)) { component3 = ((Component)self).gameObject.AddComponent<DecayEffectController>(); component3.attackerBody = component; } } bool flag = (damageInfo.damageType & 2) > 0; if (body.HasBuff(Buffs.jellyfishHealStacksBuff.buffIndex) && !flag && damageInfo.damage > 0f && (Object)(object)component != (Object)(object)body) { int num8 = body.GetBuffCount(Buffs.jellyfishHealStacksBuff.buffIndex) - 1; int num9 = Mathf.RoundToInt(damageInfo.damage); int num10 = num9 / 2 + num8; NetworkingHelpers.ApplyBuff(body, Buffs.jellyfishHealStacksBuff.buffIndex, num10, -1f); } if (body.HasBuff(Buffs.gargoyleProtectionBuff) && !flag && damageInfo.damage > 0f && (Object)(object)component != (Object)(object)body) { damageInfo.damage -= damageInfo.damage * StaticValues.gargoyleProtectionDamageReductionCoefficient; DamageInfo val3 = new DamageInfo(); val3.damage = damageInfo.damage * StaticValues.gargoyleProtectionDamageReductionCoefficient; val3.position = damageInfo.attacker.transform.position; val3.force = Vector3.zero; val3.damageColorIndex = (DamageColorIndex)5; val3.crit = false; val3.attacker = ((Component)body).gameObject; val3.damageType = (DamageType)2; val3.procCoefficient = 0f; val3.procChainMask = default(ProcChainMask); component.healthComponent.TakeDamage(val3); EffectData val4 = new EffectData { origin = damageInfo.position, rotation = Quaternion.identity }; EffectManager.SpawnEffect(Assets.mushrumSporeImpactPrefab, val4, true); EffectData val5 = new EffectData { origin = damageInfo.attacker.transform.position, rotation = Quaternion.identity }; EffectManager.SpawnEffect(Assets.mushrumSporeImpactPrefab, val5, true); } if (body.HasBuff(Buffs.reversalBuffStacks) && !flag && damageInfo.damage > 0f && (Object)(object)component != (Object)(object)body) { NetMessageExtensions.Send((INetMessage)(object)new ForceReversalState(body.masterObjectId, component.transform.position), (NetworkDestination)2); damageInfo.force = Vector3.zero; damageInfo.rejected = true; if (body.HasBuff(Buffs.blindSensesBuff.buffIndex)) { LightningOrb val6 = new LightningOrb(); val6.attacker = ((Component)body).gameObject; val6.bouncedObjects = null; val6.bouncesRemaining = 0; val6.damageCoefficientPerBounce = 1f; val6.damageColorIndex = (DamageColorIndex)3; val6.damageValue = damageInfo.damage * StaticValues.blindSensesDamageCoefficient; val6.isCrit = body.RollCrit(); val6.lightningType = (LightningType)6; ((Orb)val6).origin = body.corePosition; val6.procChainMask = default(ProcChainMask); ((ProcChainMask)(ref val6.procChainMask)).AddProc((ProcType)15); val6.procCoefficient = 1f; val6.damageType = (DamageType)32; val6.range = 0f; val6.teamIndex = body.teamComponent.teamIndex; ((Orb)val6).target = damageInfo.attacker.gameObject.GetComponent<CharacterBody>().mainHurtBox; OrbManager.instance.AddOrb((Orb)(object)val6); EffectData val7 = new EffectData { origin = damageInfo.position, rotation = Util.QuaternionSafeLookRotation((damageInfo.force != Vector3.zero) ? damageInfo.force : Random.onUnitSphere) }; EffectManager.SpawnEffect(AssetReferences.bearEffectPrefab, val7, true); } } if (body.HasBuff(Buffs.blindSensesBuff.buffIndex) && !flag && damageInfo.damage > 0f && (Object)(object)component != (Object)(object)body && Util.CheckRoll(StaticValues.blindSensesBlockChance + Util.ConvertAmplificationPercentageIntoReductionPercentage(StaticValues.blindSensesBlockChance * (float)body.inventory.GetItemCount(Items.Bear)), body.master)) { LightningOrb val8 = new LightningOrb(); val8.attacker = ((Component)body).gameObject; val8.bouncedObjects = null; val8.bouncesRemaining = 0; val8.damageCoefficientPerBounce = 1f; val8.damageColorIndex = (DamageColorIndex)3; val8.damageValue = damageInfo.damage * StaticValues.blindSensesDamageCoefficient; val8.isCrit = body.RollCrit(); val8.lightningType = (LightningType)6; ((Orb)val8).origin = body.corePosition; val8.procChainMask = default(ProcChainMask); ((ProcChainMask)(ref val8.procChainMask)).AddProc((ProcType)15); val8.procCoefficient = 1f; val8.damageType = (DamageType)32; val8.range = 0f; val8.teamIndex = body.teamComponent.teamIndex; ((Orb)val8).target = damageInfo.attacker.gameObject.GetComponent<CharacterBody>().mainHurtBox; OrbManager.instance.AddOrb((Orb)(object)val8); damageInfo.rejected = true; EffectData val9 = new EffectData { origin = damageInfo.position, rotation = Util.QuaternionSafeLookRotation((damageInfo.force != Vector3.zero) ? damageInfo.force : Random.onUnitSphere) }; EffectManager.SpawnEffect(AssetReferences.bearEffectPrefab, val9, true); } if (body.HasBuff(Buffs.stoneFormStillBuff.buffIndex) && !flag && damageInfo.damage > 0f && (Object)(object)component != (Object)(object)body) { damageInfo.force = Vector3.zero; if (Util.CheckRoll(30f, body.master)) { if (body.HasBuff(Buffs.blindSensesBuff.buffIndex)) { LightningOrb val10 = new LightningOrb(); val10.attacker = ((Component)body).gameObject; val10.bouncedObjects = null; val10.bouncesRemaining = 0; val10.damageCoefficientPerBounce = 1f; val10.damageColorIndex = (DamageColorIndex)3; val10.damageValue = damageInfo.damage * StaticValues.blindSensesDamageCoefficient; val10.isCrit = body.RollCrit(); val10.lightningType = (LightningType)6; ((Orb)val10).origin = body.corePosition; val10.procChainMask = default(ProcChainMask); ((ProcChainMask)(ref val10.procChainMask)).AddProc((ProcType)15); val10.procCoefficient = 1f; val10.damageType = (DamageType)32; val10.range = 0f; val10.teamIndex = body.teamComponent.teamIndex; ((Orb)val10).target = damageInfo.attacker.gameObject.GetComponent<CharacterBody>().mainHurtBox; OrbManager.instance.AddOrb((Orb)(object)val10); } damageInfo.rejected = true; EffectData val11 = new EffectData { origin = damageInfo.position, rotation = Util.QuaternionSafeLookRotation((damageInfo.force != Vector3.zero) ? damageInfo.force : Random.onUnitSphere) }; EffectManager.SpawnEffect(AssetReferences.bearEffectPrefab, val11, true); } } if (body.HasBuff(Buffs.stonetitanBuff.buffIndex) && !flag && damageInfo.damage > 0f && (Object)(object)component != (Object)(object)body) { if (self.combinedHealthFraction < 0.5f && (damageInfo.damageType & 0x4000000) != 67108864) { damageInfo.force = Vector3.zero; damageInfo.damage -= body.armor; if (damageInfo.damage < 0f) { self.Heal(Mathf.Abs(damageInfo.damage), default(ProcChainMask), true); damageInfo.damage = 0f; } } else { damageInfo.force = Vector3.zero; damageInfo.damage = Mathf.Max(1f, damageInfo.damage - body.armor); } } if (body.HasBuff(Buffs.alphashieldonBuff.buffIndex) && !flag && damageInfo.damage > 0f && (Object)(object)component != (Object)(object)body) { EffectData val12 = new EffectData { origin = damageInfo.position, rotation = Util.QuaternionSafeLookRotation((damageInfo.force != Vector3.zero) ? damageInfo.force : Random.onUnitSphere) }; EffectManager.SpawnEffect(AssetReferences.bearVoidEffectPrefab, val12, true); damageInfo.rejected = true; NetworkingHelpers.ApplyBuff(body, Buffs.alphashieldonBuff.buffIndex, 0, -1f); NetworkingHelpers.ApplyBuff(body, Buffs.alphashieldoffBuff.buffIndex, 10, -1f); } if (body.HasBuff(Buffs.gupspikeBuff.buffIndex) && !flag && damageInfo.damage > 0f && (Object)(object)component != (Object)(object)body) { blastAttack = new BlastAttack(); blastAttack.radius = 6f; blastAttack.procCoefficient = 0.5f; blastAttack.position = ((Component)self).transform.position; blastAttack.attacker = ((Component)self).gameObject; blastAttack.crit = Util.CheckRoll(body.crit, body.master); blastAttack.baseDamage = body.damage * 1.5f; blastAttack.falloffModel = (FalloffModel)0; blastAttack.baseForce = 100f; blastAttack.teamIndex = TeamComponent.GetObjectTeam(((Component)body).gameObject); blastAttack.damageType = (DamageType)1024; blastAttack.attackerFiltering = (AttackerFiltering)2; DamageAPI.AddModdedDamageType(blastAttack, Damage.shiggyDecay); blastAttack.Fire(); EffectManager.SpawnEffect(Assets.GupSpikeEffect, new EffectData { origin = ((Component)self).transform.position, scale = 2f, rotation = Quaternion.LookRotation(((Component)self).transform.position) }, true); } } private void CharacterBody_RecalculateStats(orig_RecalculateStats orig, CharacterBody self) { //IL_019f: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Expected O, but got Unknown //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_01d7: Unknown result type (might be due to invalid IL or missing references) //IL_01de: Unknown result type (might be due to invalid IL or missing references) //IL_01e3: Unknown result type (might be due to invalid IL or missing references) //IL_01eb: Unknown result type (might be due to invalid IL or missing references) //IL_020c: Unknown result type (might be due to invalid IL or missing references) //IL_0224: Unknown result type (might be due to invalid IL or missing references) if (!Object.op_Implicit((Object)(object)((self != null) ? self.healthComponent : null))) { return; } orig.Invoke(self); if (self.HasBuff(Buffs.wildcardDamageBuff)) { self.damage *= StaticValues.wildcardDamageCoefficient; } if (self.HasBuff(Buffs.wildcardSpeedBuff)) { self.moveSpeed *= StaticValues.wildcardSpeedCoefficient; } if (self.HasBuff(Buffs.wildcardSlowBuff)) { self.moveSpeed /= StaticValues.wildcardSpeedCoefficient; } if (self.HasBuff(Buffs.theWorldDebuff)) { self.attackSpeed *= 0f; self.moveSpeed *= 0f; } if (self.HasBuff(Buffs.limitBreakBuff)) { self.damage *= StaticValues.limitBreakCoefficient; } if (self.HasBuff(Buffs.grovetenderChainDebuff)) { self.moveSpeed *= 0f; } if (self.HasBuff(Buffs.decayDebuff)) { float num = self.GetBuffCount(Buffs.decayDebuff); self.attackSpeed *= Mathf.Pow(0.96f, num); self.moveSpeed *= Mathf.Pow(0.96f, num); if (num >= 100f && NetworkServer.active && Object.op_Implicit((Object)(object)self.healthComponent)) { DamageInfo val = new DamageInfo(); val.damage = self.healthComponent.fullCombinedHealth + self.healthComponent.fullBarrier + 1f; val.position = self.transform.position; val.force = Vector3.zero; val.damageColorIndex = (DamageColorIndex)0; val.crit = true; val.attacker = null; val.inflictor = null; val.damageType = (DamageType)16; val.procCoefficient = 0f; val.procChainMask = default(ProcChainMask); self.healthComponent.TakeDamage(val); } } } private void CharacterModel_Awake(orig_Awake orig, CharacterModel self) { //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Expected O, but got Unknown //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Expected O, but got Unknown orig.Invoke(self); if (!((Object)((Component)self).gameObject).name.Contains("ShiggyDisplay")) { return; } bool flag = false; foreach (Transform item in ((Component)self).gameObject.transform.parent.parent) { Transform val = item; foreach (Transform item2 in val) { Transform val2 = item2; if (((Object)((Component)val2).gameObject).name.Contains("DekuDisplay")) { flag = true; } } } if (flag) { if (Config.allowVoice.Value) { AkSoundEngine.PostEvent("ShiggyDekuCollab", ((Component)self).gameObject); } } else if (Config.allowVoice.Value) { AkSoundEngine.PostEvent(1896314350u, ((Component)self).gameObject); } } private void CharacterModel_UpdateOverlays(orig_UpdateOverlays orig, CharacterModel self) { orig.Invoke(self); if (Object.op_Implicit((Object)(object)self) && Object.op_Implicit((Object)(object)self.body)) { OverlayFunction(Assets.alphaconstructShieldBuffMat, self.body.HasBuff(Buffs.alphashieldonBuff), self); OverlayFunction(Assets.multiplierShieldBuffMat, self.body.HasBuff(Buffs.multiplierBuff), self); OverlayFunction(Assets.limitBreakBuffMat, self.body.HasBuff(Buffs.limitBreakBuff), self); OverlayFunction(Assets.voidFormBuffMat, self.body.HasBuff(Buffs.voidFormBuff), self); OverlayFunction(Assets.voidFormBuffMat, self.body.HasBuff(Buffs.decayDebuff), self); OverlayFunction(BlinkState.destealthMaterial, self.body.HasBuff(Buffs.deathAuraBuff), self); OverlayFunction(Assets.deathAuraBuffMat, self.body.HasBuff(Buffs.deathAuraDebuff), self); OverlayFunction(BlinkState.destealthMaterial, self.body.HasBuff(Buffs.darknessFormBuff), self); OverlayFunction(Assets.lightFormBuffMat, self.body.HasBuff(Buffs.lightFormBuff), self); OverlayFunction(Assets.lightAndDarknessMat, self.body.HasBuff(Buffs.lightAndDarknessFormBuff), self); OverlayFunction(Assets.blastingZoneBurnMat, self.body.HasBuff(Buffs.blastingZoneBurnDebuff), self); } } private void OverlayFunction(Material overlayMaterial, bool condition, CharacterModel model) { if (model.activeOverlayCount < CharacterModel.maxOverlays && condition) { Material[] currentOverlays = model.currentOverlays; int activeOverlayCount = model.activeOverlayCount; model.activeOverlayCount = activeOverlayCount + 1; currentOverlays[activeOverlayCount] = overlayMaterial; } } } } namespace ShiggyMod.SkillStates { public class BeetleQueenSummon : BaseSkillState { public float baseDuration = 1f; public float duration; public ShiggyController Shiggycon; private int randomSurvivor; public override void OnEnter() { //IL_0009: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Unknown result type (might be due to invalid IL or missing references) ((BaseState)this).OnEnter(); Ray aimRay = ((BaseState)this).GetAimRay(); duration = baseDuration / ((BaseState)this).attackSpeedStat; ((EntityState)this).characterBody.SetAimTimer(duration); Shiggycon = ((EntityState)this).gameObject.GetComponent<ShiggyController>(); i