Terminus resprite + minor tooltip revision

- Gave Terminus' glow mask a subtle animation similar to Xeroc's eye, or Fallen Stars on the ground.
- Revised Terminus' tooltip to make it read easier. I didn't add any lore flairs, since I figure someone else wants to do that later.
This commit is contained in:
apotofkoolaid committed 2026-02-19 08:55:59 -06:00
1 parent 76dc15edf9
commit b33c0bc4f1
5 files changed
+99 -19

No files matched your search

+65 -12
View File
@@ -13,8 +13,8 @@ namespace CalamityMod.Items.SummonItems
public new string LocalizationCategory => "Items.SummonItems";
public override void SetDefaults()
{
Item.width = Main.zenithWorld ? 54 : 28;
Item.height = Main.zenithWorld ? 78 : 28;
Item.width = Main.zenithWorld ? 54 : 70;
Item.height = Main.zenithWorld ? 78 : 80;
Item.rare = ItemRarityID.Blue;
Item.useAnimation = 45;
Item.useTime = 45;
@@ -31,17 +31,67 @@ namespace CalamityMod.Items.SummonItems
Item.SetNameOverride(this.GetLocalizedValue("GFBName"));
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
// The wiki classifies Boss Rush as an event
itemGroup = ContentSamples.CreativeHelper.ItemGroup.EventItem;
}
#region Sprite Drawing
public static void DrawTerminusGlow(SpriteBatch spriteBatch, Vector2 baseDrawPosition, Rectangle frame, float rotation, float baseScale)
{
Texture2D glowTexture = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/TerminusGlow").Value;
Vector2 origin = frame.Size() * 0.5f;
float pulseRate = Main.GlobalTimeWrappedHourly % 5f;
float slowingRate = Main.GlobalTimeWrappedHourly * 0.4f;
float orbitRadius = baseScale != 1f ? 4f : 7f;
float glowCount = 3f;
pulseRate /= 2.5f;
if (pulseRate >= 1f)
pulseRate = 2f - pulseRate;
pulseRate *= 0.6f;
for (int i = 0; i < glowCount; i++)
{
float progress = i / glowCount;
float pulseRotation = (progress + slowingRate) * MathHelper.TwoPi;
Vector2 offset = Vector2.UnitY * orbitRadius;
offset = offset.RotatedBy(pulseRotation) * pulseRate;
spriteBatch.Draw(glowTexture, baseDrawPosition + offset, frame, new Color(56, 12, 115, 33), rotation, origin, baseScale, 0, 0);
}
spriteBatch.Draw(glowTexture, baseDrawPosition, frame, Color.White, rotation, origin, baseScale, 0, 0);
}
public static void DrawGlowInWorld(SpriteBatch spriteBatch, Vector2 baseDrawPosition, float rotation, float baseScale)
{
Texture2D glowTexture = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/TerminusGlow").Value;
Rectangle frame = glowTexture.Bounds;
DrawTerminusGlow(spriteBatch, baseDrawPosition + new Vector2(0, -1), frame, rotation, baseScale);
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture;
float invScale = scale * 1.4f;
if (Main.zenithWorld)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/Terminus_GFB").Value;
Color overlay = Color.White;
spriteBatch.Draw(texture, position, null, overlay, 0f, origin, scale, 0, 0);
return false;
texture = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/Terminus_GFB").Value;
spriteBatch.Draw(texture, position - new Vector2(-4, -1), null, Color.White, 0f, origin, invScale - 0.04f, 0, 0);
}
else
return true;
{
texture = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/Terminus").Value;
spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, invScale, 0, 0);
DrawTerminusGlow(spriteBatch, position, frame, 0f, invScale);
}
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
@@ -49,17 +99,20 @@ namespace CalamityMod.Items.SummonItems
if (Main.zenithWorld)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/Terminus_GFB").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, 0, 0);
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, rotation, Vector2.Zero, scale, 0, 0);
return false;
}
else
return true;
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
// The wiki classifies Boss Rush as an event
itemGroup = ContentSamples.CreativeHelper.ItemGroup.EventItem;
if (!Main.zenithWorld)
{
DrawGlowInWorld(spriteBatch, Item.Center - Main.screenPosition, rotation, scale);
}
}
#endregion
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

@@ -286,7 +286,7 @@ Teratoma: {
Terminus: {
DisplayName: Terminus
GFBName: Ogscule
Tooltip: Activates Boss Rush Mode, using it again will deactivate Boss Rush Mode
Tooltip: Hold <left> to start or end the Boss Rush
}
YharonEgg: {
+33 -6
View File
@@ -28,8 +28,8 @@ namespace CalamityMod.Projectiles.Typeless
public override void SetDefaults()
{
Projectile.width = 50;
Projectile.height = 50;
Projectile.width = 70;
Projectile.height = 80;
Projectile.aiStyle = -1;
Projectile.ignoreWater = true;
Projectile.tileCollide = false;
@@ -130,6 +130,8 @@ namespace CalamityMod.Projectiles.Typeless
int dustCount = (int)Math.Round(MathHelper.SmoothStep(1f, 5f, Time / Lifetime));
float outwardness = MathHelper.SmoothStep(40f, 150f, Time / Lifetime);
float dustScale = MathHelper.Lerp(1.15f, 1.725f, Time / Lifetime);
float colorTime = Time / Lifetime * Main.rand.NextFloat(0.65f, 1f);
for (int i = 0; i < dustCount; i++)
{
Vector2 spawnPosition = Projectile.Center + Main.rand.NextVector2Unit() * outwardness * Main.rand.NextFloat(0.75f, 1.1f);
@@ -138,7 +140,7 @@ namespace CalamityMod.Projectiles.Typeless
Dust paleMagic = Dust.NewDustPerfect(spawnPosition, DustID.PortalBoltTrail);
paleMagic.velocity = dustVelocity;
paleMagic.scale = dustScale * Main.rand.NextFloat(0.75f, 1.15f);
paleMagic.color = Color.Lerp(Color.LightCoral, Color.White, Time / Lifetime * Main.rand.NextFloat(0.65f, 1f));
paleMagic.color = Main.zenithWorld ? Color.Lerp(Color.LightCoral, Color.White, colorTime) : Color.Lerp(Color.Violet, Color.Goldenrod, colorTime);
paleMagic.noGravity = true;
paleMagic.noLight = true;
}
@@ -169,8 +171,8 @@ namespace CalamityMod.Projectiles.Typeless
SpriteEffects direction = Projectile.spriteDirection == 1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally;
if (Time >= 150f)
{
float outwardness = MathHelper.SmoothStep(1f, 15f, Utils.GetLerpValue(150f, Lifetime - 30f, Time, true));
Color afterimageColor = Color.Lerp(baseColor, Color.LightCoral, Utils.GetLerpValue(150f, 195f, Time, true)) * 0.225f;
float outwardness = MathHelper.SmoothStep(0f, 12f, Utils.GetLerpValue(150f, Lifetime - 30f, Time, true));
Color afterimageColor = Color.Lerp(baseColor, Color.PaleGoldenrod, Utils.GetLerpValue(150f, 195f, Time, true)) * 0.225f;
afterimageColor.A = 0;
for (int i = 0; i < 10; i++)
@@ -179,9 +181,34 @@ namespace CalamityMod.Projectiles.Typeless
Main.EntitySpriteDraw(texture, baseDrawPosition + drawOffset, null, afterimageColor, 0f, origin, Projectile.scale, direction, 0);
}
}
Main.EntitySpriteDraw(texture, baseDrawPosition, null, baseColor, 0f, origin, Projectile.scale, direction, 0);
Main.EntitySpriteDraw(texture, baseDrawPosition, null, baseColor, 0f, origin, Projectile.scale, direction, 0);
return false;
}
public override void PostDraw(Color lightColor)
{
if (Main.zenithWorld)
return;
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/TerminusGlow").Value;
Vector2 baseDrawPosition = Projectile.Center - Main.screenPosition;
Vector2 origin = texture.Size() * 0.5f;
SpriteEffects direction = Projectile.spriteDirection == 1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally;
if (Time >= 75f)
{
float outwardness = MathHelper.SmoothStep(0f, 4f, Utils.GetLerpValue(75f, Lifetime - 30f, Time, true));
for (int i = 0; i < 3; i++)
{
Vector2 drawOffset = (MathHelper.TwoPi * i / 4f + Main.GlobalTimeWrappedHourly * 4.4f).ToRotationVector2() * outwardness;
Main.EntitySpriteDraw(texture, baseDrawPosition + drawOffset, null, new Color(56, 12, 115, 0), 0f, origin, Projectile.scale, direction, 0);
}
}
Main.EntitySpriteDraw(texture, baseDrawPosition, null, Color.White, 0f, origin, Projectile.scale, direction, 0);
}
}
}