Reverted Void of Calamity removal for now

Maybe we officially decide to remove it later idk, but it was definitely done hastily
This commit is contained in:
CongratsIsTrash committed 2026-04-02 14:46:05 -04:00
1 parent 491394c4c9
commit fdd39bef7e
9 files changed
+153 -3

No files matched your search

+2
View File
@@ -1037,6 +1037,7 @@ namespace CalamityMod.CalPlayer
public bool baroclaw = false;
public bool IsFirstDashFrame = true;
public int fallingBootVelCheckTimer = 0;
public bool voidOfCalamity = false;
public bool apollyon = false;
public bool eArtifact = false;
public bool dArtifact = false;
@@ -2465,6 +2466,7 @@ namespace CalamityMod.CalPlayer
darkSunRing = false;
crawCarapace = false;
baroclaw = false;
voidOfCalamity = false;
apollyon = false;
eArtifact = false;
dArtifact = false;
-1
View File
@@ -25,7 +25,6 @@ namespace CalamityMod.Items.Accessories
Item.value = CalamityGlobalItem.RarityLimeBuyPrice;
Item.rare = ItemRarityID.Lime;
Item.accessory = true;
Item.expert = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+42
View File
@@ -0,0 +1,42 @@
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Typeless;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
[LegacyName("CalamityRing")]
public class VoidofCalamity : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 20;
Item.height = 22;
Item.value = CalamityGlobalItem.RarityLimeBuyPrice;
Item.rare = ItemRarityID.Lime;
Item.accessory = true;
Item.expert = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.voidOfCalamity = true;
player.GetDamage<GenericDamageClass>() += 0.12f;
if (player.whoAmI == Main.myPlayer)
{
var source = player.GetSource_Accessory(Item);
if (player.immune)
{
if (player.miscCounter % 10 == 0)
{
int damage = (int)player.GetBestClassDamage().ApplyTo(30);
CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ModContent.ProjectileType<StandingFire>(), damage, 5f, player.whoAmI);
}
}
}
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 613 B

+2 -1
View File
@@ -72,7 +72,8 @@ namespace CalamityMod.Items.TreasureBags
// Equipment
itemLoot.Add(ModContent.ItemType<ChaosStone>(), DropHelper.BagWeaponDropRateFraction);
itemLoot.Add(ModContent.ItemType<Regenerator>());
itemLoot.Add(ModContent.ItemType<Regenerator>(), DropHelper.BagWeaponDropRateFraction);
itemLoot.Add(ModContent.ItemType<VoidofCalamity>());
itemLoot.AddRevBagAccessories();
// Vanity
@@ -2086,6 +2086,15 @@ VitalJelly: {
Tooltip: 12% increased movement and jump speed
}
VoidofCalamity: {
DisplayName: Void of Calamity
Tooltip:
'''
12% increased damage
Brimstone fire rains down after getting hit
'''
}
VoltaicJelly: {
DisplayName: Voltaic Jelly
Tooltip:
@@ -136,6 +136,7 @@ SlimeStream.DisplayName: Slime Stream
SlurperBobber.DisplayName: Slurper Bobber
SpiritOriginBullseye.DisplayName: Spirit Origin Bullseye
SpringStoolFX.DisplayName: Spring Stool
StandingFire.DisplayName: Flame
StarStruckWaterBottle.DisplayName: Bottle
StepStoolBonusFX.DisplayName: Step Stool Bonus
StickyFeatherAero.DisplayName: Feather
+2 -1
View File
@@ -1052,8 +1052,9 @@ namespace CalamityMod.NPCs.CalClone
// Equipment
// 16NOV2025: Ozzatron: item has been chosen as the "Expert gatekept" item for this Calamity boss
// normalOnly.Add(ModContent.ItemType<Regenerator>());
// normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType<VoidofCalamity>()));
normalOnly.Add(ModContent.ItemType<ChaosStone>(), DropHelper.NormalWeaponDropRateFraction);
normalOnly.Add(ModContent.ItemType<Regenerator>(), DropHelper.NormalWeaponDropRateFraction);
// Materials
normalOnly.Add(ModContent.ItemType<EssenceofHavoc>(), 1, 8, 10);
+95
View File
@@ -0,0 +1,95 @@
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Dusts;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Typeless
{
public class StandingFire : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Typeless";
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public override void SetDefaults()
{
Projectile.width = 6;
Projectile.height = 12;
Projectile.friendly = true;
Projectile.penetrate = -1;
Projectile.timeLeft = 240;
Projectile.usesIDStaticNPCImmunity = true;
Projectile.idStaticNPCHitCooldown = 7;
}
public override void AI()
{
if (Projectile.velocity.X != Projectile.velocity.X)
{
Projectile.velocity.X = Projectile.velocity.X * -0.1f;
}
if (Projectile.velocity.X != Projectile.velocity.X)
{
Projectile.velocity.X = Projectile.velocity.X * -0.5f;
}
if (Projectile.velocity.Y != Projectile.velocity.Y && Projectile.velocity.Y > 1f)
{
Projectile.velocity.Y = Projectile.velocity.Y * -0.5f;
}
Projectile.ai[0] += 1f;
if (Projectile.ai[0] > 5f)
{
Projectile.ai[0] = 5f;
if (Projectile.velocity.Y == 0f && Projectile.velocity.X != 0f)
{
Projectile.velocity.X = Projectile.velocity.X * 0.97f;
if ((double)Projectile.velocity.X > -0.01 && (double)Projectile.velocity.X < 0.01)
{
Projectile.velocity.X = 0f;
Projectile.netUpdate = true;
}
}
Projectile.velocity.Y = Projectile.velocity.Y + 0.2f;
}
Projectile.rotation += Projectile.velocity.X * 0.1f;
if (Projectile.ai[1] == 0f && Projectile.type >= ProjectileID.GreekFire1 && Projectile.type <= ProjectileID.GreekFire3)
{
Projectile.ai[1] = 1f;
SoundEngine.PlaySound(SoundID.Item13, Projectile.position);
}
int brimDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 1f);
Dust dust = Main.dust[brimDust];
dust.position.X -= 2f;
dust.position.Y += 2f;
dust.scale += (float)Main.rand.Next(50) * 0.01f;
dust.noGravity = true;
dust.velocity.Y -= 2f;
if (Main.rand.NextBool())
{
int brimDusty = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 1f);
Dust dusty = Main.dust[brimDusty];
dusty.position.X -= 2f;
dusty.position.Y += 2f;
dusty.scale += 0.3f + (float)Main.rand.Next(50) * 0.01f;
dusty.noGravity = true;
dusty.velocity *= 0.1f;
}
if ((double)Projectile.velocity.Y < 0.25 && (double)Projectile.velocity.Y > 0.15)
{
Projectile.velocity.X = Projectile.velocity.X * 0.8f;
}
Projectile.rotation = -Projectile.velocity.X * 0.05f;
if (Projectile.velocity.Y > 16f)
{
Projectile.velocity.Y = 16f;
}
}
public override bool OnTileCollide(Vector2 oldVelocity) => false;
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
}
}