public override void UpdateAccessory(Player player, bool hideVisual)
        {
            if (!FargowiltasSoulsDLC.Instance.ThoriumLoaded)
            {
                return;
            }

            FargoDLCPlayer modPlayer     = player.GetModPlayer <FargoDLCPlayer>();
            ThoriumPlayer  thoriumPlayer = player.GetModPlayer <ThoriumPlayer>();

            //set bonus
            //if (SoulConfig.Instance.GetValue(SoulConfig.Instance.GravityControl))
            //{
            player.gravControl = true;
            if (player.gravDir == -1f)
            {
                modPlayer.AllDamageUp(.12f);
            }
            //}

            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.BeholderEye))
            {
                //eye of beholder
                thorium.GetItem("EyeofBeholder").UpdateAccessory(player, hideVisual);
            }
        }
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            if (!FargowiltasSoulsDLC.Instance.ThoriumLoaded)
            {
                return;
            }

            FargoDLCPlayer modPlayer     = player.GetModPlayer <FargoDLCPlayer>();
            ThoriumPlayer  thoriumPlayer = player.GetModPlayer <ThoriumPlayer>();

            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.BerserkerEffect))
            {
                thoriumPlayer.orbital          = true;
                thoriumPlayer.orbitalRotation3 = Utils.RotatedBy(thoriumPlayer.orbitalRotation3, -0.075000002980232239, default(Vector2));
                //making divers code less of a meme :scuseme:
                if (player.statLife > player.statLifeMax * 0.75)
                {
                    modPlayer.AllDamageUp(.15f);
                    thoriumPlayer.berserkStage = 1;
                }
                else if (player.statLife > player.statLifeMax * 0.5)
                {
                    modPlayer.AllDamageUp(.3f);
                    thoriumPlayer.berserkStage = 2;
                }
                else if (player.statLife > player.statLifeMax * 0.25)
                {
                    modPlayer.AllDamageUp(.45f);
                    thoriumPlayer.berserkStage = 3;
                }
                else
                {
                    modPlayer.AllDamageUp(.6f);
                    thoriumPlayer.berserkStage = 4;
                }
            }

            //magma
            mod.GetItem("MagmaEnchant").UpdateAccessory(player, hideVisual);
        }
示例#3
0
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            if (!FargowiltasSoulsDLC.Instance.ThoriumLoaded)
            {
                return;
            }

            FargoDLCPlayer modPlayer     = player.GetModPlayer <FargoDLCPlayer>();
            ThoriumPlayer  thoriumPlayer = player.GetModPlayer <ThoriumPlayer>();

            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.DreadSpeed))
            {
                //dread set bonus
                player.moveSpeed       += 0.8f;
                player.maxRunSpeed     += 10f;
                player.runAcceleration += 0.05f;
                if (player.velocity.X > 0f || player.velocity.X < 0f)
                {
                    modPlayer.AllDamageUp(.25f);
                    modPlayer.AllCritUp(20);
                    player.endurance += 0.1f;
                    for (int i = 0; i < 2; i++)
                    {
                        int num  = Dust.NewDust(new Vector2(player.position.X, player.position.Y) - player.velocity * 0.5f, player.width, player.height, 65, 0f, 0f, 0, default(Color), 1.75f);
                        int num2 = Dust.NewDust(new Vector2(player.position.X, player.position.Y) - player.velocity * 0.5f, player.width, player.height, 75, 0f, 0f, 0, default(Color), 1f);
                        Main.dust[num].noGravity  = true;
                        Main.dust[num2].noGravity = true;
                        Main.dust[num].noLight    = true;
                        Main.dust[num2].noLight   = true;
                    }
                }
            }

            //crash boots
            thorium.GetItem("CrashBoots").UpdateAccessory(player, hideVisual);
            player.moveSpeed   -= 0.15f;
            player.maxRunSpeed -= 1f;
            //cursed core
            thoriumPlayer.accCursedCore = true;
            //dragon
            thoriumPlayer.dragonSet = true;
            //dragon tooth necklace
            player.armorPenetration += 15;
            //wyvern pet
            modPlayer.AddPet(SoulConfig.Instance.thoriumToggles.WyvernPet, hideVisual, thorium.BuffType("WyvernPetBuff"), thorium.ProjectileType("WyvernPet"));
            modPlayer.DragonEnchant = true;
        }
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            if (!FargowiltasSoulsDLC.Instance.ThoriumLoaded)
            {
                return;
            }

            FargoDLCPlayer modPlayer     = player.GetModPlayer <FargoDLCPlayer>();
            ThoriumPlayer  thoriumPlayer = player.GetModPlayer <ThoriumPlayer>();

            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.EyeoftheStorm))
            {
                //eye of the storm
                thorium.GetItem("EyeoftheStorm").UpdateAccessory(player, hideVisual);
            }

            //bronze
            modPlayer.BronzeEnchant = true;
            //rebuttal
            thoriumPlayer.championShield = true;
            //spawn pet
            player.GetModPlayer <FargoDLCPlayer>().AddPet(SoulConfig.Instance.thoriumToggles.CoinPet, hideVisual, thorium.BuffType("DrachmaBuff"), thorium.ProjectileType("DrachmaBag"));

            //durasteel
            mod.GetItem("DurasteelEnchant").UpdateAccessory(player, hideVisual);

            //abyssal shell
            thoriumPlayer.AbyssalShell = true;

            //conduit
            mod.GetItem("ConduitEnchant").UpdateAccessory(player, hideVisual);

            if (modPlayer.ThoriumSoul)
            {
                return;
            }

            //granite
            player.fireWalk       = true;
            player.lavaImmune     = true;
            player.buffImmune[24] = true;
            //titan
            modPlayer.AllDamageUp(.1f);
            //crystal eye mask
            thoriumPlayer.critDamage += 0.1f;
        }
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            if (!FargowiltasSoulsDLC.Instance.ThoriumLoaded)
            {
                return;
            }

            FargoDLCPlayer modPlayer     = player.GetModPlayer <FargoDLCPlayer>();
            ThoriumPlayer  thoriumPlayer = player.GetModPlayer <ThoriumPlayer>();

            //lodestone
            mod.GetItem("LodestoneEnchant").UpdateAccessory(player, hideVisual);

            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.BeholderEye))
            {
                //eye of beholder
                thorium.GetItem("EyeofBeholder").UpdateAccessory(player, hideVisual);
            }

            //shade
            thoriumPlayer.setShade = true;

            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.TerrariumSpirits))
            {
                //terrarium set bonus
                timer++;
                if (timer > 60)
                {
                    Projectile.NewProjectile(player.Center.X + 14f, player.Center.Y - 20f, 0f, 2f, thorium.ProjectileType("TerraRed"), 50, 0f, Main.myPlayer, 0f, 0f);
                    Projectile.NewProjectile(player.Center.X + 9f, player.Center.Y - 20f, 0f, 2f, thorium.ProjectileType("TerraOrange"), 50, 0f, Main.myPlayer, 0f, 0f);
                    Projectile.NewProjectile(player.Center.X + 4f, player.Center.Y - 20f, 0f, 2f, thorium.ProjectileType("TerraYellow"), 50, 0f, Main.myPlayer, 0f, 0f);
                    Projectile.NewProjectile(player.Center.X, player.Center.Y - 20f, 0f, 2f, thorium.ProjectileType("TerraGreen"), 50, 0f, Main.myPlayer, 0f, 0f);
                    Projectile.NewProjectile(player.Center.X - 4f, player.Center.Y - 20f, 0f, 2f, thorium.ProjectileType("TerraBlue"), 50, 0f, Main.myPlayer, 0f, 0f);
                    Projectile.NewProjectile(player.Center.X - 9f, player.Center.Y - 20f, 0f, 2f, thorium.ProjectileType("TerraIndigo"), 50, 0f, Main.myPlayer, 0f, 0f);
                    Projectile.NewProjectile(player.Center.X - 14f, player.Center.Y - 20f, 0f, 2f, thorium.ProjectileType("TerraPurple"), 50, 0f, Main.myPlayer, 0f, 0f);
                    timer = 0;
                }
            }
            //diverman meme
            modPlayer.ThoriumEnchant = true;
            //jester
            modPlayer.JesterEnchant = true;
            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.Crietz))
            {
                //crietz
                //thoriumPlayer.crietzAcc = true;
            }

            if (modPlayer.ThoriumSoul)
            {
                return;
            }

            //valadium
            //if (SoulConfig.Instance.GetValue(SoulConfig.Instance.GravityControl))
            //{
            player.gravControl = true;
            if (player.gravDir == -1f)
            {
                modPlayer.AllDamageUp(.12f);
            }
            //}

            //terrarium woofer
            thoriumPlayer.accSubwooferTerrarium = true;
        }
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            if (!FargowiltasSoulsDLC.Instance.ThoriumLoaded)
            {
                return;
            }

            FargoDLCPlayer modPlayer     = player.GetModPlayer <FargoDLCPlayer>();
            ThoriumPlayer  thoriumPlayer = player.GetModPlayer <ThoriumPlayer>();

            //spirit trapper
            modPlayer.SpiritTrapperEnchant = true;
            thoriumPlayer.spiritTrapper    = true;
            //inner flame
            thoriumPlayer.spiritFlame = true;

            //malignant
            modPlayer.MalignantEnchant = true;
            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.ManaBoots))
            {
                //mana charge rockets
                thorium.GetItem("ManaChargedRocketeers").UpdateAccessory(player, hideVisual);
            }

            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.DreadSpeed))
            {
                //dread
                player.moveSpeed       += 0.8f;
                player.maxRunSpeed     += 10f;
                player.runAcceleration += 0.05f;
                if (player.velocity.X > 0f || player.velocity.X < 0f)
                {
                    modPlayer.AllDamageUp(.25f);
                    modPlayer.AllCritUp(20);

                    for (int i = 0; i < 2; i++)
                    {
                        int num  = Dust.NewDust(new Vector2(player.position.X, player.position.Y) - player.velocity * 0.5f, player.width, player.height, 65, 0f, 0f, 0, default(Color), 1.75f);
                        int num2 = Dust.NewDust(new Vector2(player.position.X, player.position.Y) - player.velocity * 0.5f, player.width, player.height, 75, 0f, 0f, 0, default(Color), 1f);
                        Main.dust[num].noGravity  = true;
                        Main.dust[num2].noGravity = true;
                        Main.dust[num].noLight    = true;
                        Main.dust[num2].noLight   = true;
                    }
                }
            }
            //crash boots
            thorium.GetItem("CrashBoots").UpdateAccessory(player, hideVisual);
            player.moveSpeed   -= 0.15f;
            player.maxRunSpeed -= 1f;
            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.DragonFlames))
            {
                //dragon
                thoriumPlayer.dragonSet = true;
            }
            //wyvern pet
            modPlayer.AddPet(SoulConfig.Instance.thoriumToggles.WyvernPet, hideVisual, thorium.BuffType("WyvernPetBuff"), thorium.ProjectileType("WyvernPet"));
            modPlayer.DragonEnchant = true;

            //demon blood effect
            modPlayer.DemonBloodEnchant = true;
            //demon blood badge
            thoriumPlayer.CrimsonBadge = true;
            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.FleshDrops))
            {
                //flesh set bonus
                thoriumPlayer.Symbiotic = true;
            }
            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.VampireGland))
            {
                //vampire gland
                thoriumPlayer.vampireGland = true;
            }
            //blister pet
            modPlayer.AddPet(SoulConfig.Instance.thoriumToggles.BlisterPet, hideVisual, thorium.BuffType("BlisterBuff"), thorium.ProjectileType("BlisterPet"));
            modPlayer.FleshEnchant = true;
            //pet
            modPlayer.KnightEnchant = true;

            //berserker
            mod.GetItem("BerserkerEnchant").UpdateAccessory(player, hideVisual);

            if (modPlayer.ThoriumSoul)
            {
                return;
            }

            //dragon tooth necklace
            player.armorPenetration += 15;

            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.HarbingerOvercharge))
            {
                //harbinger
                if (player.statLife > (int)(player.statLifeMax2 * 0.75))
                {
                    thoriumPlayer.overCharge = true;
                    modPlayer.AllDamageUp(.5f);
                }
            }
            //shade band
            thoriumPlayer.shadeBand = true;
        }