private static void DownedAnnihilatorEffect(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { if (Laugicality.soulStoneAbility.JustPressed) { laugicalityPlayer.AbilityCount++; if (laugicalityPlayer.AbilityCount > 2) { laugicalityPlayer.AbilityCount = 0; } Main.NewText("You have currently stacked the ability " + laugicalityPlayer.AbilityCount.ToString() + " times.", 225, 225, 225); } if (laugicalityPlayer.AbilityCount > 0) { if (NPC.downedMoonlord) { laugicalityPlayer.DamageBoost(1f * laugicalityPlayer.AbilityCount); laugicalityPlayer.player.endurance -= 2f * laugicalityPlayer.AbilityCount; } else { laugicalityPlayer.DamageBoost(.25f * laugicalityPlayer.AbilityCount); laugicalityPlayer.player.endurance -= .8f * laugicalityPlayer.AbilityCount; } } }
private static void DownedAnDioEffect(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { if (Laugicality.zaWarudo > 0) { laugicalityPlayer.DamageBoost(.15f); } }
private static void DownedEyeOfCthulhuEffect(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { if (!Main.dayTime) { laugicalityPlayer.DamageBoost(.05f); } }
private static void CurseEffect3(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { if (laugicalityPlayer.player.statLife > laugicalityPlayer.player.statLifeMax2 / 2) { laugicalityPlayer.DamageBoost(-.2f); } }
private static void DownedEtheriaEffect(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { if (LaugicalityWorld.downedEtheria || laugicalityPlayer.Etherable > 0) { laugicalityPlayer.DamageBoost(.2f); } }
private static void DownedDukeFishronEffect(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { if (laugicalityPlayer.player.wet || laugicalityPlayer.player.honeyWet || laugicalityPlayer.player.lavaWet) { laugicalityPlayer.DamageBoost(.1f); } }
private static void DownedSlybertronEffect(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { if (laugicalityPlayer.player.potionDelay > 0) { laugicalityPlayer.DamageBoost(.1f); } }
private static void DownedRagnarEffect(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { laugicalityPlayer.player.lavaRose = true; if (laugicalityPlayer.player.onFire) { laugicalityPlayer.DamageBoost(.25f); laugicalityPlayer.player.statDefense += 15; } }
private static void DownedSteamTrainEffect(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { laugicalityPlayer.SteamTrainEffect = true; laugicalityPlayer.player.longInvince = true; if (laugicalityPlayer.player.immuneTime > 0 && laugicalityPlayer.player.immune) { laugicalityPlayer.DamageBoost(.1f); } }
private static void DownedGolemEffect(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { if (Main.dayTime) { laugicalityPlayer.player.statDefense += 5; laugicalityPlayer.DamageBoost(.05f); laugicalityPlayer.player.lifeRegen += 5; laugicalityPlayer.player.endurance += .05f; } }
private static void DownedRagnarEffect(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { laugicalityPlayer.player.lavaImmune = true; laugicalityPlayer.player.fireWalk = true; laugicalityPlayer.player.buffImmune[BuffID.OnFire] = true; if (laugicalityPlayer.player.HasBuff(BuffID.Wrath)) { laugicalityPlayer.DamageBoost(.05f); } }
public override void UpdateAccessory(Player player, bool hideVisual) { LaugicalityPlayer modPlayer = player.GetModPlayer <LaugicalityPlayer>(); if (player.ZoneUnderworldHeight || modPlayer.zoneObsidium) { modPlayer.DamageBoost(.1f); player.statDefense += 5; } player.lavaImmune = true; player.fireWalk = true; player.buffImmune[BuffID.OnFire] = true; }
private static void DownedDuneSharkronEffect(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { laugicalityPlayer.DamageBoost(.2f * (1 - ((float)laugicalityPlayer.player.statLife / (float)laugicalityPlayer.player.statLifeMax2))); }
//Curses private static void CurseEffect1(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { laugicalityPlayer.DamageBoost(-.05f); }
private static void DownedSkeletronPrimeEffect(LaugicalityPlayer laugicalityPlayer, bool hideAccessory) { laugicalityPlayer.DamageBoost((laugicalityPlayer.GetGlobalDamage() - 1) / 2); }