polyperil resprites while i wait for triangle to animate them

also fixed voltaic being incorrectly named radiant since its an enemy not a critter and adjusted their tentacle colours
This commit is contained in:
enamoured_ committed 2025-05-24 05:26:34 -04:00
1 parent 238f2909f6
commit cd499a20c8
9 files changed
+10 -23

No files matched your search

@@ -301,7 +301,6 @@ ProbesnoutGold.DisplayName: Gold Probesnout
PrismaticGuppy.DisplayName: Prismatic Guppy
RadiantBabyGhostBell: Radiant Baby Ghost Bell
RadiantPolypPanasea: Radiant Polyp Panasea
RadiantPolyperil: Radiant Polyperil
RadiantPrismaticGuppy: Radiant Prismatic Guppy
RadiantSlugbun: Radiant Slugbun
SandProwler.DisplayName: Sand Prowler
+6 -18
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.NPCs.SunkenSea
public static Asset<Texture2D> pinkTexture = null;
public static Asset<Texture2D> radiantTexture = null;
public static Asset<Texture2D> voltaicTexture = null;
// The tentacles do all the work
protected override List<int> PreyIDs => new List<int>();
@@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.SunkenSea
pinkTexture = ModContent.Request<Texture2D>(Texture + "Pink");
blueTexture = ModContent.Request<Texture2D>(Texture + "Blue");
greenTexture = ModContent.Request<Texture2D>(Texture + "Green");
radiantTexture = ModContent.Request<Texture2D>(Texture + "Radiant");
voltaicTexture = ModContent.Request<Texture2D>(Texture + "Voltaic");
}
public override void SetStaticDefaults()
@@ -94,13 +94,9 @@ namespace CalamityMod.NPCs.SunkenSea
{
// Pick a random color
Color = Main.rand.Next(0, 3);
// 1 in 30 chance to be Radiant
if (Main.rand.NextBool(30))
{
// 1 in 15 chance to be Voltaic
if (Main.rand.NextBool(15))
Color = 3;
NPC.rarity = 3;
NPC.value = 100000;
}
// Spawn tentacles
int dist = 80;
@@ -110,7 +106,7 @@ namespace CalamityMod.NPCs.SunkenSea
{
if (Main.netMode != NetmodeID.MultiplayerClient)
{
Vector2 pos = NPC.Center + new Vector2(Main.rand.Next(-dist, dist), Main.rand.Next(-dist, dist));
Vector2 pos = NPC.Center + new Vector2(Main.rand.Next(-dist, dist), 20);
NPC tent = NPC.NewNPCDirect(NPC.GetSource_FromThis(), NPC.Center, ModContent.NPCType<PolyperilTentacle>(), ai0: NPC.whoAmI);
tent.ModNPC<PolyperilTentacle>().anchor = pos;
}
@@ -150,14 +146,6 @@ namespace CalamityMod.NPCs.SunkenSea
}
}
public override void ModifyTypeName(ref string typeName)
{
if (Color == 3)
{
typeName = CalamityUtils.GetTextValue("NPCs.RadiantPolyperil");
}
}
public override bool CanBeHitByNPC(NPC attacker)
{
return PredatorIDs.Contains(attacker.type);
@@ -197,7 +185,7 @@ namespace CalamityMod.NPCs.SunkenSea
{
1 => blueTexture.Value,
2 => greenTexture.Value,
3 => radiantTexture.Value,
3 => voltaicTexture.Value,
_ => pinkTexture.Value
};
Binary file not shown.

Before

Width:  |  Height:  |  Size: 390 B

After

Width:  |  Height:  |  Size: 543 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 620 B

After

Width:  |  Height:  |  Size: 853 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 690 B

After

Width:  |  Height:  |  Size: 882 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 664 B

After

Width:  |  Height:  |  Size: 849 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 665 B

+4 -4
View File
@@ -240,10 +240,10 @@ namespace CalamityMod.NPCs.SunkenSea
// Color is based on parent color
Color col = parent.ai[1] switch
{
1 => new Color(27, 233, 255),
2 => new Color(7, 255, 204),
3 => Color.Cyan,
_ => new Color(255, 220, 248)
1 => new Color(27, 190, 255),
2 => new Color(7, 255, 180),
3 => new Color(122, 255, 240),
_ => new Color(255, 140, 248)
};
// Desaturate as parent's health lowers
Binary file not shown.

After

Width:  |  Height:  |  Size: 818 B