Post-provi fixes/tweaks

- Profaned Soul Artifact no longer breaks other mod's infinite potions
- Polterghast is now neutral to all debuff types instead of just resistant to sickness
- Signus Cosmic lanterns take 3 hits to kill
This commit is contained in:
Doze-Zoze committed 2025-09-18 13:57:41 -05:00
1 parent 26722c79a8
commit 72e2ff88db
4 files changed
+15 -6

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Summon;
using Terraria;
using Terraria.ModLoader;
@@ -15,7 +16,7 @@ namespace CalamityMod.Buffs.Summon
public override void Update(Player player, ref int buffIndex)
{
CalamityPlayer modPlayer = player.Calamity();
if (!modPlayer.pSoulGuardians || modPlayer.profanedCrystalBuffs)
if (player.ownedProjectileCounts[ModContent.ProjectileType<MiniGuardianAttack>()] <= 0 || modPlayer.profanedCrystalBuffs)
{
player.DelBuff(buffIndex);
buffIndex--;
+3 -1
View File
@@ -4030,7 +4030,9 @@ namespace CalamityMod.CalPlayer
if (Player.whoAmI == Main.myPlayer)
{
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<ProfanedSoulArtifact>()));
if (Player.FindBuffIndex(ModContent.BuffType<ProfanedSoulGuardians>()) == -1)
if (Player.HasBuff(ModContent.BuffType<ProfanedSoulGuardians>()))
Player.buffTime[Player.FindBuffIndex(ModContent.BuffType<ProfanedSoulGuardians>())] = 3600;
else
Player.AddBuff(ModContent.BuffType<ProfanedSoulGuardians>(), 3600, true);
pSoulGuardians = true;
-1
View File
@@ -130,7 +130,6 @@ namespace CalamityMod.NPCs.Polterghast
NPC.netAlways = true;
NPC.HitSound = HitSound;
NPC.DeathSound = SoundID.NPCDeath39;
NPC.Calamity().VulnerableToSickness = false;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
+10 -3
View File
@@ -26,25 +26,27 @@ namespace CalamityMod.NPCs.Signus
{
GlowTexture = ModContent.Request<Texture2D>(Texture + "Glow", AssetRequestMode.AsyncLoad);
}
NPCID.Sets.DontDoHardmodeScaling[Type] = true; //prevent HP from scaling. We manually scale the damage to compensate
}
public override void SetDefaults()
{
NPC.damage = 120; // 240
NPC.damage = 120 * (Main.masterMode ? 3 : Main.expertMode ? 2 : 1); // 240
NPC.aiStyle = -1;
AIType = -1;
NPC.width = 25;
NPC.height = 25;
NPC.defense = 50;
NPC.lifeMax = 25;
NPC.lifeMax = 3;
NPC.alpha = 255;
NPC.knockBackResist = 0.85f;
NPC.knockBackResist = 0f;
NPC.noGravity = true;
NPC.dontTakeDamage = true;
NPC.chaseable = false;
NPC.noTileCollide = true;
NPC.HitSound = SoundID.NPCHit53;
NPC.DeathSound = SoundID.NPCDeath44;
NPC.SuperArmor = true;
NPC.Calamity().VulnerableToSickness = false;
}
@@ -116,6 +118,11 @@ namespace CalamityMod.NPCs.Signus
CalamityRegularEnemyAI.DungeonSpiritAI(NPC, Mod, playerDistNormMult, 0f, true);
}
public override void ModifyIncomingHit(ref NPC.HitModifiers modifiers)
{
modifiers.DisableCrit();
}
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
{
SpriteEffects spriteEffects = SpriteEffects.None;