PSA tweaks

This commit is contained in:
ben-tk committed 2022-10-04 19:00:05 -04:00
1 parent 8b1773ec2b
commit a14caba5f6
3 files changed
+19 -41

No files matched your search

+2 -10
View File
@@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.Summon
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Profaned Soul");
Description.SetDefault("The healer will heal your wounds!");
Description.SetDefault("The Profaned Babs will fight for and defend you!");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
//Main.persistentBuff[Type] = true;
@@ -34,18 +34,10 @@ namespace CalamityMod.Buffs.Summon
Player player = Main.player[Main.myPlayer];
bool offense = player.Calamity().gOffense;
bool defense = player.Calamity().gDefense;
if (player.Calamity().profanedCrystal && (!player.Calamity().profanedCrystalBuffs && !DownedBossSystem.downedSCal))
if (player.Calamity().profanedCrystal && (!player.Calamity().profanedCrystalBuffs && (!DownedBossSystem.downedSCal || !DownedBossSystem.downedExoMechs)))
{
tip = "The Profaned Babs will accompany you!";
}
else if (offense && defense)
{
tip = "The Profaned Babs will fight for and defend you!";
}
else if (offense || defense)
{
tip = "The " + (offense ? "Offensive" : "Defensive") + " Duo will " + (offense ? "fight for and heal you!" : "protect and heal you!");
}
}
}
}
+14 -28
View File
@@ -976,12 +976,6 @@ namespace CalamityMod.CalPlayer
Player.endurance += 0.025f +
(attack ? 0.025f : 0f);
}
if (attack)
{
Player.GetDamage<SummonDamageClass>() += 0.1f +
(defend ? 0.05f : 0f);
}
}
// You always get the max minions, even during the effect of the burnout debuff
@@ -3095,36 +3089,28 @@ namespace CalamityMod.CalPlayer
if (Player.FindBuffIndex(ModContent.BuffType<ProfanedBabs>()) == -1 && !profanedCrystalBuffs)
Player.AddBuff(ModContent.BuffType<ProfanedBabs>(), 3600, true);
bool crystal = profanedCrystal && !profanedCrystalForce;
bool summonSet = tarraSummon || bloodflareSummon || silvaSummon || dsSetBonus || omegaBlueSet || fearmongerSet;
int guardianAmt = 1;
if (Player.ownedProjectileCounts[ModContent.ProjectileType<MiniGuardianHealer>()] < guardianAmt)
Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, 0f, -6f, ModContent.ProjectileType<MiniGuardianHealer>(), 0, 0f, Main.myPlayer, 0f, 0f);
if (crystal || Player.maxMinions >= 10)
{
gDefense = true;
gDefense = true;
if (Player.ownedProjectileCounts[ModContent.ProjectileType<MiniGuardianDefense>()] < guardianAmt)
{
int guardian = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, 0f, -3f, ModContent.ProjectileType<MiniGuardianDefense>(), 1, 1f, Main.myPlayer, 0f, 0f);
if (Main.projectile.IndexInRange(guardian))
Main.projectile[guardian].originalDamage = 1;
}
}
if (Player.ownedProjectileCounts[ModContent.ProjectileType<MiniGuardianDefense>()] < guardianAmt)
{
int guardian = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, 0f, -3f, ModContent.ProjectileType<MiniGuardianDefense>(), 1, 1f, Main.myPlayer, 0f, 0f);
if (Main.projectile.IndexInRange(guardian))
Main.projectile[guardian].originalDamage = 1;
}
if (crystal || summonSet)
{
gOffense = true;
gOffense = true;
if (Player.ownedProjectileCounts[ModContent.ProjectileType<MiniGuardianAttack>()] < guardianAmt)
{
int guardian = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, 0f, -1f, ModContent.ProjectileType<MiniGuardianAttack>(), 1, 1f, Main.myPlayer, 0f, 0f);
if (Main.projectile.IndexInRange(guardian))
Main.projectile[guardian].originalDamage = 1;
}
}
if (Player.ownedProjectileCounts[ModContent.ProjectileType<MiniGuardianAttack>()] < guardianAmt)
{
int guardian = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, 0f, -1f, ModContent.ProjectileType<MiniGuardianAttack>(), 1, 1f, Main.myPlayer, 0f, 0f);
if (Main.projectile.IndexInRange(guardian))
Main.projectile[guardian].originalDamage = 1;
}
}
}
+3 -3
View File
@@ -17,9 +17,9 @@ namespace CalamityMod.Items.Accessories
SacrificeTotal = 1;
DisplayName.SetDefault("Profaned Soul Artifact");
Tooltip.SetDefault("Purity\n" +
"Summons a healer guardian which heals for a certain amount of health every few seconds\n" +
"Summons a defensive guardian if you have at least 10 minion slots, which boosts your movement speed and your damage resistance\n" +
"Summons an offensive guardian if you are wearing the tarragon summon set (or stronger), which boosts your summon damage and your minion slots\n" +
"Summons a healer guardian, which heals for a certain amount of health every few seconds\n" +
"Summons a defensive guardian, which boosts your movement speed and damage resistance\n" +
"Summons an offensive guardian, which boosts your minion slots\n" +
"If you get hit, most of their effects will disappear for 5 seconds");
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6));
ItemID.Sets.AnimatesAsSoul[Type] = true;