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

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

            //life bloom effect
            modPlayer.LifeBloomEnchant = true;
            //chrysalis
            thoriumPlayer.cocoonAcc = true;
            //living wood set bonus
            thoriumPlayer.livingWood = true;
            //free boi
            modPlayer.LivingWoodEnchant = true;
            modPlayer.AddMinion(SoulConfig.Instance.thoriumToggles.SaplingMinion, thorium.ProjectileType("MinionSapling"), 10, 2f);

            //bulb set bonus
            modPlayer.BulbEnchant = true;
            //petal shield
            thorium.GetItem("PetalShield").UpdateAccessory(player, hideVisual);
            player.statDefense -= 2;
            //bee booties
            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.BeeBooties))
            {
                thorium.GetItem("BeeBoots").UpdateAccessory(player, hideVisual);
                player.moveSpeed   -= 0.15f;
                player.maxRunSpeed -= 1f;
            }
        }
        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
            thoriumPlayer.livingWood = true;
            //free boi
            modPlayer.LivingWoodEnchant = true;
            modPlayer.AddMinion(SoulConfig.Instance.thoriumToggles.SaplingMinion, thorium.ProjectileType("MinionSapling"), 10, 2f);
        }
示例#3
0
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            if (!FargowiltasSoulsDLC.Instance.ThoriumLoaded)
            {
                return;
            }

            FargoPlayer fargoPlayer = player.GetModPlayer <FargoPlayer>();

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

            //life bloom effect
            modPlayer.LifeBloomEnchant = true;
            //chrysalis
            thoriumPlayer.cocoonAcc = true;
            //living wood set bonus
            thoriumPlayer.setLivingWood = true;
            //free boi
            modPlayer.LivingWoodEnchant = true;
            modPlayer.AddMinion(SoulConfig.Instance.thoriumToggles.SaplingMinion, thorium.ProjectileType("MinionSapling"), 10, 2f);

            //bulb set bonus
            modPlayer.BulbEnchant = true;
            //bee booties
            if (SoulConfig.Instance.GetValue(SoulConfig.Instance.thoriumToggles.BeeBooties))
            {
                thorium.GetItem("BeeBoots").UpdateAccessory(player, hideVisual);
                player.moveSpeed   -= 0.15f;
                player.maxRunSpeed -= 1f;
            }

            if (modPlayer.ThoriumSoul)
            {
                return;
            }

            //sandstone
            player.doubleJumpSandstorm = true;
            //danger
            mod.GetItem("DangerEnchant").UpdateAccessory(player, hideVisual);
            //flight
            fargoPlayer.wingTimeModifier += 1f;
            //fungus
            modPlayer.FungusEnchant = true;
        }