Decompiled source of ShigarakiMod v2.3.0
ShiggyMod.dll
Decompiled 3 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.1", FrameworkDisplayName = ".NET Standard 2.1")] [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.3.0")] 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.3.0"; 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; ShiggyAsset.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_015b: Unknown result type (might be due to invalid IL or missing references) //IL_0160: Unknown result type (might be due to invalid IL or missing references) //IL_0164: 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_0046: Unknown result type (might be due to invalid IL or missing references) //IL_004b: 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_0077: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_0081: 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_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: 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_0115: 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_0124: 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_014c: 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 |= DamageTypeCombo.op_Implicit((DamageType)4096); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.impbossBuff)) { self.damageType |= DamageTypeCombo.op_Implicit((DamageType)1024); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionFireBuff)) { self.damageType |= DamageTypeCombo.op_Implicit((DamageType)128); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionFreezeBuff)) { self.damageType |= DamageTypeCombo.op_Implicit((DamageType)256); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionShockBuff)) { self.damageType |= DamageTypeCombo.op_Implicit((DamageType)16777216); } 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_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0053: 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_007f: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: 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_00e5: Unknown result type (might be due to invalid IL or missing references) //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: 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_011d: 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) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_0131: Unknown result type (might be due to invalid IL or missing references) //IL_0154: 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 |= DamageTypeCombo.op_Implicit((DamageType)4096); } if (owner.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.impbossBuff)) { self.damageType |= DamageTypeCombo.op_Implicit((DamageType)1024); } if (owner.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionFireBuff)) { self.damageType |= DamageTypeCombo.op_Implicit((DamageType)128); } if (owner.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionFreezeBuff)) { self.damageType |= DamageTypeCombo.op_Implicit((DamageType)256); } if (owner.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionShockBuff)) { self.damageType |= DamageTypeCombo.op_Implicit((DamageType)16777216); } 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_0072: 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_00aa: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_010b: Unknown result type (might be due to invalid IL or missing references) //IL_0115: Unknown result type (might be due to invalid IL or missing references) //IL_011a: 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_0143: 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) //IL_0152: Unknown result type (might be due to invalid IL or missing references) //IL_0157: 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) 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 |= DamageTypeCombo.op_Implicit((DamageType)4096); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.impbossBuff)) { self.damageType |= DamageTypeCombo.op_Implicit((DamageType)1024); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionFireBuff)) { self.damageType |= DamageTypeCombo.op_Implicit((DamageType)128); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionFreezeBuff)) { self.damageType |= DamageTypeCombo.op_Implicit((DamageType)256); } if (attacker.gameObject.GetComponent<CharacterBody>().HasBuff(Buffs.elementalFusionShockBuff)) { self.damageType |= DamageTypeCombo.op_Implicit((DamageType)16777216); } 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(ShiggyAsset.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_0054: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: 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_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Invalid comparison between Unknown and I4 //IL_0145: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Invalid comparison between Unknown and I4 //IL_010c: 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_0186: Expected O, but got Unknown //IL_019c: Unknown result type (might be due to invalid IL or missing references) //IL_01a1: Unknown result type (might be due to invalid IL or missing references) //IL_01a8: Unknown result type (might be due to invalid IL or missing references) //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01c1: 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_01f0: Unknown result type (might be due to invalid IL or missing references) //IL_01fc: 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_03e6: Unknown result type (might be due to invalid IL or missing references) //IL_03eb: Unknown result type (might be due to invalid IL or missing references) //IL_03f0: Unknown result type (might be due to invalid IL or missing references) //IL_03fa: Invalid comparison between Unknown and I4 //IL_0449: Unknown result type (might be due to invalid IL or missing references) //IL_0453: Unknown result type (might be due to invalid IL or missing references) //IL_0458: Unknown result type (might be due to invalid IL or missing references) //IL_045d: Unknown result type (might be due to invalid IL or missing references) //IL_0467: Invalid comparison between Unknown and I4 //IL_026e: Unknown result type (might be due to invalid IL or missing references) //IL_0285: Unknown result type (might be due to invalid IL or missing references) //IL_029d: Unknown result type (might be due to invalid IL or missing references) //IL_05a2: Unknown result type (might be due to invalid IL or missing references) //IL_05ac: Unknown result type (might be due to invalid IL or missing references) //IL_05b1: Unknown result type (might be due to invalid IL or missing references) //IL_05b6: Unknown result type (might be due to invalid IL or missing references) //IL_05c0: Invalid comparison between Unknown and I4 //IL_040b: Unknown result type (might be due to invalid IL or missing references) //IL_0415: 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_041f: Unknown result type (might be due to invalid IL or missing references) //IL_030b: Unknown result type (might be due to invalid IL or missing references) //IL_0310: Unknown result type (might be due to invalid IL or missing references) //IL_0317: Unknown result type (might be due to invalid IL or missing references) //IL_0323: Unknown result type (might be due to invalid IL or missing references) //IL_032a: 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_035a: Unknown result type (might be due to invalid IL or missing references) //IL_035d: Unknown result type (might be due to invalid IL or missing references) //IL_0362: Unknown result type (might be due to invalid IL or missing references) //IL_0367: Unknown result type (might be due to invalid IL or missing references) //IL_0369: Unknown result type (might be due to invalid IL or missing references) //IL_036e: Unknown result type (might be due to invalid IL or missing references) //IL_0379: Unknown result type (might be due to invalid IL or missing references) //IL_0380: Unknown result type (might be due to invalid IL or missing references) //IL_0385: Unknown result type (might be due to invalid IL or missing references) //IL_038a: Unknown result type (might be due to invalid IL or missing references) //IL_03a2: Unknown result type (might be due to invalid IL or missing references) //IL_03ad: Unknown result type (might be due to invalid IL or missing references) //IL_03af: Unknown result type (might be due to invalid IL or missing references) //IL_03b4: 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_02d9: Unknown result type (might be due to invalid IL or missing references) //IL_02e0: Unknown result type (might be due to invalid IL or missing references) //IL_02eb: Unknown result type (might be due to invalid IL or missing references) //IL_0309: Expected O, but got Unknown //IL_080f: Unknown result type (might be due to invalid IL or missing references) //IL_0819: Unknown result type (might be due to invalid IL or missing references) //IL_081e: Unknown result type (might be due to invalid IL or missing references) //IL_0823: Unknown result type (might be due to invalid IL or missing references) //IL_082d: Invalid comparison between Unknown and I4 //IL_048b: Unknown result type (might be due to invalid IL or missing references) //IL_0490: Unknown result type (might be due to invalid IL or missing references) //IL_0497: Unknown result type (might be due to invalid IL or missing references) //IL_04a2: Unknown result type (might be due to invalid IL or missing references) //IL_04ad: 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_04b4: Unknown result type (might be due to invalid IL or missing references) //IL_04b9: Unknown result type (might be due to invalid IL or missing references) //IL_04c4: Expected O, but got Unknown //IL_04c5: Unknown result type (might be due to invalid IL or missing references) //IL_04ca: Unknown result type (might be due to invalid IL or missing references) //IL_04d1: Unknown result type (might be due to invalid IL or missing references) //IL_04dd: Unknown result type (might be due to invalid IL or missing references) //IL_04e4: Unknown result type (might be due to invalid IL or missing references) //IL_04e9: Unknown result type (might be due to invalid IL or missing references) //IL_04ee: Unknown result type (might be due to invalid IL or missing references) //IL_04f0: 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_0507: Unknown result type (might be due to invalid IL or missing references) //IL_0509: Unknown result type (might be due to invalid IL or missing references) //IL_050e: Unknown result type (might be due to invalid IL or missing references) //IL_0513: Unknown result type (might be due to invalid IL or missing references) //IL_0515: Unknown result type (might be due to invalid IL or missing references) //IL_051a: Unknown result type (might be due to invalid IL or missing references) //IL_0525: Unknown result type (might be due to invalid IL or missing references) //IL_0527: Unknown result type (might be due to invalid IL or missing references) //IL_052c: Unknown result type (might be due to invalid IL or missing references) //IL_0531: Unknown result type (might be due to invalid IL or missing references) //IL_0538: Unknown result type (might be due to invalid IL or missing references) //IL_053d: Unknown result type (might be due to invalid IL or missing references) //IL_0542: Unknown result type (might be due to invalid IL or missing references) //IL_054d: Unknown result type (might be due to invalid IL or missing references) //IL_0558: Unknown result type (might be due to invalid IL or missing references) //IL_055a: Unknown result type (might be due to invalid IL or missing references) //IL_055f: Unknown result type (might be due to invalid IL or missing references) //IL_09a5: Unknown result type (might be due to invalid IL or missing references) //IL_09af: Unknown result type (might be due to invalid IL or missing references) //IL_09b4: Unknown result type (might be due to invalid IL or missing references) //IL_09b9: Unknown result type (might be due to invalid IL or missing references) //IL_09c3: Invalid comparison between Unknown and I4 //IL_0c78: Unknown result type (might be due to invalid IL or missing references) //IL_0c82: Unknown result type (might be due to invalid IL or missing references) //IL_0c87: 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_0c96: Invalid comparison between Unknown and I4 //IL_05ff: Unknown result type (might be due to invalid IL or missing references) //IL_0d7e: Unknown result type (might be due to invalid IL or missing references) //IL_0d88: Unknown result type (might be due to invalid IL or missing references) //IL_0d8d: Unknown result type (might be due to invalid IL or missing references) //IL_0d92: Unknown result type (might be due to invalid IL or missing references) //IL_0d9c: Invalid comparison between Unknown and I4 //IL_086b: 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_0e08: Unknown result type (might be due to invalid IL or missing references) //IL_0e0d: Unknown result type (might be due to invalid IL or missing references) //IL_0e12: Unknown result type (might be due to invalid IL or missing references) //IL_0e1c: Invalid comparison between Unknown and I4 //IL_0cb2: Unknown result type (might be due to invalid IL or missing references) //IL_0cb7: Unknown result type (might be due to invalid IL or missing references) //IL_0cb9: Unknown result type (might be due to invalid IL or missing references) //IL_0cbe: Unknown result type (might be due to invalid IL or missing references) //IL_0cc3: Unknown result type (might be due to invalid IL or missing references) //IL_0cd5: Unknown result type (might be due to invalid IL or missing references) //IL_0cdc: Unknown result type (might be due to invalid IL or missing references) //IL_0ce1: Unknown result type (might be due to invalid IL or missing references) //IL_0ce6: Unknown result type (might be due to invalid IL or missing references) //IL_0cf2: Unknown result type (might be due to invalid IL or missing references) //IL_0cf4: Unknown result type (might be due to invalid IL or missing references) //IL_0cf9: Unknown result type (might be due to invalid IL or missing references) //IL_0d04: Unknown result type (might be due to invalid IL or missing references) //IL_0d06: Unknown result type (might be due to invalid IL or missing references) //IL_0d0b: Unknown result type (might be due to invalid IL or missing references) //IL_0d18: Expected O, but got Unknown //IL_0a01: 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_0940: Unknown result type (might be due to invalid IL or missing references) //IL_0956: Unknown result type (might be due to invalid IL or missing references) //IL_095b: Unknown result type (might be due to invalid IL or missing references) //IL_0962: Unknown result type (might be due to invalid IL or missing references) //IL_096d: Unknown result type (might be due to invalid IL or missing references) //IL_097e: Expected O, but got Unknown //IL_08a7: Unknown result type (might be due to invalid IL or missing references) //IL_08c1: Unknown result type (might be due to invalid IL or missing references) //IL_08d7: Unknown result type (might be due to invalid IL or missing references) //IL_08dc: Unknown result type (might be due to invalid IL or missing references) //IL_08e3: 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_08ff: Expected O, but got Unknown //IL_0e7e: Unknown result type (might be due to invalid IL or missing references) //IL_0e88: Unknown result type (might be due to invalid IL or missing references) //IL_0e8d: Unknown result type (might be due to invalid IL or missing references) //IL_0e92: Unknown result type (might be due to invalid IL or missing references) //IL_0e9c: Invalid comparison between Unknown and I4 //IL_0dc8: 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_0a33: Unknown result type (might be due to invalid IL or missing references) //IL_0ef5: Unknown result type (might be due to invalid IL or missing references) //IL_0eff: Unknown result type (might be due to invalid IL or missing references) //IL_0f04: Unknown result type (might be due to invalid IL or missing references) //IL_0f09: Unknown result type (might be due to invalid IL or missing references) //IL_0f13: Invalid comparison between Unknown and I4 //IL_0e48: Unknown result type (might be due to invalid IL or missing references) //IL_0bb0: Unknown result type (might be due to invalid IL or missing references) //IL_0bb5: Unknown result type (might be due to invalid IL or missing references) //IL_0bbc: Unknown result type (might be due to invalid IL or missing references) //IL_0bc8: Unknown result type (might be due to invalid IL or missing references) //IL_0bcf: Unknown result type (might be due to invalid IL or missing references) //IL_0bd4: Unknown result type (might be due to invalid IL or missing references) //IL_0bd9: Unknown result type (might be due to invalid IL or missing references) //IL_0bdb: Unknown result type (might be due to invalid IL or missing references) //IL_0be0: Unknown result type (might be due to invalid IL or missing references) //IL_0bf2: 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_0bfa: Unknown result type (might be due to invalid IL or missing references) //IL_0bff: 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_0c06: Unknown result type (might be due to invalid IL or missing references) //IL_0c11: Unknown result type (might be due to invalid IL or missing references) //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_0c22: Unknown result type (might be due to invalid IL or missing references) //IL_0c3a: Unknown result type (might be due to invalid IL or missing references) //IL_0c45: 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_0b79: Unknown result type (might be due to invalid IL or missing references) //IL_0b7e: 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_0b90: Unknown result type (might be due to invalid IL or missing references) //IL_0bae: Expected O, but got Unknown //IL_0a91: Unknown result type (might be due to invalid IL or missing references) //IL_0a96: Unknown result type (might be due to invalid IL or missing references) //IL_0a9d: Unknown result type (might be due to invalid IL or missing references) //IL_0aa9: Unknown result type (might be due to invalid IL or missing references) //IL_0ab0: Unknown result type (might be due to invalid IL or missing references) //IL_0ab5: Unknown result type (might be due to invalid IL or missing references) //IL_0aba: Unknown result type (might be due to invalid IL or missing references) //IL_0abc: Unknown result type (might be due to invalid IL or missing references) //IL_0ac1: Unknown result type (might be due to invalid IL or missing references) //IL_0ad3: Unknown result type (might be due to invalid IL or missing references) //IL_0ad6: 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_0ae0: 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_0ae7: 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_0af9: 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_0b03: Unknown result type (might be due to invalid IL or missing references) //IL_0b1b: Unknown result type (might be due to invalid IL or missing references) //IL_0b26: Unknown result type (might be due to invalid IL or missing references) //IL_0b28: Unknown result type (might be due to invalid IL or missing references) //IL_0b2d: Unknown result type (might be due to invalid IL or missing references) //IL_0a5a: Unknown result type (might be due to invalid IL or missing references) //IL_0a5f: Unknown result type (might be due to invalid IL or missing references) //IL_0a66: Unknown result type (might be due to invalid IL or missing references) //IL_0a71: Unknown result type (might be due to invalid IL or missing references) //IL_0a8f: Expected O, but got Unknown //IL_0650: Unknown result type (might be due to invalid IL or missing references) //IL_0667: 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_0694: Unknown result type (might be due to invalid IL or missing references) //IL_0699: Unknown result type (might be due to invalid IL or missing references) //IL_069b: Unknown result type (might be due to invalid IL or missing references) //IL_06a6: Unknown result type (might be due to invalid IL or missing references) //IL_06b1: Unknown result type (might be due to invalid IL or missing references) //IL_06b2: Unknown result type (might be due to invalid IL or missing references) //IL_06b7: Unknown result type (might be due to invalid IL or missing references) //IL_06c2: Expected O, but got Unknown //IL_0f78: Unknown result type (might be due to invalid IL or missing references) //IL_0f82: Unknown result type (might be due to invalid IL or missing references) //IL_0f87: Unknown result type (might be due to invalid IL or missing references) //IL_0f8c: Unknown result type (might be due to invalid IL or missing references) //IL_0f96: Invalid comparison between Unknown and I4 //IL_0eb6: Unknown result type (might be due to invalid IL or missing references) //IL_0ec2: Unknown result type (might be due to invalid IL or missing references) //IL_06e4: Unknown result type (might be due to invalid IL or missing references) //IL_06fb: Unknown result type (might be due to invalid IL or missing references) //IL_0712: Unknown result type (might be due to invalid IL or missing references) //IL_0728: Unknown result type (might be due to invalid IL or missing references) //IL_072d: Unknown result type (might be due to invalid IL or missing references) //IL_072f: Unknown result type (might be due to invalid IL or missing references) //IL_073a: Unknown result type (might be due to invalid IL or missing references) //IL_0745: Unknown result type (might be due to invalid IL or missing references) //IL_0746: Unknown result type (might be due to invalid IL or missing references) //IL_074b: Unknown result type (might be due to invalid IL or missing references) //IL_0756: Expected O, but got Unknown //IL_1025: Unknown result type (might be due to invalid IL or missing references) //IL_102f: Unknown result type (might be due to invalid IL or missing references) //IL_1034: Unknown result type (might be due to invalid IL or missing references) //IL_1039: Unknown result type (might be due to invalid IL or missing references) //IL_1043: Invalid comparison between Unknown and I4 //IL_0f3f: Unknown result type (might be due to invalid IL or missing references) //IL_0775: Unknown result type (might be due to invalid IL or missing references) //IL_078c: Unknown result type (might be due to invalid IL or missing references) //IL_07a3: Unknown result type (might be due to invalid IL or missing references) //IL_07b9: Unknown result type (might be due to invalid IL or missing references) //IL_07be: Unknown result type (might be due to invalid IL or missing references) //IL_07c0: Unknown result type (might be due to invalid IL or missing references) //IL_07cb: Unknown result type (might be due to invalid IL or missing references) //IL_07d6: Unknown result type (might be due to invalid IL or missing references) //IL_07d7: Unknown result type (might be due to invalid IL or missing references) //IL_07dc: Unknown result type (might be due to invalid IL or missing references) //IL_07e7: Expected O, but got Unknown //IL_0fbd: Unknown result type (might be due to invalid IL or missing references) //IL_0fc3: Unknown result type (might be due to invalid IL or missing references) //IL_0fc8: Unknown result type (might be due to invalid IL or missing references) //IL_1053: 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 |= DamageTypeCombo.op_Implicit((DamageType)1024); } if (component.HasBuff(Buffs.acridBuff)) { damageInfo.damageType |= DamageTypeCombo.op_Implicit((DamageType)4096); } if (component.HasBuff(Buffs.decayAwakenedBuff)) { DamageAPI.AddModdedDamageType(damageInfo, Damage.shiggyDecay); } if (component.HasBuff(Buffs.finalReleaseBuff) && damageInfo.damage > 0f && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 67108864) { int buffCount = component.GetBuffCount(Buffs.finalReleaseBuff); NetworkingHelpers.ApplyBuff(component, Buffs.finalReleaseBuff.buffIndex, buffCount + 1, -1f); } if (component.HasBuff(Buffs.commandoBuff) && damageInfo.damage > 0f && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 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 = DamageTypeCombo.op_Implicit((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 && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 67108864) { damageInfo.damageType |= DamageTypeCombo.op_Implicit((DamageType)512); } if (component.HasBuff(Buffs.greaterwispBuff) && damageInfo.damage > 0f && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 67108864 && damageInfo.procCoefficient != 0f) { EffectManager.SpawnEffect(ShiggyAsset.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 && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 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(ShiggyAsset.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(ShiggyAsset.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(ShiggyAsset.artificerLightningMuzzleEffect, new EffectData { origin = component.corePosition, scale = 1f, rotation = Quaternion.identity }, false); } } } if (component.HasBuff(Buffs.omniboostBuff) && damageInfo.damage > 0f && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 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 && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 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 = DamageTypeCombo.op_Implicit((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 = DamageTypeCombo.op_Implicit((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 && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 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 && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 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 && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 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 && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 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 && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 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 && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 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 && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 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, ShiggyAsset.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_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Invalid comparison between Unknown and I4 //IL_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Invalid comparison between Unknown and I4 //IL_0228: 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_011d: Unknown result type (might be due to invalid IL or missing references) //IL_0122: 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) //IL_0131: Invalid comparison between Unknown and I4 //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_0493: 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_04a2: Invalid comparison between Unknown and I4 //IL_028b: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Unknown result type (might be due to invalid IL or missing references) //IL_02e7: 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_0304: Unknown result type (might be due to invalid IL or missing references) //IL_0309: Unknown result type (might be due to invalid IL or missing references) //IL_030a: Unknown result type (might be due to invalid IL or missing references) //IL_0312: Unknown result type (might be due to invalid IL or missing references) //IL_031d: Unknown result type (might be due to invalid IL or missing references) //IL_0324: Unknown result type (might be due to invalid IL or missing references) //IL_0329: Unknown result type (might be due to invalid IL or missing references) //IL_032e: Unknown result type (might be due to invalid IL or missing references) //IL_0339: Expected O, but got Unknown //IL_03b4: Unknown result type (might be due to invalid IL or missing references) //IL_03b9: Unknown result type (might be due to invalid IL or missing references) //IL_03c5: Unknown result type (might be due to invalid IL or missing references) //IL_03d7: Unknown result type (might be due to invalid IL or missing references) //IL_03e2: Unknown result type (might be due to invalid IL or missing references) //IL_03e3: 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_03ef: Unknown result type (might be due to invalid IL or missing references) //IL_03f4: 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_0413: Unknown result type (might be due to invalid IL or missing references) //IL_0415: 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_0426: Unknown result type (might be due to invalid IL or missing references) //IL_0427: Unknown result type (might be due to invalid IL or missing references) //IL_0429: 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_0434: Unknown result type (might be due to invalid IL or missing references) //IL_043a: Unknown result type (might be due to invalid IL or missing references) //IL_0445: Unknown result type (might be due to invalid IL or missing references) //IL_0450: 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_045e: Unknown result type (might be due to invalid IL or missing references) //IL_0463: Unknown result type (might be due to invalid IL or missing references) //IL_0468: Unknown result type (might be due to invalid IL or missing references) //IL_046e: Unknown result type (might be due to invalid IL or missing references) //IL_0473: Unknown result type (might be due to invalid IL or missing references) //IL_0478: Unknown result type (might be due to invalid IL or missing references) //IL_035a: Unknown result type (might be due to invalid IL or missing references) //IL_0364: Expected O, but got Unknown //IL_0578: 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_01df: Unknown result type (might be due to invalid IL or missing references) //IL_0616: Unknown result type (might be due to invalid IL or missing references) //IL_061c: Unknown result type (might be due to invalid IL or missing references) //IL_0621: Unknown result type (might be due to invalid IL or missing references) //IL_0626: Unknown result type (might be due to invalid IL or missing references) //IL_062c: Invalid comparison between Unknown and I4 //IL_0636: Unknown result type (might be due to invalid IL or missing references) //IL_059b: Unknown result type (might be due to invalid IL or missing references) //IL_05ce: Unknown result type (might be due to invalid IL or missing references) //IL_05d3: Unknown result type (might be due to invalid IL or missing references) //IL_0565: Unknown result type (might be due to invalid IL or missing references) //IL_056a: Unknown result type (might be due to invalid IL or missing references) //IL_066a: Unknown result type (might be due to invalid IL or missing references) //IL_0694: Unknown result type (might be due to invalid IL or missing references) //IL_06f2: Unknown result type (might be due to invalid IL or missing references) //IL_06f9: Expected O, but got Unknown //IL_0719: Unknown result type (might be due to invalid IL or missing references) //IL_071e: Unknown result type (might be due to invalid IL or missing references) //IL_0725: Unknown result type (might be due to invalid IL or missing references) //IL_072a: Unknown result type (might be due to invalid IL or missing references) //IL_0732: Unknown result type (might be due to invalid IL or missing references) //IL_074f: Unknown result type (might be due to invalid IL or missing references) //IL_0754: Unknown result type (might be due to invalid IL or missing references) //IL_076c: Unknown result type (might be due to invalid IL or missing references) //IL_0780: Unknown result type (might be due to invalid IL or missing references) //IL_0785: Unknown result type (might be due to invalid IL or missing references) //IL_0787: Unknown result type (might be due to invalid IL or missing references) //IL_0792: Unknown result type (might be due to invalid IL or missing references) //IL_0793: Unknown result type (might be due to invalid IL or missing references) //IL_0798: Unknown result type (might be due to invalid IL or missing references) //IL_079f: Expected O, but got Unknown //IL_07ad: Unknown result type (might be due to invalid IL or missing references) //IL_07b2: Unknown result type (might be due to invalid IL or missing references) //IL_07be: Unknown result type (might be due to invalid IL or missing references) //IL_07c9: Unknown result type (might be due to invalid IL or missing references) //IL_07ca: Unknown result type (might be due to invalid IL or missing references) //IL_07cf: Unknown result type (might be due to invalid IL or missing references) //IL_07d6: Expected O, but got Unknown //IL_099e: Unknown result type (might be due to invalid IL or missing references) //IL_0818: Unknown result type (might be due to invalid IL or missing references) //IL_0823: Unknown result type (might be due to invalid IL or missing references) //IL_0835: Unknown result type (might be due to invalid IL or missing references) //IL_083a: Unknown result type (might be due to invalid IL or missing references) //IL_084c: Unknown result type (might be due to invalid IL or missing references) //IL_0860: Unknown result type (might be due to invalid IL or missing references) //IL_0867: Expected O, but got Unknown //IL_0893: Unknown result type (might be due to invalid IL or missing references) //IL_08bb: Unknown result type (might be due to invalid IL or missing references) //IL_08c3: Unknown result type (might be due to invalid IL or missing references) //IL_08c8: Unknown result type (might be due to invalid IL or missing references) //IL_08d4: 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_08fe: Unknown result type (might be due to invalid IL or missing references) //IL_0917: Unknown result type (might be due to invalid IL or missing references) //IL_091c: Unknown result type (might be due to invalid IL or missing references) //IL_094a: Unknown result type (might be due to invalid IL or missing references) //IL_094f: Unknown result type (might be due to invalid IL or missing references) //IL_0951: Unknown result type (might be due to invalid IL or missing references) //IL_095c: Unknown result type (might be due to invalid IL or missing references) //IL_095e: Unknown result type (might be due to invalid IL or missing references) //IL_0963: Unknown result type (might be due to invalid IL or missing references) //IL_0977: Unknown result type (might be due to invalid IL or missing references) //IL_096f: Unknown result type (might be due to invalid IL or missing references) //IL_0b4b: Unknown result type (might be due to invalid IL or missing references) //IL_097c: Unknown result type (might be due to invalid IL or missing references) //IL_0981: Unknown result type (might be due to invalid IL or missing references) //IL_0988: Expected O, but got Unknown //IL_0a06: Unknown result type (might be due to invalid IL or missing references) //IL_0a0d: Expected O, but got Unknown //IL_0a39: Unknown result type (might be due to invalid IL or missing references) //IL_0a61: Unknown result type (might be due to invalid IL or missing references) //IL_0a69: Unknown result type (might be due to invalid IL or missing references) //IL_0a6e: Unknown result type (might be due to invalid IL or missing references) //IL_0a7a: 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_0aa4: Unknown result type (might be due to invalid IL or missing references) //IL_0abd: Unknown result type (might be due to invalid IL or missing references) //IL_0ac2: 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_0afc: 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_0b0b: Unknown result type (might be due to invalid IL or missing references) //IL_0b10: Unknown result type (might be due to invalid IL or missing references) //IL_0b24: Unknown result type (might be due to invalid IL or missing references) //IL_0b1c: Unknown result type (might be due to invalid IL or missing references) //IL_0d01: Unknown result type (might be due to invalid IL or missing references) //IL_0b7d: Unknown result type (might be due to invalid IL or missing references) //IL_0b82: 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: Expected O, but got Unknown //IL_0ba7: Unknown result type (might be due to invalid IL or missing references) //IL_0cad: Unknown result type (might be due to invalid IL or missing references) //IL_0cb2: Unknown result type (might be due to invalid IL or missing references) //IL_0cb4: Unknown result type (might be due to invalid IL or missing references) //IL_0cbf: Unknown result type (might be due to invalid IL or missing references) //IL_0cc1: Unknown result type (might be due to invalid IL or missing references) //IL_0cc6: 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_0bc2: Expected O, but got Unknown //IL_0bee: Unknown result type (might be due to invalid IL or missing references) //IL_0c16: Unknown result type (might be due to invalid IL or missing references) //IL_0c1e: Unknown result type (might be due to invalid IL or missing references) //IL_0c23: Unknown result type (might be due to invalid IL or missing references) //IL_0c2f: Unknown result type (might be due to invalid IL or missing references) //IL_0c54: Unknown result type (might be due to invalid IL or missing references) //IL_0c59: Unknown result type (might be due to invalid IL or missing references) //IL_0c72: Unknown result type (might be due to invalid IL or missing references) //IL_0c77: Unknown result type (might be due to invalid IL or missing references) //IL_0dfc: Unknown result type (might be due to invalid IL or missing references) //IL_0cda: Unknown result type (might be due to invalid IL or missing references) //IL_0cd2: Unknown result type (might be due to invalid IL or missing references) //IL_0d40: Unknown result type (might be due to invalid IL or missing references) //IL_0d4a: Unknown result type (might be due to invalid IL or missing references) //IL_0d4f: Unknown result type (might be due to invalid IL or missing references) //IL_0d54: Unknown result type (might be due to invalid IL or missing references) //IL_0d5e: Invalid comparison between Unknown and I4 //IL_0cdf: 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_0ceb: Expected O, but got Unknown //IL_0eb6: Unknown result type (might be due to invalid IL or missing references) //IL_0e2d: Unknown result type (might be due to invalid IL or missing references) //IL_0e32: Unknown result type (might be due to invalid IL or missing references) //IL_0e34: Unknown result type (might be due to invalid IL or missing references) //IL_0e3f: Unknown result type (might be due to invalid IL or missing references) //IL_0e41: Unknown result type (might be due to invalid IL or missing references) //IL_0e46: Unknown result type (might be due to invalid IL or missing references) //IL_0dcd: 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_0d6e: Unknown result type (might be due to invalid IL or missing references) //IL_0d73: Unknown result type (might be due to invalid IL or missing references) //IL_0e5a: Unknown result type (might be due to invalid IL or missing references) //IL_0e52: Unknown result type (might be due to invalid IL or missing references) //IL_0dad: Unknown result type (might be due to invalid IL or missing references) //IL_0db3: Unknown result type (might be due to invalid IL or missing references) //IL_0e5f: Unknown result type (might be due to invalid IL or missing references) //IL_0e64: Unknown result type (might be due to invalid IL or missing references) //IL_0e6b: Expected O, but got Unknown //IL_0e86: Unknown result type (might be due to invalid IL or missing references) //IL_0e9d: 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_0ef2: Expected O, but got Unknown //IL_0f1e: Unknown result type (might be due to invalid IL or missing references) //IL_0f23: Unknown result type (might be due to invalid IL or missing references) //IL_0f73: Unknown result type (might be due to invalid IL or missing references) //IL_0f94: Unknown result type (might be due to invalid IL or missing references) //IL_0f99: Unknown result type (might be due to invalid IL or missing references) //IL_0fa9: Unknown result type (might be due to invalid IL or missing references) //IL_0fae: Unknown result type (might be due to invalid IL or missing references) //IL_0fba: Unknown result type (might be due to invalid IL or missing references) //IL_0fc5: Unknown result type (might be due to invalid IL or missing references) //IL_0fd6: Unknown result type (might be due to invalid IL or missing references) //IL_0fe1: Unknown result type (might be due to invalid IL or missing references) //IL_0fe6: Unknown result type (might be due to invalid IL or missing references) //IL_0fed: Unknown result type (might be due to invalid IL or missing references) //IL_0ff8: Unknown result type (might be due to invalid IL or missing references) //IL_1003: Unknown result type (might be due to invalid IL or missing references) //IL_100a: Unknown result type (might be due to invalid IL or missing references) //IL_100f: Unknown result type (might be due to invalid IL or missing references) //IL_1014: Unknown result type (might be due to invalid IL or missing references) //IL_101f: 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)DamageTypeCombo.op_Implicit(damageInfo.damageType) == 67108864) { damageInfo.damage *= 1f + (float)body.GetBuffCount(Buffs.deathAuraDebuff) * StaticValues.deathAuraDebuffCoefficient; } if (component.HasBuff(Buffs.deathAuraBuff) && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType) == 67108864) { damageInfo.damage *= 1f + (float)component.GetBuffCount(Buffs.deathAuraBuff) * StaticValues.deathAuraBuffCoefficient; } if (component.HasBuff(Buffs.multiplierBuff) && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 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)) { TemporaryOverlayInstance val = TemporaryOverlayManager.AddOverlay(new GameObject()); val.duration = 3f; val.animateShaderAlpha = true; val.alphaCurve = AnimationCurve.EaseInOut(0f, 1f, 1f, 0f); val.destroyComponentOnEnd = true; val.originalMaterial = LegacyResourcesAPI.Load<Material>("Materials/matVagrantEnergized"); } 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 = DamageTypeCombo.op_Implicit((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)DamageTypeCombo.op_Implicit(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 = (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((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 = DamageTypeCombo.op_Implicit((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(ShiggyAsset.mushrumSporeImpactPrefab, val4, true); EffectData val5 = new EffectData { origin = damageInfo.attacker.transform.position, rotation = Quaternion.identity }; EffectManager.SpawnEffect(ShiggyAsset.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 = DamageTypeCombo.op_Implicit((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 = DamageTypeCombo.op_Implicit((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 = DamageTypeCombo.op_Implicit((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 && (int)DamageTypeCombo.op_Implicit(damageInfo.damageType & DamageTypeCombo.op_Implicit((DamageType)67108864)) != 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.rejecte