private void ModifyIncomingPlayerDamage(HealthHaver player, HealthHaver.ModifyDamageEventArgs args)
        {
            ETGModConsole.Log("ModifyIncomingDamage Ran");
            if (args.InitialDamage > 0)
            {
                if (currentForme > 1)
                {
                    ETGModConsole.Log("CurrentForme = " + currentForme);

                    args.ModifiedDamage = 0;
                    DoEscapingWigglies();
                    AkSoundEngine.PostEvent("Play_ENM_bombshee_scream_01", gun.gameObject);
                    if (currentForme == 2)
                    {
                        SwitchForme(1);
                    }
                    if (currentForme == 3)
                    {
                        SwitchForme(2);
                    }
                    ETGModConsole.Log("CurrentForme After = " + currentForme);
                    if (player.gameActor is PlayerController)
                    {
                        (player.gameActor as PlayerController).TriggerInvulnerableFrames(1);
                    }
                }
            }
        }
Esempio n. 2
0
        private void HandleEffect(HealthHaver source, HealthHaver.ModifyDamageEventArgs args)
        {
            bool flag = args == EventArgs.Empty;

            if (!flag)
            {
                bool flag2 = args.ModifiedDamage <= 0f;
                if (!flag2)
                {
                    bool flag3 = !source.IsVulnerable;
                    if (!flag3)
                    {
                        bool dmgcheck = damageInstances < 2;
                        if (dmgcheck)
                        {
                            bool flag4 = base.Owner;
                            if (flag4)
                            {
                                AkSoundEngine.PostEvent("Play_BOSS_agunim_ribbons_01", gameObject);
                                source.StartCoroutine("IncorporealityOnHit");
                                source.TriggerInvulnerabilityPeriod(-1f);
                                args.ModifiedDamage   = 0f;
                                this.damageInstances += 1;
                            }
                        }
                    }
                }
            }
        }
Esempio n. 3
0
        private void ModifyIncomingDamage(HealthHaver source, HealthHaver.ModifyDamageEventArgs args)
        {
            if (didBirthday == true)
            {
                if (args.ModifiedDamage >= source.GetCurrentHealth())
                {
                    AkSoundEngine.PostEvent("Play_VO_lichA_cackle_01", base.gameObject);
                    args.ModifiedDamage = 0f;
                    float        CurrentHealth = Owner.stats.GetStatValue(PlayerStats.StatType.Health);
                    StatModifier hpdown        = new StatModifier();
                    hpdown.statToBoost = PlayerStats.StatType.Health;
                    hpdown.amount      = ((CurrentHealth - 1) * -1);
                    hpdown.modifyType  = StatModifier.ModifyMethod.ADDITIVE;
                    Owner.ownerlessStatModifiers.Add(hpdown);
                    Owner.stats.RecalculateStats(Owner, false, false);
                    Owner.healthHaver.ApplyHealing(0.5f);


                    GameManager.Instance.LoadCustomLevel("tt_castle");
                    this.m_fireImmunity = new DamageTypeModifier();
                    this.m_fireImmunity.damageMultiplier = 0f;
                    this.m_fireImmunity.damageType       = CoreDamageTypes.Fire;
                    base.Owner.healthHaver.damageTypeModifiers.Add(this.m_fireImmunity);
                    didBirthday = false;
                }
            }
        }
Esempio n. 4
0
        private void AutoBlankEvent(HealthHaver source, HealthHaver.ModifyDamageEventArgs args)
        {
            // stop if there is no damage event, or damage is 0, or player is invulnerable
            if ((args == EventArgs.Empty) || (args.ModifiedDamage <= 0f) || (!source.IsVulnerable))
            {
                return;
            }

            int        elderBlankID = 499;
            PlayerItem elderBlank   = player.activeItems.Find((PlayerItem a) => a.PickupObjectId == elderBlankID);

            if (elderBlank != null && !elderBlank.IsOnCooldown)
            {
                // use Elder Blank if player has it
                source.TriggerInvulnerabilityPeriod(-1f);
                player.ForceBlank(25f, 0.5f, false, true, null, true, -1f);
                elderBlank.ForceApplyCooldown(player);
                args.ModifiedDamage = 0f;
            }
            else if (player.Blanks > 0 && !player.IsFalling)
            {
                // use a blank automatically
                source.TriggerInvulnerabilityPeriod(-1f);
                player.ForceConsumableBlank();
                args.ModifiedDamage = 0f;
            }
        }
Esempio n. 5
0
        private void HandleEffect(HealthHaver source, HealthHaver.ModifyDamageEventArgs args)
        {
            bool flag = args == EventArgs.Empty;

            if (!flag)
            {
                bool flag2 = args.ModifiedDamage <= 0f;
                if (!flag2)
                {
                    bool flag3 = !source.IsVulnerable;
                    if (!flag3)
                    {
                        bool flag4 = base.LastOwner;
                        if (flag4)
                        {
                            AkSoundEngine.PostEvent("Play_BOSS_spacebaby_charge_01", base.gameObject);
                            source.StartCoroutine("IncorporealityOnHit");
                            source.TriggerInvulnerabilityPeriod(-1f);
                            args.ModifiedDamage = 0f;
                            ApplyStat(base.LastOwner, PlayerStats.StatType.Damage, 0.96f, StatModifier.ModifyMethod.MULTIPLICATIVE);
                            ApplyStat(base.LastOwner, PlayerStats.StatType.ReloadSpeed, 1.04f, StatModifier.ModifyMethod.MULTIPLICATIVE);
                            ApplyStat(base.LastOwner, PlayerStats.StatType.RateOfFire, 1.04f, StatModifier.ModifyMethod.MULTIPLICATIVE);
                            //ApplyStat(base.LastOwner, PlayerStats.StatType.DodgeRollDistanceMultiplier, UnityEngine.Random.Range(1.25f, 0.75f), StatModifier.ModifyMethod.MULTIPLICATIVE);
                            //ApplyStat(base.LastOwner, PlayerStats.StatType.DodgeRollSpeedMultiplier, UnityEngine.Random.Range(1.25f, 0.75f), StatModifier.ModifyMethod.MULTIPLICATIVE);
                            ApplyStat(base.LastOwner, PlayerStats.StatType.DamageToBosses, 0.96f, StatModifier.ModifyMethod.MULTIPLICATIVE);
                            ApplyStat(base.LastOwner, PlayerStats.StatType.MovementSpeed, 0.96f, StatModifier.ModifyMethod.MULTIPLICATIVE);
                            ApplyStat(base.LastOwner, PlayerStats.StatType.Accuracy, 1.06f, StatModifier.ModifyMethod.MULTIPLICATIVE);
                            ApplyStat(base.LastOwner, PlayerStats.StatType.KnockbackMultiplier, 0.96f, StatModifier.ModifyMethod.MULTIPLICATIVE);
                            ApplyStat(base.LastOwner, PlayerStats.StatType.RangeMultiplier, 0.96f, StatModifier.ModifyMethod.MULTIPLICATIVE);
                        }
                    }
                }
            }
        }
Esempio n. 6
0
        private void HandleEffect(HealthHaver source, HealthHaver.ModifyDamageEventArgs args)
        {
            if (args == EventArgs.Empty)
            {
                return;
            }

            if (args.ModifiedDamage <= 0f)
            {
                return;
            }

            if (!source.IsVulnerable)
            {
                return;
            }

            if (Owner)
            {
                source.StartCoroutine("IncorporealityOnHit");
                source.TriggerInvulnerabilityPeriod(-1f);
                args.ModifiedDamage = 0f;
                damageInstances    += 1;
                DoMicroBlank((!source.specRigidbody) ? source.transform.position.XY() : source.specRigidbody.UnitCenter);
            }
        }
Esempio n. 7
0
        private void ModifyIncomingDamage(HealthHaver source, HealthHaver.ModifyDamageEventArgs args)
        {
            PlayableCharacters characterIdentity = Owner.characterIdentity;

            if (characterIdentity != PlayableCharacters.Robot)
            {
                if (DoIReplace == true)
                {
                    if (args.ModifiedDamage >= source.GetCurrentHealth())
                    {
                        PlayerController player = GameManager.Instance.PrimaryPlayer;
                        AkSoundEngine.PostEvent("Play_VO_lichA_cackle_01", base.gameObject);
                        args.ModifiedDamage = 0f;
                        float CurrentHealth = Owner.stats.GetStatValue(PlayerStats.StatType.Health);
                        this.ImprovedMindControl(player);
                    }
                }
                else
                {
                    if (Owner.healthHaver.Armor == 1)
                    {
                        if (DoIReplace == true)
                        {
                            PlayerController player = GameManager.Instance.PrimaryPlayer;
                            AkSoundEngine.PostEvent("Play_VO_lichA_cackle_01", base.gameObject);
                            args.ModifiedDamage = 0f;
                            this.ImprovedMindControl(player);
                        }
                    }
                }
            }
        }
Esempio n. 8
0
 private void DoubleDamage(HealthHaver hh, HealthHaver.ModifyDamageEventArgs args)
 {
     if (args == EventArgs.Empty)
     {
         return;
     }
     args.ModifiedDamage *= 2;
 }
Esempio n. 9
0
 private void ModifyDamageForCompanions(HealthHaver hh, HealthHaver.ModifyDamageEventArgs args)
 {
     if (args == HealthHaver.ModifyDamageEventArgs.Empty)
     {
         return;
     }
     args.ModifiedDamage *= 5f;
 }
 private void ModifyDamage(HealthHaver player, HealthHaver.ModifyDamageEventArgs args)
 {
     //ETGModConsole.Log("OnDamaged ran");
     //ETGModConsole.Log("Initial Damage: "+args.InitialDamage);
     if (args.InitialDamage > 0 && m_attachedPlayer.ModdedCharacterIdentity() == ModdedCharacterID.Shade)
     {
         GameManager.Instance.StartCoroutine(PostDamageCheck(m_attachedPlayer));
     }
 }
Esempio n. 11
0
 public void IdiotDumbDumb(HealthHaver health, HealthHaver.ModifyDamageEventArgs damageArgs)
 {
     if (damageArgs != EventArgs.Empty)
     {
         if (damageArgs.InitialDamage <= 2)
         {
             damageArgs.InitialDamage = 1;
         }
     }
 }
Esempio n. 12
0
 private void ModifyIncomingDamage(HealthHaver source, HealthHaver.ModifyDamageEventArgs args)
 {
     if (args == EventArgs.Empty)
     {
         return;
     }
     if (UnityEngine.Random.value < ((source.gameActor.CurrentGun.PickupObjectId == 380 || source.gameActor.CurrentGun.PickupObjectId == ETGMod.Databases.Items["aegis"].PickupObjectId) ? 0.3f : 0.15f))
     {
         args.ModifiedDamage = 0f;
     }
 }
Esempio n. 13
0
        //----------------------------
        //FRAIL code
        private void DealDamage(HealthHaver healthHaver, HealthHaver.ModifyDamageEventArgs args)
        {
            if (args == EventArgs.Empty)
            {
                return;
            }
            float num = UnityEngine.Random.Range(0f, 1f);

            if (num <= 0.25f && args.InitialDamage == .5f)
            {
                args.ModifiedDamage = 1;
            }
        }
 private void ModifyDamage(HealthHaver player, HealthHaver.ModifyDamageEventArgs args)
 {
     if (player && player.gameActor && player.gameActor is PlayerController)
     {
         PlayerController playercont = player.gameActor as PlayerController;
         if (playercont.ModdedCharacterIdentity() == ModdedCharacterID.Shade)
         {
             if (UnityEngine.Random.value <= 0.1f)
             {
                 args.ModifiedDamage = 0;
                 playercont.DoEasyBlank(playercont.specRigidbody.UnitCenter, EasyBlankType.MINI);
             }
         }
     }
 }
        private void ModifyIncomingDamage(HealthHaver source, HealthHaver.ModifyDamageEventArgs args)
        {
            bool flag2 = (double)source.GetCurrentHealth() <= 0.5 && source.Armor <= 0f;

            if (flag2)
            {
                if (hasHalo == true)
                {
                    args.ModifiedDamage = 0f;
                    base.Owner.healthHaver.ApplyHealing(0.5f);
                    //  Owner.healthHaver.ApplyHealing(this.healingAmount);
                    AkSoundEngine.PostEvent("Play_OBJ_med_kit_01", base.gameObject);
                    hasHalo = false;
                }
            }
        }
Esempio n. 16
0
        private void ModifyIncomingDamage(HealthHaver source, HealthHaver.ModifyDamageEventArgs args)
        {
            PlayableCharacters characterIdentity = Owner.characterIdentity;

            if (characterIdentity != PlayableCharacters.Robot)
            {
                if (source.Armor <= 0f)
                {
                    if (args.ModifiedDamage >= source.GetCurrentHealth())
                    {
                        if (source.GetMaxHealth() > 1f)
                        {
                            if (args.ModifiedDamage != 0)
                            {
                                if (source.IsVulnerable == true)
                                {
                                    AkSoundEngine.PostEvent("Play_CHR_major_damage_01", base.gameObject);
                                    args.ModifiedDamage = 0f;
                                    StatModifier hpdown = new StatModifier();
                                    hpdown.statToBoost = PlayerStats.StatType.Health;
                                    hpdown.amount      = -1;
                                    hpdown.modifyType  = StatModifier.ModifyMethod.ADDITIVE;
                                    Owner.ownerlessStatModifiers.Add(hpdown);
                                    Owner.stats.RecalculateStats(Owner, false, false);
                                    Owner.healthHaver.TriggerInvulnerabilityPeriod();

                                    if (this.m_owner.PlayerHasActiveSynergy("Terrible Person"))
                                    {
                                        Owner.healthHaver.ApplyHealing(0.5f);
                                    }
                                }
                            }
                        }
                    }
                }
            }
            else
            {
                int bighead = UnityEngine.Random.Range(1, 8);
                if (bighead == 1)
                {
                    args.ModifiedDamage = 0f;
                    Owner.healthHaver.TriggerInvulnerabilityPeriod();
                }
            }
        }
Esempio n. 17
0
        private void PreventDamage(HealthHaver healthHaver, HealthHaver.ModifyDamageEventArgs args)
        {
            if (args == EventArgs.Empty)
            {
                return;
            }
            float num = Random.Range(0f, 1f);

            if (num <= 0.15f)
            {
                args.ModifiedDamage = 0;
                if (!zoomy.spawnShadows)
                {
                    zoomy.spawnShadows = true;
                }
                StartCoroutine(PhaseBoost());
            }
        }
 private void BlinkAway(HealthHaver healthHaver, HealthHaver.ModifyDamageEventArgs args)
 {
     if (args == EventArgs.Empty)
     {
         return;
     }
     if (UnityEngine.Random.value <= (this.m_advancedSynergyUpgradeActive ? 0.3f : 0.15f))
     {
         args.ModifiedDamage = 0;
         LootEngine.DoDefaultItemPoof(healthHaver.gameActor.sprite.WorldCenter);
         IntVector2?vector = (healthHaver.gameActor as PlayerController).CurrentRoom.GetRandomAvailableCell(new IntVector2?(IntVector2.One * 2), CellTypes.FLOOR | CellTypes.PIT, false, null);
         if (vector != null)
         {
             Vector2 vector2 = vector.Value.ToVector2();
             (healthHaver.gameActor as PlayerController).WarpToPoint(vector2);
             LootEngine.DoDefaultItemPoof(vector2);
         }
     }
 }
 private void ModifyDamage(HealthHaver player, HealthHaver.ModifyDamageEventArgs args)
 {
     if (args.InitialDamage > 0)
     {
         if (shieldCharged)
         {
             shieldCharged = false;
             enemiesKilledSinceShieldReset = 0;
             args.ModifiedDamage           = 0;
             ClearOverhead();
             AkSoundEngine.PostEvent("Play_OBJ_crystal_shatter_01", Owner.gameObject);
             if (Owner.PlayerHasActiveSynergy("No Will To Break"))
             {
                 Owner.DoEasyBlank(Owner.specRigidbody.UnitCenter, EasyBlankType.MINI);
             }
             (player.gameActor as PlayerController).TriggerInvulnerableFrames(2f);
             ScreenShakeSettings shakesettings = new ScreenShakeSettings(0.25f, 7f, 0.1f, 0.3f);
             GameManager.Instance.MainCameraController.DoScreenShake(shakesettings, new Vector2?(Owner.specRigidbody.UnitCenter), false);
         }
     }
 }
Esempio n. 20
0
        private void HandleEffect(HealthHaver source, HealthHaver.ModifyDamageEventArgs args)
        {
            bool flag = args == EventArgs.Empty;

            if (!flag)
            {
                bool flag2 = args.ModifiedDamage <= 0f;
                if (!flag2)
                {
                    bool flag3 = !source.IsVulnerable;
                    if (!flag3)
                    {
                        bool flag4 = base.Owner;
                        if (flag4)
                        {
                            PlayerController player = base.Owner as PlayerController;
                            bool             actuallygonnafuckingdie = ((double)player.healthHaver.GetCurrentHealth() == 1 && player.healthHaver.Armor == 0f) || player.healthHaver.GetCurrentHealth() == 0f && player.healthHaver.Armor == 2f || ((double)player.healthHaver.GetCurrentHealth() == 0.5f && player.healthHaver.Armor == 0f) || player.healthHaver.GetCurrentHealth() == 0f && player.healthHaver.Armor == 1f;
                            if (actuallygonnafuckingdie)
                            {
                                source.StartCoroutine("IncorporealityOnHit");
                                source.TriggerInvulnerabilityPeriod(-1f);
                                args.ModifiedDamage = 0f;
                                AkSoundEngine.PostEvent("Play_ENM_darken_world_01", gameObject);
                                float num = 0f;
                                num = (player.stats.GetStatValue(PlayerStats.StatType.Health));
                                ApplyStat(player, PlayerStats.StatType.Health, (-num) + 1, StatModifier.ModifyMethod.ADDITIVE);
                                ApplyStat(player, PlayerStats.StatType.Curse, 1.5f, StatModifier.ModifyMethod.ADDITIVE);
                                player.healthHaver.FullHeal();
                                player.IsOnFire = false;
                                if (player.characterIdentity == PlayableCharacters.Robot)
                                {
                                    player.healthHaver.Armor = 3f;
                                }
                                base.StartCoroutine(this.Weeee());
                            }
                        }
                    }
                }
            }
        }
Esempio n. 21
0
 private void ModifyDamage(HealthHaver player, HealthHaver.ModifyDamageEventArgs args)
 {
     if (player.gameActor is PlayerController && (player.gameActor as PlayerController).CurrentGun.PickupObjectId == RingerID)
     {
         if (UnityEngine.Random.value <= 0.25f)
         {
             args.ModifiedDamage = 0;
             float dir = 0;
             for (int i = 0; i < 12; i++)
             {
                 dir += 30;
                 GameObject gameObject = SpawnManager.SpawnProjectile(gun.DefaultModule.projectiles[0].gameObject, player.sprite.WorldCenter, Quaternion.Euler(0f, 0f, dir), true);
                 Projectile component  = gameObject.GetComponent <Projectile>();
                 if (component != null)
                 {
                     component.Owner   = Owner;
                     component.Shooter = Owner.specRigidbody;
                 }
             }
         }
     }
 }
Esempio n. 22
0
 private void ModifyDamage(HealthHaver player, HealthHaver.ModifyDamageEventArgs args)
 {
     if (player.gameActor is PlayerController)
     {
         PlayerController playerCont = player.gameActor as PlayerController;
         if (playerCont.characterIdentity == PlayableCharacters.Robot)
         {
             if (UnityEngine.Random.value <= 0.25f)
             {
                 args.ModifiedDamage = 0; HandleRemoveHeart();
             }
         }
         else
         {
             if (playerCont.NextHitWillKillPlayer(args.InitialDamage))
             {
                 if (player.GetCurrentHealth() > 0.5f)
                 {
                     args.ModifiedDamage = 0.5f;
                 }
                 else if ((player.GetCurrentHealth() == 0.5f && player.Armor == 0) || (player.GetCurrentHealth() == 0f && player.Armor == 1))
                 {
                     if (player.GetMaxHealth() > 1)
                     {
                         args.ModifiedDamage = 0;
                         HandleRemoveHeart();
                     }
                 }
             }
         }
         if (playerCont.PlayerHasActiveSynergy("Oil Can What?") && UnityEngine.Random.value <= 0.1f)
         {
             args.ModifiedDamage = 0;
         }
     }
 }
        private void ModifyIncomingDamage(HealthHaver source, HealthHaver.ModifyDamageEventArgs args)
        {
            PlayableCharacters characterIdentity = Owner.characterIdentity;

            if (characterIdentity != PlayableCharacters.Robot)
            {
                if (source.GetCurrentHealth() <= 0.5 && source.Armor <= 0)
                {
                    if (Owner.carriedConsumables.Currency > 0)
                    {
                        int procVariable = UnityEngine.Random.Range(1, 101);

                        if (Owner.carriedConsumables.Currency > 100)
                        {
                            if (Owner.HasPickupID(93) || Owner.HasPickupID(321) || Owner.HasPickupID(641) || Owner.HasPickupID(53) || Owner.HasPickupID(231))
                            {
                                Owner.carriedConsumables.Currency = UnityEngine.Random.Range(1, Owner.carriedConsumables.Currency);
                            }
                            else
                            {
                                Owner.carriedConsumables.Currency = 0;
                            }
                            args.ModifiedDamage = 0f;
                            Owner.healthHaver.ApplyHealing(0.5f);
                            Owner.healthHaver.ApplyDamage(0.5f, Vector2.zero, "GoldenArmourBug(PlsReport)", CoreDamageTypes.None, DamageCategory.Normal, true, null, false);
                            if (Owner.HasPickupID(538))
                            {
                                LootEngine.GivePrefabToPlayer(PickupObjectDatabase.GetById(120).gameObject, Owner);
                                LootEngine.GivePrefabToPlayer(PickupObjectDatabase.GetById(120).gameObject, Owner);
                            }
                        }
                        else
                        {
                            if (Owner.carriedConsumables.Currency >= procVariable)
                            {
                                //Synergy
                                if (Owner.HasPickupID(93) || Owner.HasPickupID(321) || Owner.HasPickupID(641) || Owner.HasPickupID(53) || Owner.HasPickupID(231))
                                {
                                    Owner.carriedConsumables.Currency = procVariable;
                                }
                                else
                                {
                                    Owner.carriedConsumables.Currency = 0;
                                }
                                args.ModifiedDamage = 0f;
                                Owner.healthHaver.ApplyHealing(0.5f);
                                Owner.healthHaver.ApplyDamage(0.5f, Vector2.zero, "GoldenArmourBug(PlsReport)", CoreDamageTypes.None, DamageCategory.Normal, true, null, false);
                                if (Owner.HasPickupID(538))
                                {
                                    LootEngine.GivePrefabToPlayer(PickupObjectDatabase.GetById(120).gameObject, Owner);
                                    LootEngine.GivePrefabToPlayer(PickupObjectDatabase.GetById(120).gameObject, Owner);
                                }
                            }
                        }
                    }
                }
            }
            else
            {
                if (source.Armor <= 1)
                {
                    if (Owner.carriedConsumables.Currency > 0)
                    {
                        int procVariable = UnityEngine.Random.Range(1, 101);
                        if (Owner.carriedConsumables.Currency > 100)
                        {
                            if (Owner.HasPickupID(93) || Owner.HasPickupID(321) || Owner.HasPickupID(641) || Owner.HasPickupID(53) || Owner.HasPickupID(231))
                            {
                                Owner.carriedConsumables.Currency = UnityEngine.Random.Range(1, Owner.carriedConsumables.Currency);
                            }
                            else
                            {
                                Owner.carriedConsumables.Currency = 0;
                            }
                            args.ModifiedDamage      = 0f;
                            Owner.healthHaver.Armor += 1;
                            Owner.healthHaver.ApplyDamage(0.5f, Vector2.zero, "GoldenArmourBug(PlsReport)", CoreDamageTypes.None, DamageCategory.Normal, true, null, false);
                            if (Owner.HasPickupID(538))
                            {
                                LootEngine.GivePrefabToPlayer(PickupObjectDatabase.GetById(120).gameObject, Owner);
                                LootEngine.GivePrefabToPlayer(PickupObjectDatabase.GetById(120).gameObject, Owner);
                            }
                        }
                        else
                        {
                            if (Owner.carriedConsumables.Currency >= procVariable)
                            {
                                //Synergy with Old Goldie, Gold Ammolet, Gold Junk, AU Gun, Gilded Hydra
                                if (Owner.HasPickupID(93) || Owner.HasPickupID(321) || Owner.HasPickupID(641) || Owner.HasPickupID(53) || Owner.HasPickupID(231))
                                {
                                    Owner.carriedConsumables.Currency = procVariable;
                                }
                                else
                                {
                                    Owner.carriedConsumables.Currency = 0;
                                }
                                args.ModifiedDamage      = 0f;
                                Owner.healthHaver.Armor += 1;
                                Owner.healthHaver.ApplyDamage(0.5f, Vector2.zero, "GoldenArmourBug(PlsReport)", CoreDamageTypes.None, DamageCategory.Normal, true, null, false);
                                if (Owner.HasPickupID(538))
                                {
                                    LootEngine.GivePrefabToPlayer(PickupObjectDatabase.GetById(120).gameObject, Owner);
                                    LootEngine.GivePrefabToPlayer(PickupObjectDatabase.GetById(120).gameObject, Owner);
                                }
                            }
                        }
                    }
                }
            }
        }