public override void UpdateAccessory(Player player, bool hideVisual) { if (!Fargowiltas.Instance.ThoriumLoaded) { return; } FargoPlayer modPlayer = player.GetModPlayer <FargoPlayer>(); ThoriumPlayer thoriumPlayer = player.GetModPlayer <ThoriumPlayer>(thorium); //includes bronze lightning modPlayer.SvartalfheimForce = true; //granite player.fireWalk = true; player.lavaImmune = true; player.buffImmune[24] = true; if (Soulcheck.GetValue("Eye of the Storm")) { //eye of the storm thorium.GetItem("EyeoftheStorm").UpdateAccessory(player, hideVisual); } //woofers thoriumPlayer.bardRangeBoost += 450; for (int i = 0; i < 255; i++) { Player player2 = Main.player[i]; if (player2.active && !player2.dead && Vector2.Distance(player2.Center, player.Center) < 450f) { thoriumPlayer.empowerGranite = true; thoriumPlayer.empowerMarble = true; } } //bronze //rebuttal thoriumPlayer.championShield = true; //durasteel mod.GetItem("DurasteelEnchant").UpdateAccessory(player, hideVisual); thoriumPlayer.thoriumEndurance -= 0.02f; //meme way to make it 10% //titan modPlayer.AllDamageUp(.1f); //crystal eye mask thoriumPlayer.critDamage += 0.1f; //abyssal shell thoriumPlayer.AbyssalShell = true; //conduit mod.GetItem("ConduitEnchant").UpdateAccessory(player, hideVisual); }
public override void UpdateAccessory(Player player, bool hideVisual) { if (!Fargowiltas.Instance.CalamityLoaded) { return; } if (Soulcheck.GetValue("Xeroc Effects")) { CalamityPlayer modPlayer = player.GetModPlayer <CalamityPlayer>(calamity); modPlayer.xerocSet = true; } }
private void Thorium(Player player) { ThoriumPlayer thoriumPlayer = player.GetModPlayer <ThoriumPlayer>(thorium); if (Soulcheck.GetValue("Ghastly Carapace")) { //ghastly carapace if (!thoriumPlayer.lifePrevent) { player.AddBuff(thorium.BuffType("GhastlySoul"), 60, true); } } }
public override void UpdateAccessory(Player player, bool hideVisual) { player.buffImmune[BuffID.Frostburn] = true; if (Soulcheck.GetValue("Frostfireballs")) { FargoPlayer fargoPlayer = player.GetModPlayer <FargoPlayer>(); fargoPlayer.FrigidGemstone = true; if (fargoPlayer.FrigidGemstoneCD > 0) { fargoPlayer.FrigidGemstoneCD--; } } }
public override void UpdateAccessory(Player player, bool hideVisual) { //frost spark plus super speed if (Soulcheck.GetValue("Supersonic Speed Boosts") && !player.GetModPlayer <FargoPlayer>().noSupersonic) { player.maxRunSpeed += 10f; player.runAcceleration += .25f; //frog legs player.autoJump = true; player.jumpSpeedBoost += 2.4f; player.maxFallSpeed += 5f; player.jumpBoost = true; } /*else * { * player.maxRunSpeed += 5f; * player.runAcceleration += .1f; * }*/ player.moveSpeed += 0.5f; player.rocketBoots = 3; player.rocketTimeMax = 10; player.iceSkate = true; //arctic diving gear player.arcticDivingGear = true; player.accFlipper = true; player.accDivingHelm = true; //lava waders player.waterWalk = true; player.fireWalk = true; player.lavaImmune = true; player.noFallDmg = true; //bundle if (player.wingTime == 0) { player.doubleJumpCloud = true; player.doubleJumpSandstorm = true; player.doubleJumpBlizzard = true; } //magic carpet player.carpet = true; //slime mount //player.maxFallSpeed += 5f; if (Fargowiltas.Instance.ThoriumLoaded) { Thorium(player); } }
public void Thorium(Player player, bool hideVisual) { FargoPlayer modPlayer = player.GetModPlayer <FargoPlayer>(mod); ThoriumPlayer thoriumPlayer = player.GetModPlayer <ThoriumPlayer>(thorium); if (Soulcheck.GetValue("Proof of Avarice")) { //proof of avarice thoriumPlayer.avarice2 = true; } modPlayer.AddPet("Coin Bag Pet", hideVisual, thorium.BuffType("DrachmaBuff"), thorium.ProjectileType("DrachmaBag")); modPlayer.AddPet("Glitter Pet", hideVisual, thorium.BuffType("ShineDust"), thorium.ProjectileType("ShinyPet")); }
public override void UpdateAccessory(Player player, bool hideVisual) { if (!Fargowiltas.Instance.CalamityLoaded) { return; } CalamityPlayer modPlayer = player.GetModPlayer <CalamityPlayer>(calamity); if (Soulcheck.GetValue("Reaver Effects")) { //melee modPlayer.reaverBlast = true; //range modPlayer.reaverDoubleTap = true; //magic modPlayer.reaverBurst = true; //throw modPlayer.reaverSpore = true; } if (player.GetModPlayer <FargoPlayer>().Eternity) { return; } if (Soulcheck.GetValue("Reaver Orb Minion")) { //summon modPlayer.reaverOrb = true; if (player.whoAmI == Main.myPlayer) { if (player.FindBuffIndex(calamity.BuffType("ReaverOrb")) == -1) { player.AddBuff(calamity.BuffType("ReaverOrb"), 3600, true); } if (player.ownedProjectileCounts[calamity.ProjectileType("ReaverOrb")] < 1) { Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, calamity.ProjectileType("ReaverOrb"), 0, 0f, Main.myPlayer, 0f, 0f); } } } //fabled tortoise shell modPlayer.fabledTortoise = true; player.moveSpeed -= 0.5f; player.thorns = 0.25f; player.statDefense += 42; }
public override void UpdateAccessory(Player player, bool hideVisual) { if (!Fargowiltas.Instance.CalamityLoaded) { return; } CalamityPlayer modPlayer = player.GetModPlayer <CalamityPlayer>(calamity); if (Soulcheck.GetValue("Daedalus Effects")) { modPlayer.daedalusReflect = true; modPlayer.daedalusShard = true; modPlayer.daedalusAbsorb = true; modPlayer.daedalusCrystal = true; modPlayer.daedalusSplit = true; } if (Soulcheck.GetValue("Permafrost's Concoction")) { //permafrost concoction modPlayer.permafrostsConcoction = true; } if (player.GetModPlayer <FargoPlayer>().Eternity) { return; } if (Soulcheck.GetValue("Daedalus Crystal Minion") && player.whoAmI == Main.myPlayer) { if (player.FindBuffIndex(calamity.BuffType("DaedalusCrystal")) == -1) { player.AddBuff(calamity.BuffType("DaedalusCrystal"), 3600, true); } if (player.ownedProjectileCounts[calamity.ProjectileType("DaedalusCrystal")] < 1) { Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, calamity.ProjectileType("DaedalusCrystal"), 0, 0f, Main.myPlayer, 0f, 0f); } } //regenerator if (Soulcheck.GetValue("Regenator")) { modPlayer.regenator = true; } //pet soon tm }
public override void AI() { Player player = Main.player[projectile.owner]; FargoPlayer modPlayer = player.GetModPlayer <FargoPlayer>(mod); if (!modPlayer.HallowEnchant || !Soulcheck.GetValue("Enchanted Sword Familiar")) { projectile.Kill(); return; } //dust! int dustId = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 2f), projectile.width, projectile.height + 5, DustID.SilverCoin, projectile.velocity.X * 0.2f, projectile.velocity.Y * 0.2f, 100, default(Color), 1f); Main.dust[dustId].noGravity = true; }
public override void UpdateAccessory(Player player, bool hideVisual) { player.buffImmune[BuffID.CursedInferno] = true; player.buffImmune[BuffID.Ichor] = true; player.buffImmune[mod.BuffType("Defenseless")] = true; player.buffImmune[mod.BuffType("Stunned")] = true; player.buffImmune[mod.BuffType("LightningRod")] = true; player.GetModPlayer <FargoPlayer>().FusedLens = true; player.GetModPlayer <FargoPlayer>().GroundStick = true; if (Soulcheck.GetValue("Probes Minion")) { player.AddBuff(mod.BuffType("Probes"), 2); } player.endurance += 0.06f; player.noKnockback = true; }
public override void UpdateAccessory(Player player, bool hideVisual) { if (!Fargowiltas.Instance.ThoriumLoaded) { return; } FargoPlayer modPlayer = player.GetModPlayer <FargoPlayer>(); ThoriumPlayer thoriumPlayer = player.GetModPlayer <ThoriumPlayer>(thorium); //darksteel bonuses player.noKnockback = true; player.iceSkate = true; //EoC Shield player.dash = 2; //steel set bonus thoriumPlayer.thoriumEndurance += 0.08f; //spiked bracers player.thorns += 0.35f; if (Soulcheck.GetValue("Iron Shield")) { //iron shield raise modPlayer.IronEffect(); } //magnet if (Soulcheck.GetValue("Iron Magnet")) { modPlayer.IronEnchant = true; } //iron shield timer++; if (timer >= 30) { int num = 12; if (thoriumPlayer.shieldHealth <= num) { thoriumPlayer.shieldHealthTimerStop = true; } if (thoriumPlayer.shieldHealth < num) { CombatText.NewText(new Rectangle((int)player.position.X, (int)player.position.Y, player.width, player.height), new Color(51, 255, 255), 1, false, true); thoriumPlayer.shieldHealth++; player.statLife++; } timer = 0; } }
private void Calamity(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.GetModPlayer <CalamityPlayer>(calamity); //UNIVERSE //melee modPlayer.eGauntlet = true; //removing the extra boosts it adds because meme calamity player.meleeDamage -= .15f; player.meleeSpeed -= .15f; player.meleeCrit -= 5; if (Soulcheck.GetValue("Elemental Quiver")) { //range modPlayer.eQuiver = true; } //magic modPlayer.eTalisman = true; //summon modPlayer.statisBeltOfCurses = true; modPlayer.shadowMinions = true; modPlayer.tearMinions = true; //throw modPlayer.nanotech = true; //DIMENSIONS //tank soul //rampart of dieties modPlayer.dAmulet = true; //becase calamity made it itself for some reason no duplicate player.starCloak = false; //asgardian aegis modPlayer.dashMod = 4; modPlayer.elysianAegis = true; player.buffImmune[calamity.BuffType("BrimstoneFlames")] = true; player.buffImmune[calamity.BuffType("HolyLight")] = true; player.buffImmune[calamity.BuffType("GlacialState")] = true; //celestial tracers modPlayer.IBoots = !hideVisual; modPlayer.elysianFire = !hideVisual; modPlayer.cTracers = true; //TERRARIA mod.GetItem("CalamityForce").UpdateAccessory(player, hideVisual); //TYRANT mod.GetItem("CalamitySoul").UpdateAccessory(player, hideVisual); }
public override void UpdateAccessory(Player player, bool hideVisual) { if (!Fargowiltas.Instance.ThoriumLoaded) { return; } if (Soulcheck.GetValue("Biotech Probe")) { ThoriumPlayer thoriumPlayer = player.GetModPlayer <ThoriumPlayer>(thorium); thoriumPlayer.essenceSet = true; if (player.ownedProjectileCounts[thorium.ProjectileType("LifeEssence")] < 1) { Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, thorium.ProjectileType("LifeEssence"), 0, 0f, player.whoAmI, 0f, 0f); } } }
public override void UpdateAccessory(Player player, bool hideVisual) { if (!Fargowiltas.Instance.CalamityLoaded) { return; } CalamityPlayer modPlayer = player.GetModPlayer <CalamityPlayer>(calamity); if (Soulcheck.GetValue("Astral Stars")) { modPlayer.astralStarRain = true; } calamity.GetItem("AstralArcanum").UpdateAccessory(player, hideVisual); calamity.GetItem("HideofAstrumDeus").UpdateAccessory(player, hideVisual); }
public override void UpdateAccessory(Player player, bool hideVisual) { //attack speed player.GetModPlayer <FargoPlayer>(mod).RangedSoul = true; player.rangedDamage += .3f; player.rangedCrit += 15; if (SoulConfig.Instance.GetValue("Sniper Scope")) { player.scope = true; } if (Fargowiltas.Instance.CalamityLoaded && Soulcheck.GetValue("Elemental Quiver")) { Calamity(player); } }
public override void UpdateAccessory(Player player, bool hideVisual) { FargoPlayer modPlayer = player.GetModPlayer <FargoPlayer>(); //mining speed, spelunker, dangersense, light, hunter, pet modPlayer.MinerEffect(hideVisual, .5f); //placing speed up player.tileSpeed += 0.5f; player.wallSpeed += 0.5f; //toolbox Player.tileRangeX += 50; Player.tileRangeY += 50; //gizmo pack player.autoPaint = true; //presserator player.autoActuator = true; if (Soulcheck.GetValue("Builder Mode")) { modPlayer.BuilderMode = true; } //cell phone player.accWatch = 3; player.accDepthMeter = 1; player.accCompass = 1; player.accFishFinder = true; player.accDreamCatcher = true; player.accOreFinder = true; player.accStopwatch = true; player.accCritterGuide = true; player.accJarOfSouls = true; player.accThirdEye = true; player.accCalendar = true; player.accWeatherRadio = true; if (!Fargowiltas.Instance.ThoriumLoaded) { return; } //pets modPlayer.AddPet("Inspiring Lantern Pet", hideVisual, thorium.BuffType("SupportLanternBuff"), thorium.ProjectileType("SupportLantern")); modPlayer.AddPet("Lock Box Pet", hideVisual, thorium.BuffType("LockBoxBuff"), thorium.ProjectileType("LockBoxPet")); }
public override void UpdateAccessory(Player player, bool hideVisual) { FargoPlayer modPlayer = player.GetModPlayer <FargoPlayer>(); modPlayer.AllDamageUp(.66f); modPlayer.AllCritUp(25); //use speed, velocity, debuffs, crit dmg, mana up, double knockback modPlayer.UniverseEffect = true; if (Soulcheck.GetValue("Universe Attack Speed")) { modPlayer.AttackSpeed *= 1.5f; } player.maxMinions += 8; player.maxTurrets += 4; //accessorys player.counterWeight = 556 + Main.rand.Next(6); player.yoyoGlove = true; player.yoyoString = true; if (Soulcheck.GetValue("Sniper Scope")) { player.scope = true; } player.manaFlower = true; player.manaMagnet = true; player.magicCuffs = true; if (Fargowiltas.Instance.ThoriumLoaded) { Thorium(player); } if (Fargowiltas.Instance.CalamityLoaded) { Calamity(player); } if (Fargowiltas.Instance.DBTLoaded) { DBT(player); } }
public override void UpdateAccessory(Player player, bool hideVisual) { if (!Fargowiltas.Instance.CalamityLoaded) { return; } CalamityPlayer modPlayer = player.GetModPlayer <CalamityPlayer>(calamity); modPlayer.aeroSet = true; player.noFallDmg = true; if (player.GetModPlayer <FargoPlayer>().Eternity) { return; } if (Soulcheck.GetValue("Valkyrie Minion")) { modPlayer.valkyrie = true; if (player.whoAmI == Main.myPlayer) { if (player.FindBuffIndex(calamity.BuffType("Valkyrie")) == -1) { player.AddBuff(calamity.BuffType("Valkyrie"), 3600, true); } if (player.ownedProjectileCounts[calamity.ProjectileType("Valkyrie")] < 1) { Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, calamity.ProjectileType("Valkyrie"), 25, 0f, Main.myPlayer, 0f, 0f); } } } if (Soulcheck.GetValue("Gladiator's Locket")) { calamity.GetItem("GladiatorsLocket").UpdateAccessory(player, hideVisual); } if (Soulcheck.GetValue("Unstable Prism")) { calamity.GetItem("UnstablePrism").UpdateAccessory(player, hideVisual); } //spawn pet soon tm }
public override void UpdateAccessory(Player player, bool hideVisual) { if (!Fargowiltas.Instance.ThoriumLoaded) { return; } FargoPlayer modPlayer = player.GetModPlayer <FargoPlayer>(); ThoriumPlayer thoriumPlayer = player.GetModPlayer <ThoriumPlayer>(thorium); //steel set bonus thoriumPlayer.thoriumEndurance += 0.05f; //spiked bracers player.thorns += 0.25f; //iron shield raise player.GetModPlayer <FargoPlayer>(mod).IronEffect(); //item attract if (Soulcheck.GetValue("Iron Magnet")) { modPlayer.IronEnchant = true; } //EoC Shield player.dash = 2; //iron sheild if (!thoriumPlayer.outOfCombat) { timer++; if (timer >= 30) { int num = 22; if (thoriumPlayer.shieldHealth < num) { CombatText.NewText(new Rectangle((int)player.position.X, (int)player.position.Y, player.width, player.height), new Color(51, 255, 255), 1, false, true); thoriumPlayer.shieldHealth++; } timer = 0; return; } } else { timer = 0; } }
public override void UpdateAccessory(Player player, bool hideVisual) { FargoPlayer modPlayer = player.GetModPlayer <FargoPlayer>(); //sheild raise modPlayer.IronEffect(); //magnet if (Soulcheck.GetValue("Iron Magnet")) { modPlayer.IronEnchant = true; } //EoC Shield player.dash = 2; if (Fargowiltas.Instance.ThoriumLoaded) { Thorium(player); } }
public override void UpdateAccessory(Player player, bool hideVisual) { if (!Fargowiltas.Instance.CalamityLoaded) { return; } CalamityPlayer modPlayer = player.GetModPlayer <CalamityPlayer>(calamity); if (Soulcheck.GetValue("Bloodflare Effects")) { modPlayer.bloodflareSet = true; modPlayer.bloodflareMelee = true; modPlayer.bloodflareRanged = true; modPlayer.bloodflareMage = true; modPlayer.bloodflareThrowing = true; } if (Soulcheck.GetValue("Polterghast Mines")) { modPlayer.bloodflareSummon = true; } //core of the blood god modPlayer.coreOfTheBloodGod = true; modPlayer.fleshTotem = true; //affliction modPlayer.affliction = true; if (player.whoAmI != Main.myPlayer && player.miscCounter % 10 == 0) { int myPlayer = Main.myPlayer; if (Main.player[myPlayer].team == player.team && player.team != 0) { float num = player.position.X - Main.player[myPlayer].position.X; float num2 = player.position.Y - Main.player[myPlayer].position.Y; if ((float)Math.Sqrt((num * num + num2 * num2)) < 2800f) { Main.player[myPlayer].AddBuff(calamity.BuffType("Afflicted"), 20, true); } } } }
public override void UpdateAccessory(Player player, bool hideVisual) { if (!Fargowiltas.Instance.CalamityLoaded) { return; } FargoPlayer modPlayer = player.GetModPlayer <FargoPlayer>(mod); CalamityPlayer calamityPlayer = player.GetModPlayer <CalamityPlayer>(calamity); calamityPlayer.statigelSet = true; player.doubleJumpSail = true; player.jumpBoost = true; if (Soulcheck.GetValue("Slime God Minion")) { //summon calamityPlayer.slimeGod = true; if (player.whoAmI == Main.myPlayer) { if (player.FindBuffIndex(calamity.BuffType("SlimeGod")) == -1) { player.AddBuff(calamity.BuffType("SlimeGod"), 3600, true); } if (WorldGen.crimson && player.ownedProjectileCounts[calamity.ProjectileType("SlimeGodAlt")] < 1) { Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, calamity.ProjectileType("SlimeGodAlt"), 33, 0f, Main.myPlayer, 0f, 0f); return; } if (!WorldGen.crimson && player.ownedProjectileCounts[calamity.ProjectileType("SlimeGod")] < 1) { Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, calamity.ProjectileType("SlimeGod"), 33, 0f, Main.myPlayer, 0f, 0f); } } } calamity.GetItem("FungalSymbiote").UpdateAccessory(player, hideVisual); //counter scarf calamityPlayer.dodgeScarf = true; calamityPlayer.dashMod = 1; }
public override void UpdateAccessory(Player player, bool hideVisual) { FargoPlayer modPlayer = player.GetModPlayer <FargoPlayer>(mod); //mythril if (Soulcheck.GetValue("Mythril Speedup") && !modPlayer.TerrariaSoul) { modPlayer.AttackSpeed *= 1.2f; } //shards modPlayer.CobaltEnchant = true; //regen on hit, heals modPlayer.PalladiumEffect(); //fireballs and petals modPlayer.OrichalcumEffect(); //split modPlayer.AdamantiteEnchant = true; //shadow dodge modPlayer.TitaniumEffect(); }
private void Thorium(Player player) { ThoriumPlayer thoriumPlayer = player.GetModPlayer <ThoriumPlayer>(thorium); //phylactery if (!thoriumPlayer.lichPrevent) { player.AddBuff(thorium.BuffType("LichActive"), 60, true); } //crystal scorpion if (Soulcheck.GetValue("Crystal Scorpion")) { thoriumPlayer.crystalScorpion = true; } //yumas pendant if (Soulcheck.GetValue("Yuma's Pendant")) { thoriumPlayer.yuma = true; } }
public override void UpdateAccessory(Player player, bool hideVisual) { if (!Fargowiltas.Instance.CalamityLoaded) { return; } CalamityPlayer modPlayer = player.GetModPlayer <CalamityPlayer>(calamity); //all modPlayer.victideSet = true; if (player.GetModPlayer <FargoPlayer>().Eternity) { return; } if (Soulcheck.GetValue("Victide Sea Urchin")) { //summon modPlayer.urchin = true; if (player.whoAmI == Main.myPlayer) { if (player.FindBuffIndex(calamity.BuffType("Urchin")) == -1) { player.AddBuff(calamity.BuffType("Urchin"), 3600, true); } if (player.ownedProjectileCounts[calamity.ProjectileType("Urchin")] < 1) { Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, calamity.ProjectileType("Urchin"), 0, 0f, Main.myPlayer, 0f, 0f); } } } calamity.GetItem("DeepDiver").UpdateAccessory(player, hideVisual); calamity.GetItem("TheTransformer").UpdateAccessory(player, hideVisual); if (Soulcheck.GetValue("Luxor's Gift")) { calamity.GetItem("LuxorsGift").UpdateAccessory(player, hideVisual); } }
public override void Update(Player player, ref int buffIndex) { if (player.whoAmI == Main.myPlayer) { FargoPlayer fargoPlayer = player.GetModPlayer <FargoPlayer>(); if (Soulcheck.GetValue("Abominationn Minion")) { fargoPlayer.Abominationn = true; if (player.ownedProjectileCounts[mod.ProjectileType("Abominationn")] < 1) { Projectile.NewProjectile(player.Center, Vector2.Zero, mod.ProjectileType("Abominationn"), 0, 10f, player.whoAmI, -1); } } if (player.ownedProjectileCounts[mod.ProjectileType("PhantasmalRing")] < 1) { Projectile.NewProjectile(player.Center, Vector2.Zero, mod.ProjectileType("PhantasmalRing"), 0, 0f, player.whoAmI); } } }
public override void UpdateAccessory(Player player, bool hideVisual) { FargoPlayer fargoPlayer = player.GetModPlayer <FargoPlayer>(); fargoPlayer.SupremeDeathbringerFairy = true; //slimy shield player.buffImmune[BuffID.Slimed] = true; if (Soulcheck.GetValue("Slimy Shield Effects")) { player.maxFallSpeed *= 2f; player.GetModPlayer <FargoPlayer>().SlimyShield = true; } //agitating lens player.buffImmune[mod.BuffType("Berserked")] = true; fargoPlayer.AllDamageUp(.10f); fargoPlayer.AgitatingLens = true; //queen stinger player.buffImmune[mod.BuffType("Infested")] = true; player.armorPenetration += 10; player.npcTypeNoAggro[210] = true; player.npcTypeNoAggro[211] = true; player.npcTypeNoAggro[42] = true; player.npcTypeNoAggro[231] = true; player.npcTypeNoAggro[232] = true; player.npcTypeNoAggro[233] = true; player.npcTypeNoAggro[234] = true; player.npcTypeNoAggro[235] = true; fargoPlayer.QueenStinger = true; //necromantic brew player.buffImmune[mod.BuffType("Lethargic")] = true; fargoPlayer.NecromanticBrew = true; if (Soulcheck.GetValue("Skeletron Arms Minion")) { player.AddBuff(mod.BuffType("SkeletronArms"), 2); } }
private void Thorium(Player player, bool hideVisual) { ThoriumPlayer thoriumPlayer = player.GetModPlayer <ThoriumPlayer>(thorium); //bee booties if (Soulcheck.GetValue("Bee Booties")) { thorium.GetItem("BeeBoots").UpdateAccessory(player, hideVisual); player.moveSpeed -= 0.15f; player.maxRunSpeed -= 1f; } //venom woofer for (int i = 0; i < 255; i++) { Player player2 = Main.player[i]; if (player2.active && !player2.dead && Vector2.Distance(player2.Center, player.Center) < 450f) { thoriumPlayer.empowerVenom = true; } } }
public override void UpdateAccessory(Player player, bool hideVisual) { player.buffImmune[mod.BuffType("Flipped")] = true; player.buffImmune[mod.BuffType("FlippedHallow")] = true; player.buffImmune[mod.BuffType("Unstable")] = true; //player.buffImmune[mod.BuffType("CurseoftheMoon")] = true; player.buffImmune[BuffID.VortexDebuff] = true; player.buffImmune[BuffID.ChaosState] = true; if (Soulcheck.GetValue("Gravity Control")) { player.gravControl = true; } if (Soulcheck.GetValue("True Eyes Minion")) { player.AddBuff(mod.BuffType("TrueEyes"), 2); } player.GetModPlayer <FargoPlayer>().GravityGlobeEX = true; player.GetModPlayer <FargoPlayer>().wingTimeModifier += 1f; }
private void Thorium(Player player) { ThoriumPlayer thoriumPlayer = player.GetModPlayer <ThoriumPlayer>(thorium); if (Soulcheck.GetValue("Ghastly Carapace")) { //ghastly carapace if (!thoriumPlayer.lifePrevent) { player.AddBuff(thorium.BuffType("GhastlySoul"), 60, true); } } if (Soulcheck.GetValue("Spirit Trapper Wisps")) { //spirit trapper set bonus thoriumPlayer.spiritTrapper = true; } //inner flame thoriumPlayer.spiritFlame = true; }