reworks to laudanum and stress pills
This commit is contained in:
1 parent
560f79a6fd
commit
718d6bcd32
7 files changed
+58
-31
No files matched your search
@@ -78,6 +78,7 @@ namespace CalamityMod.Buffs
|
||||
|
||||
public override void ModifyBuffTip(int type, ref string tip, ref int rare)
|
||||
{
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
if (type == BuffID.NebulaUpDmg1)
|
||||
tip = "7.5% increased damage";
|
||||
else if (type == BuffID.NebulaUpDmg2)
|
||||
@@ -119,7 +120,6 @@ namespace CalamityMod.Buffs
|
||||
tip += ". Provides cold protection in Death Mode";
|
||||
else if (type == ModContent.BuffType<ProfanedBabs>())
|
||||
{
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
bool offense = player.Calamity().gOffense;
|
||||
bool defense = player.Calamity().gDefense;
|
||||
if (player.Calamity().profanedCrystal && (!player.Calamity().profanedCrystalBuffs && !CalamityWorld.downedSCal))
|
||||
@@ -137,21 +137,20 @@ namespace CalamityMod.Buffs
|
||||
}
|
||||
else if (type == ModContent.BuffType<ProfanedCrystalBuff>())
|
||||
{
|
||||
if (Main.player[Main.myPlayer].Calamity().profanedCrystalBuffs)
|
||||
if (player.Calamity().profanedCrystalBuffs)
|
||||
{
|
||||
if (Main.player[Main.myPlayer].Calamity().endoCooper)
|
||||
if (player.Calamity().endoCooper)
|
||||
{
|
||||
tip = "An ascended ice construct is suppressing your true potential..";
|
||||
}
|
||||
else if (Main.player[Main.myPlayer].Calamity().magicHat)
|
||||
else if (player.Calamity().magicHat)
|
||||
{
|
||||
tip = "A magical hat overwhelms your senses, squandering your true potential..";
|
||||
}
|
||||
else
|
||||
{
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
bool offense = (Main.dayTime && !player.wet) || player.lavaWet;
|
||||
bool enrage = player.statLife <= (int)((double)player.statLifeMax2 * 0.5);
|
||||
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") +
|
||||
@@ -163,6 +162,13 @@ namespace CalamityMod.Buffs
|
||||
tip = "Your profaned soul is constrained by your insufficient summoning powers";
|
||||
}
|
||||
}
|
||||
else if (type == ModContent.BuffType<Horror>())
|
||||
{
|
||||
if (player.Calamity().laudanum || player.Calamity().draedonsHeart)
|
||||
{
|
||||
tip = "The horror fuels your strength";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -314,6 +314,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool affliction = false;
|
||||
public bool stressPills = false;
|
||||
public bool laudanum = false;
|
||||
public bool doubledHorror = false;
|
||||
public bool heartOfDarkness = false;
|
||||
public bool draedonsHeart = false;
|
||||
public bool draedonsStressGain = false;
|
||||
@@ -1689,6 +1690,7 @@ namespace CalamityMod.CalPlayer
|
||||
icicleCooldown = 0;
|
||||
statisTimer = 0;
|
||||
hallowedRuneCooldown = 0;
|
||||
doubledHorror = false;
|
||||
|
||||
alcoholPoisoning = false;
|
||||
shadowflame = false;
|
||||
@@ -3170,7 +3172,8 @@ namespace CalamityMod.CalPlayer
|
||||
#region SpeedBoosts
|
||||
float runAccMult = 1f +
|
||||
(shadowSpeed ? 0.5f : 0f) +
|
||||
((stressPills || laudanum || draedonsHeart) ? 0.05f : 0f) +
|
||||
(stressPills ? 0.05f : 0f) +
|
||||
(laudanum && horror ? 0.1f : 0f) +
|
||||
((abyssalDivingSuit && player.IsUnderwater()) ? 0.05f : 0f) +
|
||||
(sirenWaterBuff ? 0.15f : 0f) +
|
||||
((frostFlare && player.statLife < (int)(player.statLifeMax2 * 0.25)) ? 0.15f : 0f) +
|
||||
@@ -3196,7 +3199,8 @@ namespace CalamityMod.CalPlayer
|
||||
(silvaSet ? 0.05f : 0f) +
|
||||
(eTracers ? 0.05f : 0f) +
|
||||
(etherealExtorter && player.ZoneBeach ? 0.05f : 0f) +
|
||||
((stressPills || laudanum || draedonsHeart) ? 0.05f : 0f) +
|
||||
(stressPills ? 0.05f : 0f) +
|
||||
(laudanum && horror ? 0.1f : 0f) +
|
||||
(planarSpeedBoost > 0 ? (0.01f * planarSpeedBoost) : 0f) +
|
||||
((deepDiver && player.IsUnderwater()) ? 0.15f : 0f) +
|
||||
(rogueStealthMax > 0f ? (rogueStealth >= rogueStealthMax ? rogueStealth * 0.05f : rogueStealth * 0.025f) : 0f);
|
||||
@@ -6327,7 +6331,11 @@ namespace CalamityMod.CalPlayer
|
||||
if (CalamityMod.CalamityConfig.AdrenalineAndRage && CalamityWorld.revenge)
|
||||
{
|
||||
if (!adrenalineMode && damage > 0) //to prevent paladin's shield ruining adren even with 0 dmg taken
|
||||
adrenaline = 0;
|
||||
{
|
||||
adrenaline -= stressPills ? adrenalineMax / 2 : adrenalineMax;
|
||||
if (adrenaline < 0)
|
||||
adrenaline = 0;
|
||||
}
|
||||
}
|
||||
if (amidiasBlessing)
|
||||
{
|
||||
|
||||
@@ -1099,24 +1099,36 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
// Stress Pills bonus
|
||||
if (modPlayer.stressPills)
|
||||
{
|
||||
player.statDefense += 8;
|
||||
player.allDamage += 0.08f;
|
||||
}
|
||||
|
||||
// Laudanum bonus
|
||||
if (modPlayer.laudanum)
|
||||
{
|
||||
player.statDefense += 6;
|
||||
player.allDamage += 0.06f;
|
||||
if (Main.myPlayer == player.whoAmI)
|
||||
{
|
||||
for (int l = 0; l < Player.MaxBuffs; l++)
|
||||
{
|
||||
int hasBuff = player.buffType[l];
|
||||
if (!modPlayer.doubledHorror && hasBuff == ModContent.BuffType<Horror>())
|
||||
{
|
||||
player.buffTime[l] *= 2;
|
||||
modPlayer.doubledHorror = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (modPlayer.horror)
|
||||
{
|
||||
player.statDefense += 15;
|
||||
player.allDamage += 0.1f;
|
||||
player.moveSpeed += 0.15f;
|
||||
player.nightVision = true;
|
||||
}
|
||||
}
|
||||
if (!modPlayer.horror)
|
||||
modPlayer.doubledHorror = false;
|
||||
|
||||
// Draedon's Heart bonus
|
||||
if (modPlayer.draedonsHeart)
|
||||
{
|
||||
player.allDamage += 0.1f;
|
||||
player.allDamage += 0.05f;
|
||||
if ((double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0)
|
||||
player.statDefense += 25;
|
||||
}
|
||||
@@ -2760,7 +2772,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.magicDamage -= 0.1f;
|
||||
}
|
||||
|
||||
if (modPlayer.horror)
|
||||
if (modPlayer.horror && !modPlayer.laudanum)
|
||||
{
|
||||
player.blind = true;
|
||||
player.statDefense -= 15;
|
||||
|
||||
@@ -924,7 +924,6 @@ namespace CalamityMod
|
||||
ModContent.BuffType<Plague>(),
|
||||
ModContent.BuffType<AbyssalFlames>(),
|
||||
ModContent.BuffType<CrushDepth>(),
|
||||
ModContent.BuffType<Horror>(),
|
||||
ModContent.BuffType<MarkedforDeath>(),
|
||||
ModContent.BuffType<WarCleave>(),
|
||||
ModContent.BuffType<ArmorCrunch>(),
|
||||
|
||||
@@ -15,10 +15,12 @@ namespace CalamityMod.Items.Accessories
|
||||
DisplayName.SetDefault("Draedon's Heart");
|
||||
Tooltip.SetDefault("Gives 10% increased damage while you have the absolute rage buff\n" +
|
||||
"Increases your chance of getting the absolute rage buff\n" +
|
||||
"Boosts your damage by 10% and max movement speed and acceleration by 5%\n" +
|
||||
"Boosts your damage by 5% and max movement speed and acceleration by 5%\n" +
|
||||
"Rage mode does more damage\n" +
|
||||
"You gain rage over time\n" +
|
||||
"Gives immunity to the horror debuff\n" +
|
||||
"The Horror debuff lasts twice as long,\n" +
|
||||
"but it instead grants various buffs to the player\n" +
|
||||
"Receiving a hit causes you to only lose half of your max adrenaline rather than all of it\n" +
|
||||
"Standing still regenerates your life quickly and boosts your defense by 25");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 7));
|
||||
}
|
||||
@@ -35,8 +37,9 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.laudanum = true;
|
||||
modPlayer.stressPills = true;
|
||||
modPlayer.draedonsHeart = true;
|
||||
player.buffImmune[ModContent.BuffType<Horror>()] = true;
|
||||
modPlayer.draedonsStressGain = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,9 +9,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Laudanum");
|
||||
Tooltip.SetDefault("Boosts your damage by 6%,\n" +
|
||||
"defense by 6, and max movement speed and acceleration by 5%\n" +
|
||||
"Makes you immune to The Horror debuff\n" +
|
||||
Tooltip.SetDefault("The Horror debuff lasts twice as long,\n" +
|
||||
"but it instead grants various buffs to the player\n" +
|
||||
"Revengeance drop");
|
||||
}
|
||||
|
||||
@@ -28,7 +27,6 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.laudanum = true;
|
||||
player.buffImmune[ModContent.BuffType<Horror>()] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,9 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Stress Pills");
|
||||
Tooltip.SetDefault("Boosts your damage by 8%,\n" +
|
||||
"defense by 8, and max movement speed and acceleration by 5%\n" +
|
||||
"Revengeance drop");
|
||||
Tooltip.SetDefault("Boosts your defense by 4 and max movement speed and acceleration by 5%\n" +
|
||||
"Receiving a hit causes you to only lose half of your max adrenaline rather than all of it\n" +
|
||||
"Revengeance drop");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -25,6 +25,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.statDefense += 4;
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.stressPills = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user