Fixed critters taking damage from weird things

This commit is contained in:
Dominic committed 2022-04-29 00:34:59 -05:00
1 parent ec0b1b6653
commit 2ddf7e8ee4
3 files changed
+9 -15

No files matched your search

+2 -8
View File
@@ -29,15 +29,9 @@ namespace CalamityMod.NPCs.Astral
return true;
}
public override bool? CanBeHitByItem(Player player, Item item)
{
return true;
}
public override bool? CanBeHitByItem(Player player, Item item) => null;
public override bool? CanBeHitByProjectile(Projectile projectile)
{
return true;
}
public override bool? CanBeHitByProjectile(Projectile projectile) => null;
public override float SpawnChance(NPCSpawnInfo spawnInfo)
{
+5 -5
View File
@@ -33,16 +33,16 @@ namespace CalamityMod.NPCs.Astral
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
//BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralSurface,
//BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralSurface,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("A rare case of the astral infection creating a harmless creature. They flicker rather prettily, and you’re not going to be the only one who thinks so. They make useful bait.")
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("A rare case of the astral infection creating a harmless creature. They flicker rather prettily, and you’re not going to be the only one who thinks so. They make useful bait.")
});
}
public override bool? CanBeHitByItem(Player player, Item item) => true;
public override bool? CanBeHitByItem(Player player, Item item) => null;
public override bool? CanBeHitByProjectile(Projectile projectile) => true;
public override bool? CanBeHitByProjectile(Projectile projectile) => null;
public override void HitEffect(int hitDirection, double damage)
{
+2 -2
View File
@@ -82,9 +82,9 @@ namespace CalamityMod.NPCs.DraedonLabThings
PreviousStuckPosition = reader.ReadVector2();
}
public override bool? CanBeHitByItem(Player player, Item item) => true;
public override bool? CanBeHitByItem(Player player, Item item) => null;
public override bool? CanBeHitByProjectile(Projectile projectile) => true;
public override bool? CanBeHitByProjectile(Projectile projectile) => null;
public override void AI()
{