From f21b7f462ec4f1161c0abae7c50d9630a3fc9c93 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 25 May 2025 18:32:30 -0400 Subject: [PATCH] 1 - Removed Divine Retribution by the dedicatee's request. 2 - Removed all mentions of Divine Retribution's dedicatee from the codebase, at their request. --- .../DevPaintings/ThankYouPainting.cs | 1 - Items/Weapons/Magic/DivineRetribution.cs | 68 -------- Items/Weapons/Magic/DivineRetribution.png | Bin 2013 -> 0 bytes ...Mods.CalamityMod.Items.Weapons.Magic.hjson | 5 - NPCs/CalamityGlobalTownNPC.cs | 1 - Projectiles/Magic/DivineRetributionSpear.cs | 147 ------------------ Projectiles/Magic/DivineRetributionSpear.png | Bin 552 -> 0 bytes Systems/Collections/DonatorsNameList.cs | 1 - TileEntities/TECalamityPylon.cs | 2 +- 9 files changed, 1 insertion(+), 224 deletions(-) delete mode 100644 Items/Weapons/Magic/DivineRetribution.cs delete mode 100644 Items/Weapons/Magic/DivineRetribution.png delete mode 100644 Projectiles/Magic/DivineRetributionSpear.cs delete mode 100644 Projectiles/Magic/DivineRetributionSpear.png diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs index fccabfaca5..20c2fa389b 100644 --- a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs @@ -166,7 +166,6 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "Phantasmal Deathray", "Phupperbat", "Pinkie Poss", - "pixlgray", "Poly", "Popo", "President Waluigi", diff --git a/Items/Weapons/Magic/DivineRetribution.cs b/Items/Weapons/Magic/DivineRetribution.cs deleted file mode 100644 index c45ed84228..0000000000 --- a/Items/Weapons/Magic/DivineRetribution.cs +++ /dev/null @@ -1,68 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Projectiles.Magic; -using CalamityMod.Rarities; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Weapons.Magic -{ - public class DivineRetribution : ModItem, ILocalizedModType - { - public new string LocalizationCategory => "Items.Weapons.Magic"; - public override void SetStaticDefaults() - { - Item.staff[Type] = true; - } - - public override void SetDefaults() - { - Item.width = 66; - Item.height = 88; - Item.damage = 48; - Item.DamageType = DamageClass.Magic; - Item.mana = 15; - Item.useTime = 12; - Item.useAnimation = 12; - Item.useStyle = ItemUseStyleID.Shoot; - Item.noMelee = true; - Item.knockBack = 3.5f; - - Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; - Item.rare = ModContent.RarityType(); - Item.Calamity().donorItem = true; - - Item.UseSound = SoundID.Item73; - Item.autoReuse = true; - Item.shootSpeed = 25f; - Item.shoot = ModContent.ProjectileType(); - } - - - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) - { - // 5 projectiles total - Vector2 mouse = player.ClampedMouseWorld(); - for (int i = -2; i < 3; i++) - { - Vector2 newPos = new Vector2(mouse.X + Main.rand.NextFloat(8f, 64f) * i, player.MountedCenter.Y + Main.rand.NextFloat(640f, 800f)); - Vector2 newVel = (mouse + Main.rand.NextVector2CircularEdge(4f, 4f) - newPos).SafeNormalize(Vector2.Zero) * velocity.Length() * Main.rand.NextFloat(1f, 1.25f); - float velScale = 1f + Main.rand.NextFloat(0.02f, 0.08f) * i; - Projectile.NewProjectile(source, newPos, newVel, type, damage, knockback, player.whoAmI, velScale); - } - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddIngredient(8). - AddIngredient(10). - AddTile(TileID.MythrilAnvil). - Register(); - } - } -} diff --git a/Items/Weapons/Magic/DivineRetribution.png b/Items/Weapons/Magic/DivineRetribution.png deleted file mode 100644 index 4a5c496127f07a7369b91e62b5837a047b3ef4b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2013 zcmV<32O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G1+Rd`msPISKZr|(9%gP4e?}IIXBO<1h ziRkD&3dG}e4%t*cjT+E5F`YXhw&M~)rqdmfDv>IEvj^ZS2W3%~`JOt-dw z{Gwe`s8^_0VR9))gwbgeq4O2(?G2_SABcbB6HNSG#wy=-)eB36Ak7d`c}tf8utGa5zE75$KezVNDDti+gY-rV zRavnNT~+Uq(dpJ^iAq@+^8Vz(4#`{6LQ=zYMbA&_b2uW5lCC~=WM^=Ar#3|a9+_2U z^?PZxu^M;q(C^fTNuV zHCM@Oxss5dmj%G0hpzX%2+cI#TvL6@S?)yTh%id{TRh=yI2livaEY~DU0tPdzv-Vg zt3BurKla+E0Nh`Gh1IU4c{4~Kg}`}4%1Sx2)KO(!YE7Vol;lVa(j5s((3@+jefwz! z+4ishFK|+oBf=sof$I6_uVhm3^GWL2&05O zLhnSP?@|Ymu=HJ-&+w9vJ7}OqLQmcKAUPt8lCCuhhe(~@ctGlYuQzDi_hyZ25<;d!Lc9!zowFY_^UidPz`u zGe*r5`l=ieMzPGYyWdURl)D^&uZ>6O_<>42K}jfx$Qv<#H_J;+eKlIB91%u=wZ>c1 zg#dknRsV-!dyAV0>Mc|w07LFI@riW8x~q$$7C>afK8wmK(E-m=ea7cyG9{KpQ@ zb`^QLazq$~Cr^}TdhUY1%>O?M8F6nAA`Z35cebUjw)d~H7vzXA3RiBEXZmC^IR2~o*uMu`Wc**`h%ovOVB*FuxPnLv00000NkvXXu0mjfY=6c? diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index 8886653a5d..abce23f859 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -250,11 +250,6 @@ DeathValleyDuster: { ''' } -DivineRetribution: { - DisplayName: Divine Retribution - Tooltip: Mage is superior to rogue; look, we got a donor weapon to prove it! -} - Downpour: { DisplayName: Downpour Tooltip: diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index c50caa0208..ab1dfa927a 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -250,7 +250,6 @@ namespace CalamityMod.NPCs }; private static readonly string[] WizardNames = { - "Mage One-Trick", // <@!340996105460514816> (pixlgray) "Inorim, son of Ivukey", "Jensen", "Merasmus", // <@!288066987819663360> (spiderprovidence) diff --git a/Projectiles/Magic/DivineRetributionSpear.cs b/Projectiles/Magic/DivineRetributionSpear.cs deleted file mode 100644 index f1b2dc7525..0000000000 --- a/Projectiles/Magic/DivineRetributionSpear.cs +++ /dev/null @@ -1,147 +0,0 @@ -using System; -using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Dusts; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.Audio; -using Terraria.GameContent; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Magic -{ - public class DivineRetributionSpear : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Magic"; - public Player Owner => Main.player[Projectile.owner]; - public ref float VelocityScale => ref Projectile.ai[0]; - public ref float Time => ref Projectile.ai[1]; - - public static float HomingSpeed => 20f; - public static float HomingTime => 15f; - public static float ReturnTime => 75f; - - public override void SetStaticDefaults() - { - ProjectileID.Sets.CultistIsResistantTo[Type] = true; - ProjectileID.Sets.TrailCacheLength[Type] = 15; - ProjectileID.Sets.TrailingMode[Type] = 2; - } - - public override void SetDefaults() - { - Projectile.width = Projectile.height = 30; - Projectile.friendly = true; - Projectile.ignoreWater = true; - Projectile.tileCollide = false; - Projectile.DamageType = DamageClass.Magic; - Projectile.penetrate = 1; - Projectile.timeLeft = 210; - } - - public override void AI() - { - Projectile.rotation = Projectile.velocity.ToRotation(); - - Time++; - Projectile.Opacity = Utils.GetLerpValue(0f, 18f, Projectile.timeLeft, true); - Lighting.AddLight(Projectile.Center, Color.Gold.ToVector3() * 0.7f * Projectile.Opacity); - - if (Time % 2f == 1f) - { - Vector2 dustOffset = (Vector2.UnitY * MathF.Sin(Projectile.timeLeft * MathHelper.Pi * 0.05f) * 16f).RotatedBy(Projectile.velocity.ToRotation()); - Dust dust = Dust.NewDustPerfect(Projectile.Center + dustOffset, ModContent.DustType()); - dust.noGravity = true; - dust.noLightEmittence = true; - dust.color = Main.rand.NextBool() ? Color.Orange : Color.Goldenrod; - dust.scale = Main.rand.NextFloat(0.4f, 0.6f); - } - - NPC potentialTarget = Projectile.Center.ClosestNPCAt(Time >= ReturnTime ? 480f : 320f); - if (potentialTarget != null && Time >= HomingTime) - { - Vector2 idealVelocity = Projectile.SafeDirectionTo(potentialTarget.Center) * HomingSpeed * VelocityScale; - Projectile.velocity = (Projectile.velocity * 29f + idealVelocity) / 30f; - Projectile.velocity = Projectile.velocity.MoveTowards(idealVelocity, 3f); - return; - } - else if (Owner.active && !Owner.dead && Time >= ReturnTime) - { - Vector2 idealVelocity = Projectile.SafeDirectionTo(Owner.MountedCenter) * HomingSpeed * VelocityScale * (1.2f - Utils.GetLerpValue(800f, 160f, Vector2.Distance(Projectile.Center, Owner.MountedCenter), true)); - Projectile.velocity = (Projectile.velocity * 29f + idealVelocity) / 30f; - Projectile.velocity = Projectile.velocity.MoveTowards(idealVelocity, 3f); - } - if (!Owner.active || Owner.dead || (Vector2.Distance(Projectile.Center, Owner.MountedCenter) <= 240f && Time >= ReturnTime)) - { - Projectile.timeLeft--; - if (!Owner.active || Owner.dead || Vector2.Distance(Projectile.Center, Owner.MountedCenter) <= 80f) - { - if (Projectile.timeLeft > 30) - Projectile.timeLeft = 30; - } - } - } - - public override bool PreDraw(ref Color lightColor) - { - Texture2D spear = TextureAssets.Projectile[Type].Value; - Vector2 drawPos = Projectile.Center - Main.screenPosition; - - float cLerp = Utils.GetLerpValue(210, 160, Projectile.timeLeft, true); - Color baseColor = Color.Lerp(Color.Goldenrod, new Color(255, 255, 150), cLerp) * Projectile.Opacity; - Color glowColor = Color.Lerp(Color.OrangeRed, Color.Orange, cLerp) * Projectile.Opacity; - - float squish = MathHelper.Clamp(Projectile.velocity.Length() * 0.04f, 0, 0.2f); - Vector2 scale = new Vector2(1f + squish, 1f - squish); - - Main.spriteBatch.EnterShaderRegion(BlendState.Additive); - if (CalamityClientConfig.Instance.Afterimages) - { - for (int i = 0; i < Projectile.oldPos.Length; i++) - { - float completionRatio = i / (float)Projectile.oldPos.Length; - Vector2 trailPos = Projectile.oldPos[i] + Projectile.Size * 0.5f - Main.screenPosition; - - Color trailColor = Color.Lerp(glowColor, Color.Black, completionRatio) * 0.35f; - Vector2 trailScale = scale * MathHelper.Lerp(1f, 0.15f, completionRatio); - - Main.EntitySpriteDraw(spear, trailPos, null, trailColor, Projectile.oldRot[i], spear.Size() * 0.5f, trailScale, SpriteEffects.None); - } - } - - for (int i = 0; i < 8; i++) - { - Vector2 offset = (MathHelper.TwoPi * i / 8f).ToRotationVector2() * 4f; - Main.EntitySpriteDraw(spear, drawPos + offset, null, Color.Lerp(baseColor, glowColor, 0.8f) * 0.5f, Projectile.rotation, spear.Size() * 0.5f, scale, SpriteEffects.None); - } - Main.spriteBatch.ExitShaderRegion(); - - Main.EntitySpriteDraw(spear, drawPos, null, baseColor, Projectile.rotation, spear.Size() * 0.5f, scale, SpriteEffects.None); - return false; - } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 180); - - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 180); - - public override void OnKill(int timeLeft) - { - Projectile.ExpandHitboxBy(96); - Projectile.maxPenetrate = -1; - Projectile.penetrate = -1; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10; - Projectile.Damage(); - SoundEngine.PlaySound(SoundID.Item74, Projectile.Center); - for (int i = 0; i < 9; i++) - { - Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType(), Main.rand.NextVector2CircularEdge(5f, 5f)); - dust.noGravity = true; - dust.noLightEmittence = true; - dust.color = Main.rand.NextBool() ? Color.Orange : Color.Goldenrod; - dust.scale = Main.rand.NextFloat(0.8f, 1.4f); - } - } - } -} diff --git a/Projectiles/Magic/DivineRetributionSpear.png b/Projectiles/Magic/DivineRetributionSpear.png deleted file mode 100644 index c8b7e089ab0e526003140ff9250360b8e5e0e512..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 552 zcmV+@0@wYCP)Px$;z>k7RA@u(nN5y@KoEuDFsw}66FCGYaBJe)gfnmeOxSV)4uNq`;)-KF!ONCRQm7S_W(uY14WCHC+Y8f&zes1jrXJ*4)!7?f?>RtBKXK~`ZRG*Wy% z?`!Am2EvZVqcmxxFj-^kBNOOlF%U&Dr)jtr>XtmuWeSb~Ac(UQo}W%9hdAtm>ltJx z5Q_DX-MF3sDVQ%byJ;~>(+BIAK#D?7fjopgn>osJ_R+Fa=sC?|V-OTFfdWzD^v`t< zVwLt5&&w>f4$|~8fdWYy+l^mUzV2OYtRUQfwF233hX)-KDA2d;$Tg58JG2iZDzr>^ qcRKqn=27lz1$vj5)qHwhnn1sC%D&kr8fN$a0000 /// This is an empty child class that acts exactly like the default implementation of the abstract /// class, which itself acts nearly identical to vanilla pylon TEs. This inheritance only exists so that modded pylon entities