public override void Update(Player player, ref int buffIndex) { player.findTreasure = true; Lighting.AddLight((int)((double)player.position.X + (double)(player.width / 2)) / 16, (int)((double)player.position.Y + (double)(player.height / 2)) / 16, 0.8f, 0.95f, 1f); player.nightVision = true; player.detectCreature = true; player.pickSpeed -= 0.25f; player.dangerSense = true; player.gills = true; player.waterWalk = true; player.ignoreWater = true; player.accFlipper = true; player.buffImmune[4] = true; player.buffImmune[15] = true; player.buffImmune[109] = true; player.buffImmune[9] = true; player.buffImmune[11] = true; player.buffImmune[12] = true; player.buffImmune[17] = true; player.buffImmune[104] = true; player.buffImmune[111] = true; BuffLoader.Update(BuffID.Gills, player, ref buffIndex); BuffLoader.Update(BuffID.Flipper, player, ref buffIndex); BuffLoader.Update(BuffID.Shine, player, ref buffIndex); }
public override void Update(Player player, ref int buffIndex) { AlchemistNPCLitePlayer modPlayer = player.GetModPlayer <AlchemistNPCLitePlayer>(); modPlayer.Defense8 = true; modPlayer.DR10 = true; modPlayer.Regeneration = true; modPlayer.Lifeforce = true; modPlayer.MS = true; player.longInvince = true; if (NPC.downedMechBoss2) { player.buffImmune[39] = true; player.buffImmune[69] = true; } player.buffImmune[24] = true; player.buffImmune[44] = true; player.buffImmune[46] = true; player.buffImmune[47] = true; player.lavaImmune = true; player.fireWalk = true; player.buffImmune[1] = true; player.buffImmune[2] = true; player.buffImmune[5] = true; player.buffImmune[14] = true; player.buffImmune[113] = true; player.buffImmune[114] = true; player.buffImmune[ModContent.BuffType <Buffs.LongInvincible>()] = true; player.buffImmune[ModContent.BuffType <Buffs.TitanSkin>()] = true; if (player.thorns < 1.0) { player.thorns = 0.3333333f; } BuffLoader.Update(BuffID.ObsidianSkin, player, ref buffIndex); }
public override void Update(Player player, ref int buffIndex) { AlchemistNPCLitePlayer modPlayer = player.GetModPlayer <AlchemistNPCLitePlayer>(); modPlayer.Defense8 = true; modPlayer.DR10 = true; modPlayer.Regeneration = true; modPlayer.Lifeforce = true; modPlayer.MS = true; player.lavaImmune = true; player.fireWalk = true; player.buffImmune[1] = true; player.buffImmune[2] = true; player.buffImmune[5] = true; player.buffImmune[14] = true; player.buffImmune[113] = true; player.buffImmune[114] = true; if (player.thorns < 1.0) { player.thorns = 0.3333333f; } BuffLoader.Update(BuffID.ObsidianSkin, player, ref buffIndex); }
public override void Update(Player player, ref int buffIndex) { AlchemistNPCPlayer modPlayer = player.GetModPlayer <AlchemistNPCPlayer>(); modPlayer.AllDamage10 = true; modPlayer.AllCrit10 = true; modPlayer.Defense8 = true; modPlayer.DR10 = true; modPlayer.Regeneration = true; modPlayer.Lifeforce = true; modPlayer.MS = true; player.magicDamage += 0.25f; player.magicCrit += 2; player.statManaMax2 += 20; player.manaCost -= 0.02f; player.manaRegenBuff = true; player.archery = true; player.ammoPotion = true; player.lavaImmune = true; player.fireWalk = true; player.buffImmune[24] = true; player.buffImmune[29] = true; player.buffImmune[39] = true; player.buffImmune[44] = true; player.buffImmune[46] = true; player.buffImmune[47] = true; player.buffImmune[69] = true; player.buffImmune[110] = true; player.buffImmune[112] = true; player.buffImmune[113] = true; player.buffImmune[114] = true; player.buffImmune[115] = true; player.buffImmune[117] = true; player.buffImmune[150] = true; player.buffImmune[mod.BuffType("BattleComb")] = true; player.buffImmune[mod.BuffType("TankComb")] = true; player.buffImmune[mod.BuffType("VanTankComb")] = true; player.buffImmune[mod.BuffType("RangerComb")] = true; player.buffImmune[mod.BuffType("MageComb")] = true; player.buffImmune[mod.BuffType("SummonerComb")] = true; player.buffImmune[1] = true; player.buffImmune[2] = true; player.buffImmune[3] = true; player.buffImmune[5] = true; player.buffImmune[6] = true; player.buffImmune[7] = true; player.buffImmune[14] = true; ++player.maxMinions; ++player.maxMinions; if (ModLoader.GetMod("MorePotions") != null) { if (player.HasBuff(mod.BuffType("MorePotionsComb")) || player.HasBuff(ModLoader.GetMod("MorePotions").BuffType("SoulbindingElixerPotionBuff"))) { --player.maxMinions; } if (player.HasBuff(mod.BuffType("MorePotionsComb")) || player.HasBuff(ModLoader.GetMod("MorePotions").BuffType("DiamondSkinPotionBuff"))) { player.statDefense -= 8; } } if (player.thorns < 1.0) { player.thorns = 0.3333333f; } BuffLoader.Update(BuffID.ObsidianSkin, player, ref buffIndex); }
public override void Update(Player player, ref int buffIndex) { AlchemistNPCLitePlayer modPlayer = player.GetModPlayer <AlchemistNPCLitePlayer>(); modPlayer.AllDamage10 = true; modPlayer.AllCrit10 = true; modPlayer.Defense8 = true; modPlayer.DR10 = true; modPlayer.Regeneration = true; modPlayer.Lifeforce = true; modPlayer.MS = true; player.GetDamage(DamageClass.Magic) += 0.25f; player.GetCritChance(DamageClass.Magic) += 2; player.statManaMax2 += 20; player.manaCost -= 0.02f; player.manaRegenBuff = true; player.archery = true; player.ammoPotion = true; player.lavaImmune = true; player.fireWalk = true; player.buffImmune[24] = true; player.buffImmune[29] = true; player.buffImmune[39] = true; player.buffImmune[44] = true; player.buffImmune[46] = true; player.buffImmune[47] = true; player.buffImmune[69] = true; player.buffImmune[110] = true; player.buffImmune[112] = true; player.buffImmune[113] = true; player.buffImmune[114] = true; player.buffImmune[115] = true; player.buffImmune[117] = true; player.buffImmune[150] = true; player.buffImmune[ModContent.BuffType <Buffs.BattleComb>()] = true; player.buffImmune[ModContent.BuffType <Buffs.TankComb>()] = true; player.buffImmune[ModContent.BuffType <Buffs.VanTankComb>()] = true; player.buffImmune[ModContent.BuffType <Buffs.RangerComb>()] = true; player.buffImmune[ModContent.BuffType <Buffs.MageComb>()] = true; player.buffImmune[ModContent.BuffType <Buffs.SummonerComb>()] = true; player.buffImmune[1] = true; player.buffImmune[2] = true; player.buffImmune[5] = true; player.buffImmune[6] = true; player.buffImmune[7] = true; player.buffImmune[14] = true; ++player.maxMinions; ++player.maxMinions; // IMPLEMENT WHEN WEAKREFERENCES FIXED /* * if (ModLoader.GetMod("MorePotions") != null) * { * if (player.HasBuff(ModContent.BuffType<Buffs.MorePotionsComb>()) || player.HasBuff(ModLoader.GetMod("MorePotions").BuffType("SoulbindingElixerPotionBuff"))) * { * --player.maxMinions; * } * if (player.HasBuff(ModContent.BuffType<Buffs.MorePotionsComb>()) || player.HasBuff(ModLoader.GetMod("MorePotions").BuffType("DiamondSkinPotionBuff"))) * { * player.statDefense -= 8; * } * } */ if (player.thorns < 1.0) { player.thorns = 0.3333333f; } BuffLoader.Update(BuffID.ObsidianSkin, player, ref buffIndex); }