From 06b577f26ca945e95af903655e01ba145a38afa1 Mon Sep 17 00:00:00 2001 From: Xyk Date: Fri, 26 Apr 2024 16:46:19 -0700 Subject: [PATCH] Minor improvements --- CalamityLists.cs | 2 +- Items/Weapons/Magic/AlphaRay.cs | 4 +- .../Weapons/Magic/{Genisis.cs => Genesis.cs} | 9 +-- Items/Weapons/Magic/Genesis.png | Bin 0 -> 3542 bytes Items/Weapons/Magic/Genisis.png | Bin 1062 -> 0 bytes ...Mods.CalamityMod.Items.Weapons.Magic.hjson | 4 +- .../Mods.CalamityMod.Projectiles.Magic.hjson | 5 +- .../Magic/{GenisisBeam.cs => GenesisBeam.cs} | 56 +++++++++++++----- .../{GenisisHoldout.cs => GenesisHoldout.cs} | 30 ++++------ Projectiles/Magic/WingmanShot.cs | 4 +- 10 files changed, 66 insertions(+), 48 deletions(-) rename Items/Weapons/Magic/{Genisis.cs => Genesis.cs} (88%) create mode 100644 Items/Weapons/Magic/Genesis.png delete mode 100644 Items/Weapons/Magic/Genisis.png rename Projectiles/Magic/{GenisisBeam.cs => GenesisBeam.cs} (61%) rename Projectiles/Magic/{GenisisHoldout.cs => GenesisHoldout.cs} (74%) diff --git a/CalamityLists.cs b/CalamityLists.cs index 354f4a9b88..87cf9fd728 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1620,7 +1620,7 @@ namespace CalamityMod ItemType(), ItemType(), ItemType(), - ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), diff --git a/Items/Weapons/Magic/AlphaRay.cs b/Items/Weapons/Magic/AlphaRay.cs index 3469029b38..0bb20bd388 100644 --- a/Items/Weapons/Magic/AlphaRay.cs +++ b/Items/Weapons/Magic/AlphaRay.cs @@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Magic { if (player.altFunctionUse == 2) { - Projectile.NewProjectile(source, position.X, position.Y, velocity.X * 1.35f, velocity.Y * 1.35f, ModContent.ProjectileType(), (int)(damage * 1.6625), knockback, player.whoAmI); + Projectile.NewProjectile(source, position.X, position.Y, velocity.X * 1.35f, velocity.Y * 1.35f, ModContent.ProjectileType(), (int)(damage * 1.6625), knockback, player.whoAmI); int laserAmt = 3; float SpeedX = velocity.X + Main.rand.NextFloat(-1f, 1f); float SpeedY = velocity.Y + Main.rand.NextFloat(-1f, 1f); @@ -86,7 +86,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(2). AddIngredient(5). AddIngredient(10). diff --git a/Items/Weapons/Magic/Genisis.cs b/Items/Weapons/Magic/Genesis.cs similarity index 88% rename from Items/Weapons/Magic/Genisis.cs rename to Items/Weapons/Magic/Genesis.cs index db8ddb426e..eb4bfac67a 100644 --- a/Items/Weapons/Magic/Genisis.cs +++ b/Items/Weapons/Magic/Genesis.cs @@ -8,7 +8,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Magic { - public class Genisis : ModItem, ILocalizedModType + [LegacyName("Genisis")] + public class Genesis : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; public override void SetDefaults() @@ -30,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shootSpeed = 6f; Item.channel = true; Item.noUseGraphic = true; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ModContent.ProjectileType(); } public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; @@ -39,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void HoldItem(Player player) => player.Calamity().mouseRotationListener = true; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0, 0, 0); + Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0, 0, 0); holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero); return false; @@ -47,7 +48,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void AddRecipes() { CreateRecipe(). - AddIngredient(ItemID.LaserMachinegun). + AddIngredient(ItemID.LaserRifle). AddIngredient(ItemID.LunarBar, 5). AddIngredient(5). AddTile(TileID.LunarCraftingStation). diff --git a/Items/Weapons/Magic/Genesis.png b/Items/Weapons/Magic/Genesis.png new file mode 100644 index 0000000000000000000000000000000000000000..bb13db3ecc0bdfb59d576488f8ca5fb30e38b48d GIT binary patch literal 3542 zcmV;{4Jq=8P)f6 zXi@@54ZTQ_E-Enz5K6$103tR-RB%L5k){YTDBysjLy@r}iiH7DvFijGMAUI`6dRUF zWUU$Bym{}eS9UO(Z2>7`&z9wUXbV-Il#&6`Y8GKGQ04S2&F6MJnWNa;Ck|;8QE#r9r;7G||@X{|> z%+C|c55>;RS}qbKr-&IQTvLXPlM{>K&(BTgi^a?^4mXV>;xX8n8Ce|RasXz}{8imI52H3ZN4bfe_i~WlJ|C&UW9+{8AKoW!}eExnGFE2re(F+`iE_46#!l9 z0Z_aBhs|Iw0E)7{bq;-T9=d#9QpDmcXDh4R++0fmpKB>E=%LdZt9g$j;($`3&Zthxi`{{&gM}5&R^+h%b~yM9Zd3AWW9ETgVfL z1(`yIK=_}U_z%PWq}jQaiQ4!P(3V&Nr6C$XejWfQDiI(Fdt@un?|lo#M+5oIi_w{w zo%_#%{(V=tO#a9gB!7-$M?^BX5>d|Vn*3S!?g~$*UQipUPL&zMmg;!4Do9IA%up=Rh? z=qPj=x&RGBx1dpI68aT-2O}^EromdU5o`ssU{5#*j)WJ%$?!5bA1;Eoz?EiTr=n?cd`V|I)p<|3Oju?MT93~aB0<#&j8`F+Cg&D?-VWzQItUA^l>xvD zRIYI4MQ`g1<+DyrL=EogS06Xii({| zv`U^zjmmKqDIK93(F5q|^fLNk`gQs{RV`IdRle#b)i%{Ds;|}NsClUI)k@Ub)kf6b zsWa4l)Y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7rVqsZ3v zdxOb3JY4FdiM6~Zo%Fwr20~A6Tr0}0Bh#g~pM)NLNal8gxT43%aq@ooW<==sMujZd zD54Ex1oUB4U(4w03oD9bb1Em=*D#7J_sI>X^_|w|!qV@JQY_ghLc`)>U5IJJl3w6( z*(Qv1CY<{%!(7)dL|-v`qe2>PRHLyrs#Y{zN2z-M4W_S%^)J{P72-1L4`T-&OxYKZ QmH+?%07*qoM6N<$g3A}RjQ{`u literal 0 HcmV?d00001 diff --git a/Items/Weapons/Magic/Genisis.png b/Items/Weapons/Magic/Genisis.png deleted file mode 100644 index a7d8fbdcca45cd50976a96e5e058c37cb81f7c82..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1062 zcmV+>1ljwEP)cR(;K1n`3*Zl>-$q109a@&w(NcRNaKw54Tsi0tW5#1tACRLxVJF((s}(`68}lB z|3l2g(Bal<9>|(L1JIxBck1Wrc17o#ivUz>mC$|H*s3jk~?7M=Ub?dx2rtw3piHv816m-*`X33{Hs`F`>EJOH^&&Hzl!PKG`gD=H!@ zihA$kj{vxR#k#&$mLMxDE4uI9w_p04uU(WS43E2I;lraxobve#KLBv``)kfPzJ3Mm zZNipZ-T(witH@N^D(-o`3P7{j0AfW&rb|(RR)DNTI+Ha3&+F9|!03eC7s*OSRhFQ= zN5~!j41k>{_W|(W%i92Kz4LYGcp9Il>2_W3>nB!JM9iMuM*x^9m0AENPM>maIQRLt zKrS?TSy6w4i0f52%>i~FiYYBk6?;i!amC(!kWIW$| ze8~SFD=H$UFfb0l$QwHWc=Y>&P-RJ!5wA+7G6o>sXQPBDOCw4Xd{Jra=O)nEhyD7& zCqTDH?Y?L|O3sFt2c|>&?WH6gO$CXn^4yPS&jGQbB4bi1d)$*el2(>48j6=BlPLq8 z{f3aq+EaVI8aO+D!FK}Ch{6P&W%wre#pzG)lcIW=&nveSi`J7vXBX4OilPKj*5L3c z0JYh6RBLA%^%>5$4|*-P%>c}({FE;`R<7C=J-)-uO8Cx}U;X))GasEzkbRrb%cI1b zB+9+gw7-Zcma+M!;Gg+W&k|lY zMW=s_c-H!N+?~1aIX%B#==lS&N3900q6D9^Rx<`bdC_JT)0r&LIV "Projectiles.Magic"; public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; public ref float time => ref Projectile.ai[0]; - public Color mainColor = Color.Cyan; + public Color mainColor = Color.Indigo; public override void SetDefaults() { Projectile.width = 12; @@ -28,14 +29,14 @@ namespace CalamityMod.Projectiles.Magic } public override void AI() { - if (Projectile.timeLeft % 2 == 0 && (Projectile.ai[1] == 1 && time > 4f || time > 6f && Projectile.timeLeft > 4)) + if (Projectile.timeLeft % 2 == 0 && (Projectile.ai[1] == 1 && time > 2 || (Projectile.ai[1] == 0 && time > 3 && Projectile.timeLeft > 2))) { - Particle spark = new GlowSparkParticle(Projectile.Center, -Projectile.velocity * 0.05f, false, 17, 0.095f, mainColor, new Vector2(0.5f, 1.3f)); + Particle spark = new GlowSparkParticle(Projectile.Center, -Projectile.velocity * 0.05f, false, 17, 0.06f, mainColor, new Vector2(0.5f, 1.3f)); GeneralParticleHandler.SpawnParticle(spark); } - if (Main.rand.NextBool()) + if (Main.rand.NextBool(1)) { - Vector2 dustVel = new Vector2(5, 5).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 0.8f); + Vector2 dustVel = new Vector2(2, 2).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 0.8f); Dust dust = Dust.NewDustPerfect(Projectile.Center + dustVel, Main.rand.NextBool(4) ? 264 : 66, dustVel, 0, default, Main.rand.NextFloat(0.9f, 1.2f)); dust.noGravity = true; dust.color = Main.rand.NextBool() ? Color.Lerp(mainColor, Color.White, 0.5f) : mainColor; @@ -52,16 +53,17 @@ namespace CalamityMod.Projectiles.Magic for (int i = 0; i < numProj; i++) { Vector2 perturbedSpeed = Projectile.velocity.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, perturbedSpeed, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 1f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, perturbedSpeed, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 1f); for (int k = 0; k < 3; k++) { - Particle blastRing = new CustomPulse(Projectile.Center, Vector2.Zero, mainColor, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 0.9f, 0.6f, 30); + Particle blastRing = new CustomPulse(Projectile.Center, Vector2.Zero, mainColor, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 0.5f, 0.4f, 35); GeneralParticleHandler.SpawnParticle(blastRing); - Particle blastRing2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.White, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 0.8f, 0.4f, 30); + Particle blastRing2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.White, "CalamityMod/Particles/BloomCircle", Vector2.One, Main.rand.NextFloat(-10, 10), 0.4f, 0.3f, 35); GeneralParticleHandler.SpawnParticle(blastRing2); } } - for (int i = 0; i < 40; i++) + + for (int i = 0; i < 20; i++) { Vector2 dustVel = new Vector2(13, 13).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 0.8f); Dust dust = Dust.NewDustPerfect(Projectile.Center + dustVel, Main.rand.NextBool(4) ? 264 : 66, dustVel, 0, default, Main.rand.NextFloat(0.9f, 1.2f)); @@ -71,17 +73,39 @@ namespace CalamityMod.Projectiles.Magic } else { - for (int i = 0; i < 6; i++) + for (int i = 0; i < 18; i++) { - Particle spark2 = new GlowSparkParticle(Projectile.Center + Main.rand.NextVector2Circular(6, 6), Projectile.velocity * Main.rand.NextFloat(0.5f, 2f), false, 8, 0.03f, mainColor, new Vector2(0.4f, 1.3f)); - GeneralParticleHandler.SpawnParticle(spark2); - - Vector2 dustVel = Projectile.velocity * Main.rand.NextFloat(0.5f, 2f); - Dust dust = Dust.NewDustPerfect(Projectile.Center + dustVel, Main.rand.NextBool(4) ? 264 : 66, dustVel, 0, default, Main.rand.NextFloat(0.9f, 1.2f)); + Vector2 dustVel = Projectile.velocity * Main.rand.NextFloat(0.1f, 1.5f); + Dust dust = Dust.NewDustPerfect(Projectile.Center + dustVel + Main.rand.NextVector2Circular(6, 6), Main.rand.NextBool(4) ? 264 : 66, dustVel, 0, default, Main.rand.NextFloat(0.9f, 1.2f)); dust.noGravity = true; dust.color = Main.rand.NextBool() ? Color.Lerp(mainColor, Color.White, 0.5f) : mainColor; } } } + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + if (Projectile.timeLeft <= 3) // This is the sweet spot + { + modifiers.SourceDamage *= 2; + + int points = 10; + float radians = MathHelper.TwoPi / points; + Vector2 spinningPoint = Vector2.Normalize(new Vector2(-1f, -1f)); + float rotRando = Main.rand.NextFloat(0.1f, 2.5f); + for (int k = 0; k < points; k++) + { + Vector2 velocity = spinningPoint.RotatedBy(radians * k).RotatedBy(-0.45f * rotRando); + Particle subTrail = new GlowSparkParticle(Projectile.Center + velocity * 10.5f, velocity * 5, false, 10, 0.045f, mainColor, new Vector2(2, 0.4f), true); + GeneralParticleHandler.SpawnParticle(subTrail); + } + + SoundStyle fire = new("CalamityMod/Sounds/Item/ArcNovaDiffuserChargeImpact"); + SoundEngine.PlaySound(fire with { Volume = 1.25f, Pitch = 0.4f, PitchVariance = 0.15f }, Projectile.Center); + } + if (Projectile.numHits > 0) + Projectile.damage = (int)(Projectile.damage * 0.95f); + if (Projectile.damage < 1) + Projectile.damage = 1; + } } } diff --git a/Projectiles/Magic/GenisisHoldout.cs b/Projectiles/Magic/GenesisHoldout.cs similarity index 74% rename from Projectiles/Magic/GenisisHoldout.cs rename to Projectiles/Magic/GenesisHoldout.cs index 577eac31c3..3974319913 100644 --- a/Projectiles/Magic/GenisisHoldout.cs +++ b/Projectiles/Magic/GenesisHoldout.cs @@ -10,16 +10,16 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { - public class GenisisHoldout : BaseGunHoldoutProjectile + public class GenesisHoldout : BaseGunHoldoutProjectile { - public override int AssociatedItemID => ModContent.ItemType(); + public override int AssociatedItemID => ModContent.ItemType(); public override Vector2 GunTipPosition => base.GunTipPosition - Vector2.UnitY.RotatedBy(Projectile.rotation) * 2f * Projectile.spriteDirection; public override float MaxOffsetLengthFromArm => 10f; public override float OffsetXUpwards => -5f; public override float BaseOffsetY => -5f; public override float OffsetYDownwards => 5f; - public Color StaticEffectsColor = Color.Cyan; + public Color StaticEffectsColor = Color.Indigo; public float FiringTime = 15; public float Windup = 60; @@ -72,11 +72,11 @@ namespace CalamityMod.Projectiles.Magic if (Windup > 10) { - Windup -= 10; + if (!fireYBeam) + Windup -= 12; } else { - WindingUp = !WindingUp; Windup = 10; } @@ -106,9 +106,9 @@ namespace CalamityMod.Projectiles.Magic SoundStyle fire = new("CalamityMod/Sounds/Item/LanceofDestinyStrong"); SoundEngine.PlaySound(fire with { Volume = 0.35f, Pitch = 1f, PitchVariance = 0.15f }, Projectile.Center); - Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, firingVelocity3, ModContent.ProjectileType(), Projectile.damage * 10, Projectile.knockBack, Projectile.owner, 0, 0); + Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, firingVelocity3, ModContent.ProjectileType(), Projectile.damage * 7, Projectile.knockBack, Projectile.owner, 0, 0); - Particle pulse3 = new GlowSparkParticle((GunTipPosition - firingVelocity3 * 2), firingVelocity3 * 2, false, Main.rand.Next(7, 11 + 1), 0.047f, StaticEffectsColor, new Vector2(1.5f, 0.9f), true); + Particle pulse3 = new GlowSparkParticle(GunTipPosition, shootDirection * 18, false, 6, 0.057f, StaticEffectsColor, new Vector2(1.7f, 0.8f), true); GeneralParticleHandler.SpawnParticle(pulse3); for (int i = 0; i < 8; i++) { @@ -123,25 +123,17 @@ namespace CalamityMod.Projectiles.Magic for (int i = 0; i < 4; i++) { - firingVelocity3 = (shootDirection * 10).RotatedBy((0.045f * (i + 1)) * Utils.GetLerpValue(0, 55, Windup, true)); + firingVelocity3 = (shootDirection * 10).RotatedBy((0.05f * (i + 1)) * Utils.GetLerpValue(0, 55, Windup, true)); Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, firingVelocity3 * (1 - i * 0.1f), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0, 1); } for (int i = 0; i < 4; i++) { - firingVelocity3 = (shootDirection * 10).RotatedBy((-0.045f * (i + 1)) * Utils.GetLerpValue(0, 55, Windup, true)); + firingVelocity3 = (shootDirection * 10).RotatedBy((-0.05f * (i + 1)) * Utils.GetLerpValue(0, 55, Windup, true)); Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, firingVelocity3 * (1 - i * 0.1f), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0, 1); } - //Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, firingVelocity2, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0, 1); - //Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, firingVelocity3, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0, 1); - Particle pulse = new GlowSparkParticle((GunTipPosition - firingVelocity1 * 2), firingVelocity1 * 2, false, Main.rand.Next(7, 11 + 1), 0.035f, StaticEffectsColor, new Vector2(1.5f, 0.9f), true); - GeneralParticleHandler.SpawnParticle(pulse); - Particle pulse2 = new GlowSparkParticle((GunTipPosition - firingVelocity2 * 2), firingVelocity2 * 2, false, Main.rand.Next(7, 11 + 1), 0.035f, StaticEffectsColor, new Vector2(1.5f, 0.9f), true); - GeneralParticleHandler.SpawnParticle(pulse2); - //Particle pulse3 = new GlowSparkParticle((GunTipPosition - firingVelocity3 * 2), firingVelocity3 * 2, false, Main.rand.Next(7, 11 + 1), 0.04f, StaticEffectsColor, new Vector2(1.5f, 0.9f), true); - //GeneralParticleHandler.SpawnParticle(pulse3); - //Particle sparkle = new GenericSparkle(GunTipPosition, Vector2.Zero, Color.White, StaticEffectsColor, 1.7f, 4, Main.rand.NextFloat(-7f, 7f), 2); - //GeneralParticleHandler.SpawnParticle(sparkle); + Particle pulse3 = new GlowSparkParticle(GunTipPosition, shootDirection * 18, false, 6, 0.057f, StaticEffectsColor, new Vector2(1.7f, 0.8f), true); + GeneralParticleHandler.SpawnParticle(pulse3); } // Inside here go all the things that dedicated servers shouldn't spend resources on. diff --git a/Projectiles/Magic/WingmanShot.cs b/Projectiles/Magic/WingmanShot.cs index c5c3308881..ca12160adb 100644 --- a/Projectiles/Magic/WingmanShot.cs +++ b/Projectiles/Magic/WingmanShot.cs @@ -40,9 +40,9 @@ namespace CalamityMod.Projectiles.Magic if (Projectile.ai[1] == 0) mainColor = Color.Orchid; if (Projectile.ai[1] == 1) - mainColor = Color.Cyan; + mainColor = Color.Indigo; if (Projectile.ai[1] == 2) - mainColor = Color.MediumTurquoise; + mainColor = Color.MediumVioletRed; } Lighting.AddLight(Projectile.Center, mainColor.ToVector3() * 0.7f); Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2;