2 - Adjusted Hallowed Rune, Spirit Glyph and Phantomic Artifact buffs to be less insane. 3 - Reduced Camper regen. 4 - Boss Effects is now applied by the boss to each player within 6400 units of it. 5 - Angel Treads improve wing flight time by 10% instead of 20%. 6 - Adjusted several tooltips to state that they don't work during boss fights or have reduced effect during boss fights. 7 - Reworked Arbalest, Skullmasher and Pearl God. Skullmasher is not done yet though. 8 - Fixed Golden Eagle spread. 9 - Normality Relocator states that it gives portal gun fall speed for 30 frames after a teleport. 10 - Gael's Greatsword drops from Malice Mode SCal. 11 - Perforator Hive doesn't deal contact damage for 3 seconds after spawning.
57 lines
2.1 KiB
C#
57 lines
2.1 KiB
C#
using CalamityMod.World;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Buffs.StatBuffs
|
|
{
|
|
public class ProfanedCrystalBuff : ModBuff
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
DisplayName.SetDefault("Devotion");
|
|
Description.SetDefault("The profaned soul within has been defiled by the powerful magic of a supreme witch");
|
|
Main.debuff[Type] = true;
|
|
Main.buffNoSave[Type] = true;
|
|
Main.buffNoTimeDisplay[Type] = true;
|
|
canBeCleared = false;
|
|
}
|
|
|
|
public override void Update(Player player, ref int buffIndex)
|
|
{
|
|
if (CalamityWorld.downedSCal && (player.Calamity().minionSlotStat - player.slotsMinions) >= 10 && !player.Calamity().profanedCrystalForce)
|
|
{
|
|
player.Calamity().profanedCrystalBuffs = true;
|
|
}
|
|
}
|
|
|
|
public override void ModifyBuffTip(ref string tip, ref int rare)
|
|
{
|
|
Player player = Main.player[Main.myPlayer];
|
|
if (player.Calamity().profanedCrystalBuffs)
|
|
{
|
|
if (player.Calamity().endoCooper)
|
|
{
|
|
tip = "An ascended ice construct is suppressing your true potential..";
|
|
}
|
|
else if (player.Calamity().magicHat)
|
|
{
|
|
tip = "A magical hat overwhelms your senses, squandering your true potential..";
|
|
}
|
|
else
|
|
{
|
|
bool offense = (Main.dayTime && !player.wet) || player.lavaWet;
|
|
bool enrage = player.statLife <= (int)(player.statLifeMax2 * 0.5);
|
|
tip = "You are an emissary of the profaned goddess now!\n" +
|
|
(offense ? "The " + (Main.dayTime ? "light of the sun" : "heat of the lava") + " empowers your offensive capabilities" :
|
|
"The " + (player.wet ? (player.honeyWet ? "honey cools" : "water douses") : "darkness of night cools") + " your flames, empowering your defensive capabilities") +
|
|
(enrage ? "\nYour weakened life force fuels your desperate attacks" : "");
|
|
}
|
|
}
|
|
else if (CalamityWorld.downedSCal)
|
|
{
|
|
tip = "Your profaned soul is constrained by your insufficient summoning powers";
|
|
}
|
|
}
|
|
}
|
|
}
|