From 7afed3310a12de20c37252da47d856f136c65857 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Tue, 24 Dec 2019 23:57:29 -0500 Subject: [PATCH 01/34] added 0.5s cooldown to raiders --- CalPlayer/CalamityPlayer.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index dbb4f84c04..97eb15d102 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -323,6 +323,7 @@ namespace CalamityMod.CalPlayer public bool lol = false; public bool raiderTalisman = false; public int raiderStack = 0; + public int raiderCooldown = 0; public bool sGenerator = false; public bool sDefense = false; public bool sPower = false; @@ -1368,6 +1369,7 @@ namespace CalamityMod.CalPlayer adrenalineDmgDown = 600; adrenalineDmgMult = 1f; raiderStack = 0; + raiderCooldown = 0; fleshTotemCooldown = 0; astralStarRainCooldown = 0; bloodflareMageCooldown = 0; @@ -3435,6 +3437,8 @@ namespace CalamityMod.CalPlayer if (draconicSurgeCooldown > 0) draconicSurgeCooldown--; + if (raiderCooldown > 0) + raiderCooldown--; if (fleshTotemCooldown > 0) fleshTotemCooldown--; if (astralStarRainCooldown > 0) @@ -7631,9 +7635,10 @@ namespace CalamityMod.CalPlayer } } } - if (raiderTalisman && raiderStack < 250 && proj.Calamity().rogue && crit) + if (raiderTalisman && raiderStack < 250 && proj.Calamity().rogue && crit && raiderCooldown <= 0) { raiderStack++; + raiderCooldown = 30; } if (CalamityWorld.revenge && Config.AdrenalineAndRage) { From e1884121affb23c82a0c9b39bf0bf90c3e860231 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 25 Dec 2019 09:18:13 -0500 Subject: [PATCH 02/34] balancing to the EXTREME!!! --- CalPlayer/CalamityPlayer.cs | 13 +++++++++++-- Items/Accessories/Nanotech.cs | 4 ++-- Items/Weapons/Melee/ScourgeoftheCosmos.cs | 2 +- Items/Weapons/Ranged/AngelicShotgun.cs | 8 ++++---- Items/Weapons/Rogue/DesecratedWater.cs | 2 +- Items/Weapons/Rogue/Penumbra.cs | 2 +- Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs | 2 +- Items/Weapons/Rogue/SludgeSplotch.cs | 2 +- NPCs/Perforator/PerforatorBodyLarge.cs | 2 ++ NPCs/Perforator/PerforatorBodyMedium.cs | 2 ++ NPCs/Perforator/PerforatorBodySmall.cs | 2 ++ NPCs/Perforator/PerforatorHeadLarge.cs | 2 ++ NPCs/Perforator/PerforatorHeadMedium.cs | 2 ++ NPCs/Perforator/PerforatorHeadSmall.cs | 2 ++ NPCs/Perforator/PerforatorTailLarge.cs | 2 ++ NPCs/Perforator/PerforatorTailMedium.cs | 2 ++ NPCs/Perforator/PerforatorTailSmall.cs | 2 ++ NPCs/SlimeGod/SlimeGod.cs | 2 ++ NPCs/SlimeGod/SlimeGodRun.cs | 2 ++ NPCs/SlimeGod/SlimeGodRunSplit.cs | 2 ++ NPCs/SlimeGod/SlimeGodSplit.cs | 2 ++ Projectiles/CalamityGlobalProjectile.cs | 4 ++-- Projectiles/Rogue/PenumbraBomb.cs | 6 ++++-- Projectiles/Rogue/SludgeSplotchProj1.cs | 6 ++++++ Projectiles/Rogue/SludgeSplotchProj2.cs | 5 +++++ 25 files changed, 65 insertions(+), 17 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 97eb15d102..c56566211b 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -7253,7 +7253,10 @@ namespace CalamityMod.CalPlayer } if ((filthyGlove || electricianGlove) && proj.Calamity().stealthStrike && proj.Calamity().rogue) { - damageMult += 0.1; + if (nanotech) + damageMult += 0.05; + else + damageMult += 0.1; } if (etherealExtorter && proj.Calamity().rogue) { @@ -7310,9 +7313,15 @@ namespace CalamityMod.CalPlayer { damage += Main.rand.Next(20, 31); } - if (proj.Calamity().stealthStrike && proj.Calamity().rogue && electricianGlove) + if (proj.Calamity().stealthStrike && proj.Calamity().rogue && nanotech) { //Ozzatron insists on counting for edge-cases + int penetratableDefense = Math.Max(target.defense - player.armorPenetration, 0); + int penetratedDefense = Math.Min(penetratableDefense, 20); //nanotech is weaker + damage += (int)(0.5f * penetratedDefense); + } + else if (proj.Calamity().stealthStrike && proj.Calamity().rogue && electricianGlove) + { int penetratableDefense = Math.Max(target.defense - player.armorPenetration, 0); int penetratedDefense = Math.Min(penetratableDefense, 30); damage += (int)(0.5f * penetratedDefense); diff --git a/Items/Accessories/Nanotech.cs b/Items/Accessories/Nanotech.cs index 9a5de3067b..5391d1a909 100644 --- a/Items/Accessories/Nanotech.cs +++ b/Items/Accessories/Nanotech.cs @@ -34,12 +34,12 @@ namespace CalamityMod.Items.Accessories { line2.text = "Rogue projectiles create nanoblades as they travel\n" + "Stealth strikes summon lunar flares and sparks on enemy hits\n" + - "Stealth strikes have +30 armor penetration, deal 10% more damage, and heal for 1 HP\n" + + "Stealth strikes have +20 armor penetration, deal 5% more damage, and heal for 1 HP\n" + "Rogue weapons have a chance to instantly kill normal enemies\n" + "5% increased rogue damage, 5% increased rogue crit chance, and 15% increased rogue velocity\n" + "Whenever you crit an enemy with a rogue weapon your rogue damage increases\n" + "This effect can stack up to 250 times\n" + - "Max rogue damage boost is 25%\n" + + "Max rogue damage boost is 10%\n" + "Rogue Crit Level: " + critLevel; } } diff --git a/Items/Weapons/Melee/ScourgeoftheCosmos.cs b/Items/Weapons/Melee/ScourgeoftheCosmos.cs index 55d3754251..ed48938afc 100644 --- a/Items/Weapons/Melee/ScourgeoftheCosmos.cs +++ b/Items/Weapons/Melee/ScourgeoftheCosmos.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 18; - item.damage = 2200; + item.damage = 1950; item.melee = true; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Ranged/AngelicShotgun.cs b/Items/Weapons/Ranged/AngelicShotgun.cs index 9bb415b481..8f2f053ae5 100644 --- a/Items/Weapons/Ranged/AngelicShotgun.cs +++ b/Items/Weapons/Ranged/AngelicShotgun.cs @@ -10,8 +10,7 @@ namespace CalamityMod.Items.Weapons.Ranged { public class AngelicShotgun : ModItem { - private static int BaseDamage = 150; - private static int NumBullets = 8; + private static int BaseDamage = 120; private static float BulletSpeed = 13f; public override void SetStaticDefaults() @@ -32,8 +31,8 @@ Fighting 'til the war's won"); item.width = 44; item.height = 7; - item.useTime = 14; - item.useAnimation = 14; + item.useTime = 21; + item.useAnimation = 21; item.UseSound = SoundID.Item38; item.useStyle = 5; @@ -53,6 +52,7 @@ Fighting 'til the war's won"); public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { + int NumBullets = Main.rand.Next(6,9); Vector2 baseVelocity = new Vector2(speedX, speedY).SafeNormalize(Vector2.Zero) * BulletSpeed; // Fire a shotgun spread of bullets. diff --git a/Items/Weapons/Rogue/DesecratedWater.cs b/Items/Weapons/Rogue/DesecratedWater.cs index d8bb2d81be..fb8ef41490 100644 --- a/Items/Weapons/Rogue/DesecratedWater.cs +++ b/Items/Weapons/Rogue/DesecratedWater.cs @@ -53,7 +53,7 @@ Stealth strikes spawn additional bubbles that inflict Ichor and Cursed Inferno") recipe.AddRecipeGroup("AnyEvilWater", 100); recipe.AddIngredient(ItemID.HallowedBar, 5); recipe.AddRecipeGroup("CursedFlameIchor", 5); - recipe.AddIngredient(ItemID.SoulofLight, 7); + recipe.AddIngredient(ItemID.SoulofNight, 7); recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/Rogue/Penumbra.cs b/Items/Weapons/Rogue/Penumbra.cs index 0ea360ab65..4f153d8685 100644 --- a/Items/Weapons/Rogue/Penumbra.cs +++ b/Items/Weapons/Rogue/Penumbra.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.damage = 1800; + item.damage = 1600; item.useAnimation = 40; item.useTime = 40; item.crit = 16; diff --git a/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs b/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs index f08f4f3878..868699dcb8 100644 --- a/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs +++ b/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SafeSetDefaults() { item.width = 18; - item.damage = 2200; + item.damage = 1950; item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 20; diff --git a/Items/Weapons/Rogue/SludgeSplotch.cs b/Items/Weapons/Rogue/SludgeSplotch.cs index 8ab7e061a8..572adae7c0 100644 --- a/Items/Weapons/Rogue/SludgeSplotch.cs +++ b/Items/Weapons/Rogue/SludgeSplotch.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.value = Item.buyPrice(0, 1, 0, 0); item.rare = 0; item.shoot = ModContent.ProjectileType(); - item.shootSpeed = 7.5f; + item.shootSpeed = 10f; item.Calamity().rogue = true; } diff --git a/NPCs/Perforator/PerforatorBodyLarge.cs b/NPCs/Perforator/PerforatorBodyLarge.cs index 9d8de958ba..d73c470299 100644 --- a/NPCs/Perforator/PerforatorBodyLarge.cs +++ b/NPCs/Perforator/PerforatorBodyLarge.cs @@ -37,6 +37,8 @@ namespace CalamityMod.NPCs.Perforator npc.alpha = 255; npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Webbed] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/Perforator/PerforatorBodyMedium.cs b/NPCs/Perforator/PerforatorBodyMedium.cs index 571900e40d..e94a587092 100644 --- a/NPCs/Perforator/PerforatorBodyMedium.cs +++ b/NPCs/Perforator/PerforatorBodyMedium.cs @@ -36,6 +36,8 @@ namespace CalamityMod.NPCs.Perforator npc.alpha = 255; npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Webbed] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/Perforator/PerforatorBodySmall.cs b/NPCs/Perforator/PerforatorBodySmall.cs index ece671a39b..b9e74330c0 100644 --- a/NPCs/Perforator/PerforatorBodySmall.cs +++ b/NPCs/Perforator/PerforatorBodySmall.cs @@ -36,6 +36,8 @@ namespace CalamityMod.NPCs.Perforator npc.alpha = 255; npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Webbed] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/Perforator/PerforatorHeadLarge.cs b/NPCs/Perforator/PerforatorHeadLarge.cs index 41fb9ac6ef..dd0a5c04df 100644 --- a/NPCs/Perforator/PerforatorHeadLarge.cs +++ b/NPCs/Perforator/PerforatorHeadLarge.cs @@ -43,6 +43,8 @@ namespace CalamityMod.NPCs.Perforator npc.alpha = 255; npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Webbed] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/Perforator/PerforatorHeadMedium.cs b/NPCs/Perforator/PerforatorHeadMedium.cs index 0dee77d5c0..5ae91b2cdb 100644 --- a/NPCs/Perforator/PerforatorHeadMedium.cs +++ b/NPCs/Perforator/PerforatorHeadMedium.cs @@ -44,6 +44,8 @@ namespace CalamityMod.NPCs.Perforator npc.alpha = 255; npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Webbed] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/Perforator/PerforatorHeadSmall.cs b/NPCs/Perforator/PerforatorHeadSmall.cs index eb014aabe8..8a334cb707 100644 --- a/NPCs/Perforator/PerforatorHeadSmall.cs +++ b/NPCs/Perforator/PerforatorHeadSmall.cs @@ -42,6 +42,8 @@ namespace CalamityMod.NPCs.Perforator npc.alpha = 255; npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Webbed] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/Perforator/PerforatorTailLarge.cs b/NPCs/Perforator/PerforatorTailLarge.cs index 04e36b42e7..e55b97bfb1 100644 --- a/NPCs/Perforator/PerforatorTailLarge.cs +++ b/NPCs/Perforator/PerforatorTailLarge.cs @@ -34,6 +34,8 @@ namespace CalamityMod.NPCs.Perforator npc.alpha = 255; npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Webbed] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/Perforator/PerforatorTailMedium.cs b/NPCs/Perforator/PerforatorTailMedium.cs index bc740c8b2f..6d5dc3f7f9 100644 --- a/NPCs/Perforator/PerforatorTailMedium.cs +++ b/NPCs/Perforator/PerforatorTailMedium.cs @@ -34,6 +34,8 @@ namespace CalamityMod.NPCs.Perforator npc.alpha = 255; npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Webbed] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/Perforator/PerforatorTailSmall.cs b/NPCs/Perforator/PerforatorTailSmall.cs index b389a650fb..95cbee6084 100644 --- a/NPCs/Perforator/PerforatorTailSmall.cs +++ b/NPCs/Perforator/PerforatorTailSmall.cs @@ -35,6 +35,8 @@ namespace CalamityMod.NPCs.Perforator npc.alpha = 255; npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Webbed] = true; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/SlimeGod/SlimeGod.cs b/NPCs/SlimeGod/SlimeGod.cs index 8d7072cdc0..2555876697 100644 --- a/NPCs/SlimeGod/SlimeGod.cs +++ b/NPCs/SlimeGod/SlimeGod.cs @@ -34,6 +34,8 @@ namespace CalamityMod.NPCs.SlimeGod aiType = -1; npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Webbed] = true; npc.knockBackResist = 0f; animationType = 50; npc.value = 0f; diff --git a/NPCs/SlimeGod/SlimeGodRun.cs b/NPCs/SlimeGod/SlimeGodRun.cs index 41d2e36586..31d1aa73c8 100644 --- a/NPCs/SlimeGod/SlimeGodRun.cs +++ b/NPCs/SlimeGod/SlimeGodRun.cs @@ -34,6 +34,8 @@ namespace CalamityMod.NPCs.SlimeGod animationType = 50; npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Webbed] = true; npc.value = 0f; npc.alpha = 60; npc.lavaImmune = false; diff --git a/NPCs/SlimeGod/SlimeGodRunSplit.cs b/NPCs/SlimeGod/SlimeGodRunSplit.cs index 2b39aaca2c..4c136c162d 100644 --- a/NPCs/SlimeGod/SlimeGodRunSplit.cs +++ b/NPCs/SlimeGod/SlimeGodRunSplit.cs @@ -33,6 +33,8 @@ namespace CalamityMod.NPCs.SlimeGod npc.knockBackResist = 0f; npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Webbed] = true; animationType = 50; npc.value = Item.buyPrice(0, 1, 0, 0); npc.alpha = 60; diff --git a/NPCs/SlimeGod/SlimeGodSplit.cs b/NPCs/SlimeGod/SlimeGodSplit.cs index fe49f1d8c4..27cb6b6f12 100644 --- a/NPCs/SlimeGod/SlimeGodSplit.cs +++ b/NPCs/SlimeGod/SlimeGodSplit.cs @@ -35,6 +35,8 @@ namespace CalamityMod.NPCs.SlimeGod npc.knockBackResist = 0f; npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[ModContent.BuffType()] = true; + npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Webbed] = true; animationType = 50; npc.value = Item.buyPrice(0, 1, 0, 0); npc.alpha = 60; diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 730cc5e7b2..c6e849671a 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -656,10 +656,10 @@ namespace CalamityMod.Projectiles { if (counter % 30 == 0) { - if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType()] < 30) + if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType()] < 25) { Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), - (int)((double)projectile.damage * 0.15), 0f, projectile.owner, 0f, 0f); + (int)((double)projectile.damage * 0.1), 0f, projectile.owner, 0f, 0f); } } } diff --git a/Projectiles/Rogue/PenumbraBomb.cs b/Projectiles/Rogue/PenumbraBomb.cs index 4b9471a454..93b0785dc0 100644 --- a/Projectiles/Rogue/PenumbraBomb.cs +++ b/Projectiles/Rogue/PenumbraBomb.cs @@ -74,12 +74,13 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { //Dark soul projectiles - int ad = projectile.Calamity().stealthStrike ? 30 : 60; + int ad = projectile.Calamity().stealthStrike ? 40 : 60; + float dmgMult = projectile.Calamity().stealthStrike ? 0.08f : 0.15f; int randrot = Main.rand.Next(-30,31); for (int i = 0; i < 360; i += ad) { Vector2 SoulSpeed = new Vector2(13f, 13f).RotatedBy(MathHelper.ToRadians(i + randrot)); - Projectile.NewProjectile(projectile.Center, SoulSpeed, ModContent.ProjectileType(), (int)(projectile.damage * 0.2f), 3f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center, SoulSpeed, ModContent.ProjectileType(), (int)(projectile.damage * dmgMult), 3f, projectile.owner, 0f, 0f); } //Dust int maxDust = projectile.Calamity().stealthStrike ? 100 : 70; @@ -97,6 +98,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.penetrate = -1; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; + projectile.damage /= 2; projectile.Damage(); } diff --git a/Projectiles/Rogue/SludgeSplotchProj1.cs b/Projectiles/Rogue/SludgeSplotchProj1.cs index ae9a2e64be..eec4f79aa1 100644 --- a/Projectiles/Rogue/SludgeSplotchProj1.cs +++ b/Projectiles/Rogue/SludgeSplotchProj1.cs @@ -96,6 +96,12 @@ namespace CalamityMod.Projectiles.Rogue Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 9, 2, 0); } + public override void OnHitPvp(Player target, int damage, bool crit) + { + target.AddBuff(BuffID.Slow, 240); + Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 9, 2, 0); + } + public override void Kill(int timeLeft) { if (projectile.Calamity().stealthStrike) diff --git a/Projectiles/Rogue/SludgeSplotchProj2.cs b/Projectiles/Rogue/SludgeSplotchProj2.cs index d7685afeb0..aa1eef6a54 100644 --- a/Projectiles/Rogue/SludgeSplotchProj2.cs +++ b/Projectiles/Rogue/SludgeSplotchProj2.cs @@ -64,6 +64,11 @@ namespace CalamityMod.Projectiles.Rogue target.AddBuff(BuffID.Slow, 120); } + public override void OnHitPvp(Player target, int damage, bool crit) + { + target.AddBuff(BuffID.Slow, 120); + } + public override void Kill(int timeLeft) { int numDust = 10; From ac0a3ab13a98696a17a63abbaa4816dbe5a2d025 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 25 Dec 2019 13:21:42 -0500 Subject: [PATCH 03/34] Improved Spazmatism Rev+ shadowflame dust --- Projectiles/Boss/ShadowflameFireball.cs | 43 ++++++++++++----- Projectiles/Boss/Shadowflamethrower.cs | 63 ++++++++++++------------- 2 files changed, 61 insertions(+), 45 deletions(-) diff --git a/Projectiles/Boss/ShadowflameFireball.cs b/Projectiles/Boss/ShadowflameFireball.cs index 45ddfcb70d..ad7d0637d4 100644 --- a/Projectiles/Boss/ShadowflameFireball.cs +++ b/Projectiles/Boss/ShadowflameFireball.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Shadowflame"); + DisplayName.SetDefault("Shadowflame Fireball"); } public override void SetDefaults() @@ -34,8 +34,28 @@ namespace CalamityMod.Projectiles.Boss Main.PlaySound(SoundID.Item20, projectile.position); } - int dust = Dust.NewDust(new Vector2(projectile.position.X + projectile.velocity.X, projectile.position.Y + projectile.velocity.Y), projectile.width, projectile.height, 27, projectile.velocity.X, projectile.velocity.Y, 100, default, 3f); - Main.dust[dust].noGravity = true; + // Main chunky dark purple dust at the front of the fireball + for(int i = 0; i < 2; ++i) + { + int dustType = 27; + float dustScale = Main.rand.NextFloat(1.4f, 2.4f); + int dustID = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, dustType); + Main.dust[dustID].noGravity = true; + Main.dust[dustID].velocity = projectile.velocity; + Main.dust[dustID].scale = dustScale; + } + + // Trailing brighter purple fire trail dust + { + int dustType = 70; + float velMult = Main.rand.NextFloat(0.05f, 0.6f); + float dustScale = Main.rand.NextFloat(1.2f, 1.8f); + int dustID = Dust.NewDust(projectile.position, projectile.width, projectile.height, dustType); + Main.dust[dustID].noGravity = true; + Main.dust[dustID].velocity *= 0.1f; + Main.dust[dustID].velocity += projectile.velocity * velMult; + Main.dust[dustID].scale = dustScale; + } projectile.rotation += 0.3f * (float)projectile.direction; @@ -77,17 +97,14 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { Main.PlaySound(SoundID.Item10, projectile.position); - int num3; - for (int num584 = 0; num584 < 20; num584 = num3 + 1) + int killDust = 20; + for (int i = 0; i < killDust; ++i) { - int num585 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 27, -projectile.velocity.X * 0.2f, -projectile.velocity.Y * 0.2f, 100, default, 2.5f); - Main.dust[num585].noGravity = true; - Dust dust = Main.dust[num585]; - dust.velocity *= 2f; - num585 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 27, -projectile.velocity.X * 0.2f, -projectile.velocity.Y * 0.2f, 100, default, 1.2f); - dust = Main.dust[num585]; - dust.velocity *= 2f; - num3 = num584; + int dustType = Main.rand.NextBool() ? 70 : 27; + float dustScale = Main.rand.NextFloat(1f, 1.6f); + int dustID = Dust.NewDust(projectile.Center, 1, 1, dustType); + Main.dust[dustID].velocity *= 4f; + Main.dust[dustID].scale = dustScale; } } } diff --git a/Projectiles/Boss/Shadowflamethrower.cs b/Projectiles/Boss/Shadowflamethrower.cs index eed55b9109..12a5a257d7 100644 --- a/Projectiles/Boss/Shadowflamethrower.cs +++ b/Projectiles/Boss/Shadowflamethrower.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Shadowflamethrower"); + DisplayName.SetDefault("Shadowflame Breath"); } public override void SetDefaults() @@ -27,43 +27,42 @@ namespace CalamityMod.Projectiles.Boss { if (projectile.ai[0] > 7f) { - float num302 = 1f; - if (projectile.ai[0] == 8f) - num302 = 0.25f; - else if (projectile.ai[0] == 9f) - num302 = 0.5f; - else if (projectile.ai[0] == 10f) - num302 = 0.75f; - - projectile.ai[0] += 1f; - if (Main.rand.NextBool(2)) + int[] dustTypes = new int[] { 27, 27, 112, 173 }; + if(true) { - int num305 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 27, projectile.velocity.X * 0.2f, projectile.velocity.Y * 0.2f, 100, default, 1f); - Dust dust; - - if (Main.rand.Next(3) != 0 || Main.rand.NextBool(3)) + int dustType = dustTypes[Main.rand.Next(4)]; + int dustID; + Vector2 corner = projectile.position - new Vector2(6f, 6f); + int width = 18; + int height = 18; + switch (dustType) { - Main.dust[num305].noGravity = true; - dust = Main.dust[num305]; - dust.scale *= 3f; - dust.velocity.X *= 2f; - dust.velocity.Y *= 2f; + case 27: + dustID = Dust.NewDust(corner, width, height, dustType); + Main.dust[dustID].noGravity = false; + Main.dust[dustID].scale = Main.rand.NextFloat(1f, 1.2f); + Main.dust[dustID].velocity *= 0.9f; + Main.dust[dustID].velocity += projectile.velocity * 0.7f; + break; + case 112: + dustID = Dust.NewDust(projectile.position, projectile.width, projectile.height, dustType); + Main.dust[dustID].noGravity = true; + Main.dust[dustID].scale = Main.rand.NextFloat(1.4f, 2f); + Main.dust[dustID].velocity *= 2.2f; + Main.dust[dustID].velocity += projectile.velocity * Main.rand.NextFloat(0.15f, 0.4f); + break; + case 173: + dustID = Dust.NewDust(projectile.position, projectile.width, projectile.height, dustType); + Main.dust[dustID].noGravity = false; + Main.dust[dustID].scale = Main.rand.NextFloat(1.9f, 3f); + Main.dust[dustID].velocity *= 1.5f; + Main.dust[dustID].velocity += projectile.velocity * Main.rand.NextFloat(0.6f, 1f); + break; } - - dust = Main.dust[num305]; - dust.scale *= 2f; - dust.velocity.X *= 1.2f; - dust.velocity.Y *= 1.2f; - dust.scale *= num302; - dust.velocity += projectile.velocity; - - if (!dust.noGravity) - dust.velocity *= 0.5f; } } - else - projectile.ai[0] += 1f; + projectile.ai[0]++; projectile.rotation += 0.3f * (float)projectile.direction; } From ade1d77ccf358718a2fac0207bac96c9e32bcc51 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 25 Dec 2019 14:38:21 -0500 Subject: [PATCH 04/34] added galileo gladius --- CalPlayer/CalamityPlayer.cs | 4 + Items/Weapons/Melee/GalileoGladius.cs | 96 ++++++++++++++++++ Items/Weapons/Melee/GalileoGladius.png | Bin 0 -> 877 bytes Projectiles/Melee/GalileosMoon.cs | 95 ++++++++++++++++++ Projectiles/Melee/GalileosMoon.png | Bin 0 -> 660 bytes Projectiles/Melee/GalileosPlanet.cs | 131 +++++++++++++++++++++++++ Projectiles/Melee/GalileosPlanet.png | Bin 0 -> 1631 bytes 7 files changed, 326 insertions(+) create mode 100644 Items/Weapons/Melee/GalileoGladius.cs create mode 100644 Items/Weapons/Melee/GalileoGladius.png create mode 100644 Projectiles/Melee/GalileosMoon.cs create mode 100644 Projectiles/Melee/GalileosMoon.png create mode 100644 Projectiles/Melee/GalileosPlanet.cs create mode 100644 Projectiles/Melee/GalileosPlanet.png diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index c56566211b..cdf80ae240 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -126,6 +126,7 @@ namespace CalamityMod.CalPlayer public float aquaticBoost = 1f; public float shieldInvinc = 5f; public GaelSwitchPhase gaelSwitchTimer = 0; + public int galileoCooldown = 0; // Sound public bool playRogueStealthSound = false; @@ -1363,6 +1364,7 @@ namespace CalamityMod.CalPlayer gaelRageCooldown = 0; gaelSwipes = 0; gaelSwitchTimer = (GaelSwitchPhase)0; + galileoCooldown = 0; stress = 0; adrenaline = 0; adrenalineMaxTimer = 300; @@ -3437,6 +3439,8 @@ namespace CalamityMod.CalPlayer if (draconicSurgeCooldown > 0) draconicSurgeCooldown--; + if (galileoCooldown > 0) + galileoCooldown--; if (raiderCooldown > 0) raiderCooldown--; if (fleshTotemCooldown > 0) diff --git a/Items/Weapons/Melee/GalileoGladius.cs b/Items/Weapons/Melee/GalileoGladius.cs new file mode 100644 index 0000000000..59b06c6367 --- /dev/null +++ b/Items/Weapons/Melee/GalileoGladius.cs @@ -0,0 +1,96 @@ +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Projectiles.Melee; +using Microsoft.Xna.Framework; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons.Melee +{ + public class GalileoGladius : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Galileo Gladius"); + Tooltip.SetDefault("Don't underestimate the power of small space swords\n" + + "Shoots a homing crescent moon\n" + + "Spawns planetoids on enemy hits"); + } + + public override void SetDefaults() + { + item.useStyle = 3; + item.useTurn = false; + item.useAnimation = 10; + item.useTime = 10; + item.width = 44; + item.height = 44; + item.damage = 300; + item.melee = true; + item.knockBack = 10f; + item.UseSound = SoundID.Item1; + item.useTurn = true; + item.autoReuse = true; + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 14f; + item.value = Item.buyPrice(1, 40, 0, 0); + item.rare = 10; + item.Calamity().postMoonLordRarity = 13; + } + + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + Projectile.NewProjectile(position.X, position.Y, item.shootSpeed * player.direction, 0f, type, damage, knockBack, player.whoAmI, 0f, 0f); + return false; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 15); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + + public override void MeleeEffects(Player player, Rectangle hitbox) + { + if (Main.rand.NextBool(5)) + { + int num250 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, (Main.rand.NextBool(2) ? 20 : 176), (float)(player.direction * 2), 0f, 150, default, 1.3f); + Main.dust[num250].velocity *= 0.2f; + Main.dust[num250].noGravity = true; + } + } + + public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(ModContent.BuffType(), 300); + float x = player.position.X + (float)Main.rand.Next(-400, 400); + float y = player.position.Y - (float)Main.rand.Next(500, 800); + Vector2 vector = new Vector2(x, y); + float num15 = player.position.X + (float)(player.width / 2) - vector.X; + float num16 = player.position.Y + (float)(player.height / 2) - vector.Y; + num15 += (float)Main.rand.Next(-100, 101); + int num17 = 25; + float num18 = (float)Math.Sqrt((double)(num15 * num15 + num16 * num16)); + num18 = (float)num17 / num18; + num15 *= num18; + num16 *= num18; + if (player.whoAmI == Main.myPlayer) + { + if (player.Calamity().galileoCooldown <= 0) + { + int num19 = Projectile.NewProjectile(x, y, num15, num16, ModContent.ProjectileType(), (int)((float)item.damage * player.meleeDamage * 2f), 15f, player.whoAmI, 0f, 0f); + Main.projectile[num19].ai[1] = player.position.Y; + player.Calamity().galileoCooldown = 15; + } + } + } + } +} diff --git a/Items/Weapons/Melee/GalileoGladius.png b/Items/Weapons/Melee/GalileoGladius.png new file mode 100644 index 0000000000000000000000000000000000000000..221da363090007346927892486b3319a04204697 GIT binary patch literal 877 zcmV-z1CsoSP)9(e*h-BV54ziOf+ot7l4V18W)7b5RD2ZlGa2*pcR2qXtY=tcTRD}8E6Lrnc8>L zp1GfS=FBTgD%p{fy>y4|~sSP`ow%rQ~+19pJ0Fv)g2BMelcLUIU z%xf5T^5_G=g@nDEpQ1F`k+mZ#dh|ALu&ad460)7=4gxSX@Jf*#x@qVqB!#rt!>_*? z`c(;w?8rV%-8S?ylkMqG0?=`KKLDQxo&(^kuhpPRcw@3=qIP7>zPmh~2L2bq4Uy)5 zp8XEQ0cg?VtQ}diy3W5e*u(nobl+V70w<1Z0E>wQzyV>a&2Fbkt|ern;rb{5^K-L? z8o<}wp#jt-Rtf+Y^*C$x#fQCW9y8f}?drLZ%@@f|sr5ef11|L84GCMgKmp)L`&j_S zMqU80r_c^S(~T>Z^9Wgq24-zUR^&RuwoyXJ27@60ve}HmXZOY;mg8ndk_LP5$r-@8 z&ze;^ghfL3K+7Qj5|iU4O?=_nDPZf!iYkw=C>&{0e{{k>rc##ugy7>_Z!FuLk`+}h z;rZ0G!T$2`Jph*nRrbHv)u9^t)}JR6tDZAQWl@ zAa+&xT=BGPCT*vb%9J$@??ft(a5kF(pssG029U|53$S+9>Y)>WsXOYVA@RBxRdmTW zP-+~vlj{iE`jK7zYtDG$)0s@Vqy^=hkT>@|l`Lz+?j>xld;R_Z0J+?jS{r4UA+izdxV>(), 180); + } + } +} diff --git a/Projectiles/Melee/GalileosMoon.png b/Projectiles/Melee/GalileosMoon.png new file mode 100644 index 0000000000000000000000000000000000000000..38aef93175dba8aff23dac3eca238c73ad0a1b64 GIT binary patch literal 660 zcmV;F0&D$=P)yJ@pp=*vx+lAe>f7 zKDKi!*}dLASMJa5o7^84>V<%Ootf;9C7~SJ5!pGleQxi79Zw#30DEhDKpnjol=p!o z5>gTon~ZWT**UN2yJ6gbtJsL_>8Q?ky1E|lA5w>t&y#*wa=MUQ6m6W&0cQ)?F=$WV uF#rGn5_CmabVXQ6MmkS&X=QG7VRUJ4ZU8ZaSnTfr0000(), 300); + } + + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + float dist1 = Vector2.Distance(projectile.Center, targetHitbox.TopLeft()); + float dist2 = Vector2.Distance(projectile.Center, targetHitbox.TopRight()); + float dist3 = Vector2.Distance(projectile.Center, targetHitbox.BottomLeft()); + float dist4 = Vector2.Distance(projectile.Center, targetHitbox.BottomRight()); + + float minDist = dist1; + if (dist2 < minDist) + minDist = dist2; + if (dist3 < minDist) + minDist = dist3; + if (dist4 < minDist) + minDist = dist4; + + return minDist <= radius; + } + } +} diff --git a/Projectiles/Melee/GalileosPlanet.png b/Projectiles/Melee/GalileosPlanet.png new file mode 100644 index 0000000000000000000000000000000000000000..d1eb525387a83f8bb580638c09a966ece7b21cbc GIT binary patch literal 1631 zcmV-l2B7(gP)?`#ZA$F zK^LyGlr9ukZk23;EB^s0XqAA7D;FgSsdZBuVjF0a($H~{o@w5F@65U9{>Yia`Rp>8 zdH20HpL6cHKW3)EA@SB1KehfoJ(vLiTsU(C0I>GQ!{NdIzxVE3k#=wX_)qKah4Zrw z06cp16aa94bEozHpFe%)Q0~Xnp|s+3Xlfmp3|}}u3jjEKV!tWQ?2q1yFq2a{Fo$Vn|&+JsVh@eRL;PT1Vz4?Ca0f2H5;Kmz~Z9JJy zRm%O%otEK5s_9a$t{p)if4KnwcysZ10|39SKL(I*z8h~uvhk%&m&^_ctCA3I9FQ6z zWd7;FO!NGD0i>Jn#v7qFUNW6CN^3NSWV%FdL{j^?=DYDmL>qtc+6n+*@ya;>!1l8# zmFZ+k>KsgJPM2Qy%_j@0^C)G$8*hYYJefYfGynkHy}daEfDb==8$j1|>ixB7BVqN% zt=8XkKCwu-oy?AnF`8dutm}CvfKSLe%qO zk4J>(nOeONVP6(jX%vC;OM~Y5{Q|(7@5UR^F`i66dg?d;;K|lwmFXN>V@neoSrW14 zA3e1{xASCce{Lr<-;FndO?+f}XiDnHG1oXLVrm_qzy7(g&%d{}K`U*&{iqvn#OU3i z+tUydL4J&{ZajVM(u zglHos)$ow;dSWAh45!yq1gze;)tl?xcq1Avw`nW63VYxM!C=TT};CXrAjHGms$MyINg4DHEXs@H3&Wwy53;f^P^!(4|OZv;D6 zL+>PKM(OGxx9^B;FSVWAHRBLB-iYSnwUt&iBduMg&Q9izEMrZ}HJm8jS9p$}5IQ+t z%4MbN;8<$SDsp{Qc%4$;q^;)Mcq2wRKDA0orIx|OgZ009A3wQx0e#o2HC#d(`MdE( zL~j;P-Mc8gzLwcqxbwTc^26BIQ3MgOx!#R8Vq|=5j^oJPeZZMt%4jaPhe(D?*Aa^w zZ$$E3O=-9luP}#75fDC~JAO!PUnAvoDRa>IyYWU$zc8qOj;7S=y>^7hJ+IV!KW8`> zF;e^5agG~r#3;vW=bKYUda3(zN=2TwUG4dB`0V6_&xs00))b2vo&Q9J`JzGzBzF~&&`S=N^Q`Lk>a~DKtX6l?rSno>blR5(B z%+WP-|u`4~L)-ZEN%!D>~=k^&1eT5ruN#`?AT<@G)Wu)fX*s4l`+Rg1t3RFXGyd@*! zUzt4y0C>8+J9aOnHfP7K?&nq=xqU>bx_%7)IoC;`@7p_~b`KM!_7=v@({m%_TA!!o z;39R*KA;8wHh*6R;KrNLF}|7JFXxAQP46eYOU)*xRx8>aVUm%x_UTZ&(=*2!0NC5v z1>nY;)A_!vxvO6R0Cu#}CP<&RV&haN~{W7(ckQ96nTJzMd#G za?Q>4rLJep@mu%Sjh_(M?-nj)e(HC8ag8zFvwyw-f8R=r$` z)RFQSqD&{;cq5{JBP7*)Vp1Z&+H}H=H$we8P^Hb+QtKBMQdg3QSknnN-iYMi`pY$6 zqSRVzNP)SdEYk@$-iYkqbFFRu1X09v!i_hg*l%|Cm`}W{5zu>Ya!n`Pcq57#AMz4L zKvly-+;}6Z86Pqx0*J$kgt6CL%kU64-iZGJZyGF$AcNFW0000IbVXQnMOaBjI!|(G dWo~p~bZKvH05ODE?C$^o002ovPDHLkV1j2gFj)Wq literal 0 HcmV?d00001 From b1bae6dce57c8f91b0c60153b81019230af4eca2 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 25 Dec 2019 16:03:16 -0500 Subject: [PATCH 05/34] added crescent moon weapon --- Items/Weapons/Melee/CrescentMoon.cs | 58 ++++++ Items/Weapons/Melee/CrescentMoon.png | Bin 0 -> 1989 bytes Projectiles/Melee/CrescentMoonFlail.cs | 242 ++++++++++++++++++++++++ Projectiles/Melee/CrescentMoonFlail.png | Bin 0 -> 2867 bytes Projectiles/Melee/CrescentMoonProj.cs | 95 ++++++++++ Projectiles/Melee/CrescentMoonProj.png | Bin 0 -> 660 bytes 6 files changed, 395 insertions(+) create mode 100644 Items/Weapons/Melee/CrescentMoon.cs create mode 100644 Items/Weapons/Melee/CrescentMoon.png create mode 100644 Projectiles/Melee/CrescentMoonFlail.cs create mode 100644 Projectiles/Melee/CrescentMoonFlail.png create mode 100644 Projectiles/Melee/CrescentMoonProj.cs create mode 100644 Projectiles/Melee/CrescentMoonProj.png diff --git a/Items/Weapons/Melee/CrescentMoon.cs b/Items/Weapons/Melee/CrescentMoon.cs new file mode 100644 index 0000000000..a99abd4b4e --- /dev/null +++ b/Items/Weapons/Melee/CrescentMoon.cs @@ -0,0 +1,58 @@ +using CalamityMod.Projectiles.Melee; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Ores; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons.Melee +{ + public class CrescentMoon : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Crescent Moon"); + Tooltip.SetDefault("People wanted the moon, let's bring the moon to them.\n" + + "Fires a whip sword that summons homing crescent moons"); + } + + public override void SetDefaults() + { + item.width = 16; + item.height = 16; + item.damage = 500; + item.noMelee = true; + item.noUseGraphic = true; + item.channel = true; + item.autoReuse = true; + item.melee = true; + item.useAnimation = 18; + item.useTime = 18; + item.useStyle = 5; + item.knockBack = 4f; + item.UseSound = SoundID.Item82; + item.value = Item.buyPrice(1, 40, 0, 0); + item.rare = 10; + item.Calamity().postMoonLordRarity = 13; + item.shootSpeed = 24f; + item.shoot = ModContent.ProjectileType(); + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + float ai3 = (Main.rand.NextFloat() - 0.5f) * 0.7853982f; //0.5 + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, ai3); + return false; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 8); + recipe.AddIngredient(ModContent.ItemType(), 20); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Weapons/Melee/CrescentMoon.png b/Items/Weapons/Melee/CrescentMoon.png new file mode 100644 index 0000000000000000000000000000000000000000..f904a47c3edcd58500bbe69d42c940a3b9e7bd59 GIT binary patch literal 1989 zcmV;$2RitPP)d57H?{fDY+|cP+SG(fib|D26)UJn6+{FD zr6Bc1P<--1K|#n<1%2>IE%c>Ds0#Wbf{L^S6)hC4RE(CS=|`&l$fjmDwMp8v*N3_P zY-W<1*==?ch5LWm%$&b51{E&5iK6e&?!GS)Yd>gc`tH)fIU1gnj_~3r4-Fj<#0C4`#At0Wl zgdmTqMo=6%vN2s7?gVBNBdyG=3IHa9Tg-tvGv3sS1~cxZf;m2Z0)TY*7XTM0&RT?u zsI_<9VU554vrhm&NeMw7Rh%FnIW0H00<($9)U5~rCdMyW$4iY{TrZiaTR}A5oHp;q zTU!7>NeMw7RgEBEUUC*nOd0b4X2)G|B50sU zJFI?@6PKS^D#;cO4)htX=B(XhOA~@Ts+bp3#H#P~@VWC=zsOlC+au}zZk(hwp=_t} zNeMw7RV}0VU$s51lr@ko3fi8J-oS1kA;_zW6V%kQ+WZkk&i@tL<4W^c)^Rrgjp16L zm;=8yWHOlvK^`qyRim?O69C5t4lVV2wiRV63(Y1|sp`qj{$oHwkXP4Dkm86Lc^06U zUy;;b$PWY1)bmP7;YZabrPLXbzZ2wInYwxkOu!qWg;ESwGj?!Nb7 z0FM81gqiK1f7}-Wq{FrVAanjqN#l<$)&~$(M?{h;wo*cnN7Dp}oQ^G~est=)U&Hw> z%+LnFB!;AcK10r?M+`ZKzS-xVKksXN>r2fj7ru*1CE)^h_;v_V}xrgD1hhkwlY zZ@dh^gAcULIj*#|<<$^i_160WfI{Des=RS|VO3=FfmzLKmq-}Z`V)dY3Ob*BAAqrw z=R<%OcWnpapRg+twfE820ch?vUSXu)c!f9;;js&$2L^kHkj`x6~&50w&CC}CR==!4{?vwYMw*n(C zJlSAZQzjctTja&%&{fq?{Z4tTgdmTmAMeo*P2AGd-4y^_>mLB1dD8{}cD}GD1UL|p zw)>T})@>5d8-MOk3fRRJLg#cd< zzhj-ZwdGajJKh}Goa1M&0t=68G_UqGhM=L7V^%yTFFC$E9{^mw^837T56S+Z@>Ft0 zQBS(T$rs7C_~IQ&-byy7RJnO7*_><)Ij&7)>YR1GOHL}aJOG%Qx@?`75adzG1nIk8 zlQBdnPLif=OtcnLTM@XVI7i;9R2!rSS#gfM)zC@v>XM`TPyY%iwD&E=k(2C`E>mS! zHAW{=X6+WOm8MtSO{R|2)MD~Lx#1&Lf4OU`I4MF_oU_fzFS+Er^yLAoe{<^=0MbDe zVb^q+52D`0L)kWa?UoSa(RJ6w6cJ}qgC_Hr9}b~d7c2Z|>R@#@4n`3;*R{5iv?_Na z`ZGIB?pWT+{nd|h%tRGaDRXU|na`wY7h3J{wRTGg^5}X9vTVorxl>kWc6B>*^#{%C z7POG_n0AddY8%2M*w{A*qcD{_h*Xq-5k5f)c6TO9xZsE zv@&!ZUF!izQ5ynGaWw!qHET%@A%c>40O*Ui`f=W@vcG`EX zH~WA7z7Tn{n_2>Zfuoh#52Ur&6^yO96!cqOamHQ%0GjGM1Awq_vz2vl$!T9x9{}Wj zG6X3?mlA?Js@M**zb_2y&%kLfNO5}x8pCD)!YG0lIm!r*PniBpG)^2jTFd2zcFlSJ zgdmS9Mo_hOv1%1Ba@_iy)?NgLSmly4(b`H8vf>bda5`sKhv|X+Xl~(c7 zyGpR@ZY#p>0N_&455%wCv?I~=R&h!Q@~G 0f) + { + projectile.localAI[1] -= 1f; + } + projectile.alpha -= 42; + if (projectile.alpha < 0) + { + projectile.alpha = 0; + } + if (projectile.localAI[0] == 0f) + { + projectile.localAI[0] = projectile.velocity.ToRotation(); + } + float num32 = (float)((projectile.localAI[0].ToRotationVector2().X >= 0f) ? 1 : -1); + if (projectile.ai[1] <= 0f) + { + num32 *= -1f; + } + Vector2 vector17 = (num32 * (projectile.ai[0] / 30f * 6.28318548f - 1.57079637f)).ToRotationVector2(); + vector17.Y *= (float)Math.Sin((double)projectile.ai[1]); + if (projectile.ai[1] <= 0f) + { + vector17.Y *= -1f; + } + vector17 = vector17.RotatedBy((double)projectile.localAI[0], default); + projectile.ai[0] += 1f; + if (projectile.ai[0] < 30f) + { + projectile.velocity += 48f * vector17; + } + else + { + projectile.Kill(); + } + projectile.position = player.RotatedRelativePoint(player.MountedCenter, true) - projectile.Size / 2f; + projectile.rotation = projectile.velocity.ToRotation() + num; + projectile.spriteDirection = projectile.direction; + projectile.timeLeft = 2; + player.ChangeDir(projectile.direction); + player.heldProj = projectile.whoAmI; + player.itemTime = 2; + player.itemAnimation = 2; + player.itemRotation = (float)Math.Atan2((double)(projectile.velocity.Y * (float)projectile.direction), (double)(projectile.velocity.X * (float)projectile.direction)); + Vector2 vector24 = Main.OffsetsPlayerOnhand[player.bodyFrame.Y / 56] * 2f; + if (player.direction != 1) + { + vector24.X = (float)player.bodyFrame.Width - vector24.X; + } + if (player.gravDir != 1f) + { + vector24.Y = (float)player.bodyFrame.Height - vector24.Y; + } + vector24 -= new Vector2((float)(player.bodyFrame.Width - player.width), (float)(player.bodyFrame.Height - 42)) / 2f; + projectile.Center = player.RotatedRelativePoint(player.position + vector24, true) - projectile.velocity; + if (projectile.alpha == 0) + { + for (int num51 = 0; num51 < 2; num51++) + { + Dust dust = Main.dust[Dust.NewDust(projectile.position + projectile.velocity * 2f, projectile.width, projectile.height, 176, 0f, 0f, 100, default, 2f)]; + dust.noGravity = true; + dust.velocity *= 2f; + dust.velocity += projectile.localAI[0].ToRotationVector2(); + dust.fadeIn = 1.5f; + } + float num52 = 18f; + int num53 = 0; + while ((float)num53 < num52) + { + if (Main.rand.NextBool(4)) + { + Vector2 position = projectile.position + projectile.velocity + projectile.velocity * ((float)num53 / num52); + Dust dust2 = Main.dust[Dust.NewDust(position, projectile.width, projectile.height, 20, 0f, 0f, 100, default, 1f)]; + dust2.noGravity = true; + dust2.fadeIn = 0.5f; + dust2.velocity += projectile.localAI[0].ToRotationVector2(); + dust2.noLight = true; + } + num53++; + } + } + if (moonCounter > 0) + moonCounter--; + if (moonCounter <= 0 && projectile.owner == Main.myPlayer) + { + Vector2 vectorBruh = Main.OffsetsPlayerOnhand[player.bodyFrame.Y / 56] * 2f; + if (player.direction != 1) + { + vectorBruh.X = (float)player.bodyFrame.Width - vectorBruh.X; + } + if (player.gravDir != 1f) + { + vectorBruh.Y = (float)player.bodyFrame.Height - vectorBruh.Y; + } + vectorBruh -= new Vector2((float)(player.bodyFrame.Width - player.width), (float)(player.bodyFrame.Height - 42)) / 2f; + Vector2 newCenter = player.RotatedRelativePoint(Main.player[projectile.owner].position + vectorBruh, true) + projectile.velocity; + int moon = Projectile.NewProjectile(newCenter.X, newCenter.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.4), 0f, projectile.owner, 0f, 0f); + moonCounter = 6; + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Vector2 mountedCenter = Main.player[projectile.owner].MountedCenter; + Color color25 = Lighting.GetColor((int)((double)projectile.position.X + (double)projectile.width * 0.5) / 16, (int)(((double)projectile.position.Y + (double)projectile.height * 0.5) / 16.0)); + if (projectile.hide && !ProjectileID.Sets.DontAttachHideToAlpha[projectile.type]) + { + color25 = Lighting.GetColor((int)mountedCenter.X / 16, (int)(mountedCenter.Y / 16f)); + } + Vector2 projPos = projectile.position; + projPos = new Vector2((float)projectile.width, (float)projectile.height) / 2f + Vector2.UnitY * projectile.gfxOffY - Main.screenPosition; //fuck it + Texture2D texture2D22 = Main.projectileTexture[projectile.type]; + Color alpha3 = projectile.GetAlpha(color25); + if (projectile.velocity == Vector2.Zero) + { + return false; + } + float num230 = projectile.velocity.Length() + 16f; + bool flag24 = num230 < 100f; + Vector2 value28 = Vector2.Normalize(projectile.velocity); + Rectangle rectangle8 = new Rectangle(0, 0, texture2D22.Width, 54); //2 and 40 + Vector2 value29 = new Vector2(0f, Main.player[projectile.owner].gfxOffY); + float rotation24 = projectile.rotation + 3.14159274f; + Main.spriteBatch.Draw(texture2D22, projectile.Center.Floor() - Main.screenPosition + value29, new Microsoft.Xna.Framework.Rectangle?(rectangle8), alpha3, rotation24, rectangle8.Size() / 2f - Vector2.UnitY * 4f, projectile.scale, SpriteEffects.None, 0f); + num230 -= 40f * projectile.scale; + Vector2 vector31 = projectile.Center.Floor(); + vector31 += value28 * projectile.scale * 24f; + rectangle8 = new Rectangle(0, 84, texture2D22.Width, 18); //68 and 18 + if (num230 > 0f) + { + float num231 = 0f; + while (num231 + 1f < num230) + { + if (num230 - num231 < (float)rectangle8.Height) + { + rectangle8.Height = (int)(num230 - num231); + } + Main.spriteBatch.Draw(texture2D22, vector31 - Main.screenPosition + value29, new Microsoft.Xna.Framework.Rectangle?(rectangle8), alpha3, rotation24, new Vector2((float)(rectangle8.Width / 2), 0f), projectile.scale, SpriteEffects.None, 0f); + num231 += (float)rectangle8.Height * projectile.scale; + vector31 += value28 * (float)rectangle8.Height * projectile.scale; + } + } + Vector2 value30 = vector31; + vector31 = projectile.Center.Floor(); + vector31 += value28 * projectile.scale * 24f; + rectangle8 = new Rectangle(0, 62, texture2D22.Width, 20); //46 and 18 + int num232 = 18; + if (flag24) + { + num232 = 9; + } + float num233 = num230; + if (num230 > 0f) + { + float num234 = 0f; + float num235 = num233 / (float)num232; + num234 += num235 * 0.25f; + vector31 += value28 * num235 * 0.25f; + for (int num236 = 0; num236 < num232; num236++) + { + float num237 = num235; + if (num236 == 0) + { + num237 *= 0.75f; + } + Main.spriteBatch.Draw(texture2D22, vector31 - Main.screenPosition + value29, new Microsoft.Xna.Framework.Rectangle?(rectangle8), alpha3, rotation24, new Vector2((float)(rectangle8.Width / 2), 0f), projectile.scale, SpriteEffects.None, 0f); + num234 += num237; + vector31 += value28 * num237; + } + } + rectangle8 = new Rectangle(0, 104, texture2D22.Width, 50); //90 and 48 + Main.spriteBatch.Draw(texture2D22, value30 - Main.screenPosition + value29, new Microsoft.Xna.Framework.Rectangle?(rectangle8), alpha3, rotation24, texture2D22.Frame(1, 1, 0, 0).Top(), projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void CutTiles() + { + DelegateMethods.tilecut_0 = TileCuttingContext.AttackProjectile; + Vector2 unit = projectile.velocity; + Utils.PlotTileLine(projectile.Center, projectile.Center + unit * projectile.localAI[1], (float)projectile.width * projectile.scale, new Utils.PerLinePoint(DelegateMethods.CutTiles)); + } + + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + if (projHitbox.Intersects(targetHitbox)) + { + return true; + } + float num8 = 0f; + if (Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), projectile.Center, projectile.Center + projectile.velocity, 16f * projectile.scale, ref num8)) + { + return true; + } + return false; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(ModContent.BuffType(), 240); + projectile.localAI[1] = 4f; + } + } +} diff --git a/Projectiles/Melee/CrescentMoonFlail.png b/Projectiles/Melee/CrescentMoonFlail.png new file mode 100644 index 0000000000000000000000000000000000000000..f657e8b5ec63f6779c1ee2ecfecc50ed5ade9a72 GIT binary patch literal 2867 zcmV-33(WM1P)BF7l*?T?1?5=0FQRn_&?7R2QoqOj$=YE`f&KZY<(X;P$0QwJX1z_~@r*2TW z{sUVbFCT#X)z=ek*P5g|{zZk8RK@*0#{p>AzYl)<0RR)1ZUV6W>1~1OJHPn7);7y{%xJ9F zjfC0bKRp7J%lKvh&c5+}T{~_Wj~k0j0nkJ@u##!Pa@xy3^N+W*>yv_IJZ=bMbIvdT zXP$peW&G`zz{+`C@(a!-0GiycL_3~Z#uJ;zyR+NmUl*XQJ*#dwyCbl?+i?Scdxf0V zwyE6BMB0~H#_KkZ3xwI8ta=0Tx!h{1s~MK@dO?`($ZphruQ&6S@ubku(BuHzE96}8 z8S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qm$-H5gdFk;fCYce9Mwim1_5VnZ~yw5rkA z`)1)mRD3tFeUbe6qOznI%_S56MPM0E3SnQIH@{6hU!2p*CymrHUiUaKy_?l&K6y*o zt@mzLcIuP2)Ei(KPZ<9NI4O0Ywj(), 180); + } + } +} diff --git a/Projectiles/Melee/CrescentMoonProj.png b/Projectiles/Melee/CrescentMoonProj.png new file mode 100644 index 0000000000000000000000000000000000000000..38aef93175dba8aff23dac3eca238c73ad0a1b64 GIT binary patch literal 660 zcmV;F0&D$=P)yJ@pp=*vx+lAe>f7 zKDKi!*}dLASMJa5o7^84>V<%Ootf;9C7~SJ5!pGleQxi79Zw#30DEhDKpnjol=p!o z5>gTon~ZWT**UN2yJ6gbtJsL_>8Q?ky1E|lA5w>t&y#*wa=MUQ6m6W&0cQ)?F=$WV uF#rGn5_CmabVXQ6MmkS&X=QG7VRUJ4ZU8ZaSnTfr0000 Date: Wed, 25 Dec 2019 16:22:56 -0500 Subject: [PATCH 06/34] Buffed Oracle maneuverability. Aura shows up on DPS meter. --- Items/Weapons/Melee/Oracle.cs | 19 ++++++++------- Projectiles/Melee/Yoyos/OracleYoyo.cs | 33 ++++++++++++++++++++++---- Projectiles/Typeless/DirectStrike.cs | 23 ++++++++++++++++++ Projectiles/Typeless/DirectStrike.png | Bin 0 -> 177 bytes 4 files changed, 61 insertions(+), 14 deletions(-) create mode 100644 Projectiles/Typeless/DirectStrike.cs create mode 100644 Projectiles/Typeless/DirectStrike.png diff --git a/Items/Weapons/Melee/Oracle.cs b/Items/Weapons/Melee/Oracle.cs index b9fd0539ad..a97dc1d01f 100644 --- a/Items/Weapons/Melee/Oracle.cs +++ b/Items/Weapons/Melee/Oracle.cs @@ -1,5 +1,4 @@ using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Ores; using CalamityMod.Projectiles.Melee.Yoyos; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; @@ -11,36 +10,38 @@ namespace CalamityMod.Items.Weapons.Melee { public class Oracle : ModItem { - public static int BaseDamage = 480; - public override void SetStaticDefaults() { DisplayName.SetDefault("The Oracle"); Tooltip.SetDefault("Emits an aura of red lightning\nFires auric orbs when supercharged\nHitting enemies charges the yoyo\n'Gaze into the past, the present, the future... and the circumstances of your inevitable demise'"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.Kraken); - ItemID.Sets.Yoyo[item.type] = true; - item.width = 54; item.height = 42; item.melee = true; - item.damage = BaseDamage; + item.damage = 420; item.knockBack = 4f; item.useTime = 20; item.useAnimation = 20; item.autoReuse = true; item.useStyle = 5; + item.UseSound = SoundID.Item1; item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 16f; item.rare = 10; item.Calamity().postMoonLordRarity = 21; item.value = Item.buyPrice(2, 50, 0, 0); - - item.shoot = ModContent.ProjectileType(); } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Projectiles/Melee/Yoyos/OracleYoyo.cs b/Projectiles/Melee/Yoyos/OracleYoyo.cs index ab37dbeae1..7cfcd39d44 100644 --- a/Projectiles/Melee/Yoyos/OracleYoyo.cs +++ b/Projectiles/Melee/Yoyos/OracleYoyo.cs @@ -1,5 +1,7 @@ using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -19,23 +21,29 @@ namespace CalamityMod.Projectiles.Melee.Yoyos private static float MaxAuraRadius = 100f; private static float MinDischargeRate = 0.05f; private static float MaxDischargeRate = 0.53f; - private static float ChargePerHit = 6f; + private static float ChargePerHit = 2.2f; private static int AuraBaseDamage = 160; - private static int HitsPerOrbVolley = 6; + private static int HitsPerOrbVolley = 10; public override void SetStaticDefaults() { DisplayName.SetDefault("The Oracle"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 800f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 24f; + + ProjectileID.Sets.TrailCacheLength[projectile.type] = 8; + ProjectileID.Sets.TrailingMode[projectile.type] = 1; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.Terrarian); - aiType = 554; + projectile.aiStyle = 99; projectile.width = 20; projectile.height = 20; projectile.scale = 1.2f; + projectile.friendly = true; projectile.melee = true; projectile.penetrate = -1; projectile.extraUpdates = 1; @@ -91,6 +99,12 @@ namespace CalamityMod.Projectiles.Melee.Yoyos projectile.netUpdate = true; } + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; + } + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { // The yoyo does nothing versus normal dummies @@ -190,12 +204,21 @@ namespace CalamityMod.Projectiles.Melee.Yoyos if (dist <= radius) { + int finalDamage = (int)(baseDamage * (owner.allDamage + owner.meleeDamage - 1f)); + if (projectile.owner == Main.myPlayer) + { + Projectile p = Projectile.NewProjectileDirect(target.Center, Vector2.Zero, ModContent.ProjectileType(), finalDamage, 0f, projectile.owner); + p.melee = true; + p.Calamity().forceMelee = true; + } + /* int finalDamage = (int)(baseDamage * owner.meleeDamage * Main.rand.NextFloat(0.85f, 1.15f)); bool crit = Main.rand.Next(100) <= owner.meleeCrit + 4; target.StrikeNPC(finalDamage, 0f, 0, crit, false, false); if (Main.netMode != NetmodeID.SinglePlayer) NetMessage.SendData(28, -1, -1, null, i, finalDamage, 0f, 0f, crit ? 1 : 0, 0, 0); + */ } } } @@ -207,7 +230,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos int numOrbs = 3; int orbID = ModContent.ProjectileType(); - int orbDamage = Oracle.BaseDamage * 3; + int orbDamage = projectile.damage * 3; float orbKB = 8f; float angleVariance = MathHelper.TwoPi / numOrbs; float spinOffsetAngle = MathHelper.Pi / (2f * numOrbs); diff --git a/Projectiles/Typeless/DirectStrike.cs b/Projectiles/Typeless/DirectStrike.cs new file mode 100644 index 0000000000..0f1daef7cf --- /dev/null +++ b/Projectiles/Typeless/DirectStrike.cs @@ -0,0 +1,23 @@ +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Typeless +{ + public class DirectStrike : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Nondescript Damaging Entity"); + } + + public override void SetDefaults() + { + projectile.width = 2; + projectile.height = 2; + projectile.penetrate = 1; + projectile.extraUpdates = 0; + projectile.ignoreWater = true; + projectile.alpha = 255; + projectile.timeLeft = 2; + } + } +} diff --git a/Projectiles/Typeless/DirectStrike.png b/Projectiles/Typeless/DirectStrike.png new file mode 100644 index 0000000000000000000000000000000000000000..50986e43efffa58ad4756d4271f57d06bbd063eb GIT binary patch literal 177 zcmeAS@N?(olHy`uVBq!ia0vp^Od!m`1|*BN@u~nRwj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&pI^M^Z>jPvTcYB2Y*+GbEzKIX^cyHLnE7WngeFN=+)>IEHXsPyX}&zdbVu2s4W?Fc`2gGfth&Dhkr+>FVdQ I&MBb@058!ft^fc4 literal 0 HcmV?d00001 From 9a246bac45595f90a517ec492dcad6cb987552ec Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 25 Dec 2019 16:49:57 -0500 Subject: [PATCH 07/34] Removed all direct StrikeNPC calls --- CalPlayer/CalamityPlayer.cs | 24 +++++++++--------------- Items/Accessories/BloomStone.cs | 9 +++------ Items/Accessories/LeviathanAmbergris.cs | 8 ++------ Items/Accessories/PlagueHive.cs | 8 +++++--- Items/Accessories/TheAmalgam.cs | 7 ++++--- Items/Accessories/ToxicHeart.cs | 8 +++++--- Projectiles/Melee/Yoyos/OracleYoyo.cs | 10 +--------- Projectiles/Typeless/DirectStrike.cs | 11 ++++++++++- 8 files changed, 39 insertions(+), 46 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index cdf80ae240..acb45f609e 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5204,19 +5204,17 @@ namespace CalamityMod.CalPlayer { if (flag) { - nPC.StrikeNPC(num3, 0f, 0, false, false, false); - if (Main.netMode != NetmodeID.SinglePlayer) + if (player.whoAmI == Main.myPlayer) { - NetMessage.SendData(28, -1, -1, null, l, (float)num3, 0f, 0f, 0, 0, 0); + Projectile p = Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType(), num3, 0f, player.whoAmI, l); + p.minion = true; + p.Calamity().forceMinion = true; } } } } } lifeCounter++; - if (lifeCounter >= 180) - { - } } if (player.inventory[player.selectedItem].type == ModContent.ItemType() && player.ownedProjectileCounts[ModContent.ProjectileType()] != 0) @@ -5237,12 +5235,11 @@ namespace CalamityMod.CalPlayer { if (flag) { - nPC.StrikeNPC(num3, 0f, 0, false, false, false); - if (Main.netMode != NetmodeID.SinglePlayer) - { - NetMessage.SendData(28, -1, -1, null, l, (float)num3, 0f, 0f, 0, 0, 0); - } - Vector2 value15 = new Vector2((float)Main.rand.Next(-50, 51), (float)Main.rand.Next(-50, 51)); + if (player.whoAmI == Main.myPlayer) + { + Projectile p = Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType(), num3, 0f, player.whoAmI, l); + } + Vector2 value15 = new Vector2((float)Main.rand.Next(-50, 51), (float)Main.rand.Next(-50, 51)); while (value15.X == 0f && value15.Y == 0f) { value15 = new Vector2((float)Main.rand.Next(-50, 51), (float)Main.rand.Next(-50, 51)); @@ -5258,9 +5255,6 @@ namespace CalamityMod.CalPlayer } } auraCounter++; - if (auraCounter >= 180) - { - } } if (brimstoneElementalLore && player.inferno) diff --git a/Items/Accessories/BloomStone.cs b/Items/Accessories/BloomStone.cs index 1a2a2a3af4..b30a539f2e 100644 --- a/Items/Accessories/BloomStone.cs +++ b/Items/Accessories/BloomStone.cs @@ -1,4 +1,5 @@ using CalamityMod.CalPlayer; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -53,10 +54,9 @@ namespace CalamityMod.Items.Accessories } if (flag) { - nPC.StrikeNPC(num3, 0f, 0, false, false, false); - if (Main.netMode != NetmodeID.SinglePlayer) + if (player.whoAmI == Main.myPlayer) { - NetMessage.SendData(28, -1, -1, null, l, (float)num3, 0f, 0f, 0, 0, 0); + Projectile p = Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType(), num3, 0f, player.whoAmI, l); } } } @@ -64,9 +64,6 @@ namespace CalamityMod.Items.Accessories } } bloomCounter++; - if (bloomCounter >= 180) - { - } if (player.whoAmI == Main.myPlayer && player.velocity.Y == 0f && player.grappling[0] == -1) { int num4 = (int)player.Center.X / 16; diff --git a/Items/Accessories/LeviathanAmbergris.cs b/Items/Accessories/LeviathanAmbergris.cs index 0f877d3c59..4efd95bcc2 100644 --- a/Items/Accessories/LeviathanAmbergris.cs +++ b/Items/Accessories/LeviathanAmbergris.cs @@ -73,10 +73,9 @@ namespace CalamityMod.Items.Accessories } if (flag) { - nPC.StrikeNPC(num3, 0f, 0, false, false, false); - if (Main.netMode != NetmodeID.SinglePlayer) + if (player.whoAmI == Main.myPlayer) { - NetMessage.SendData(28, -1, -1, null, l, (float)num3, 0f, 0f, 0, 0, 0); + Projectile p = Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType(), num3, 0f, player.whoAmI, l); } } } @@ -84,9 +83,6 @@ namespace CalamityMod.Items.Accessories } } seaCounter++; - if (seaCounter >= 180) - { - } } } } diff --git a/Items/Accessories/PlagueHive.cs b/Items/Accessories/PlagueHive.cs index 3cd9b72779..cc33b3d11b 100644 --- a/Items/Accessories/PlagueHive.cs +++ b/Items/Accessories/PlagueHive.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -73,10 +74,11 @@ namespace CalamityMod.Items.Accessories } if (flag) { - nPC.StrikeNPC(num3, 0f, 0, false, false, false); - if (Main.netMode != NetmodeID.SinglePlayer) + if (player.whoAmI == Main.myPlayer) { - NetMessage.SendData(28, -1, -1, null, l, (float)num3, 0f, 0f, 0, 0, 0); + Projectile p = Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType(), num3, 0f, player.whoAmI, l); + p.minion = true; + p.Calamity().forceMinion = true; } } } diff --git a/Items/Accessories/TheAmalgam.cs b/Items/Accessories/TheAmalgam.cs index c1ad433bfb..714d62af2c 100644 --- a/Items/Accessories/TheAmalgam.cs +++ b/Items/Accessories/TheAmalgam.cs @@ -141,10 +141,11 @@ namespace CalamityMod.Items.Accessories } if (flag) { - nPC.StrikeNPC(num3, 0f, 0, false, false, false); - if (Main.netMode != NetmodeID.SinglePlayer) + if (player.whoAmI == Main.myPlayer) { - NetMessage.SendData(28, -1, -1, null, l, (float)num3, 0f, 0f, 0, 0, 0); + Projectile p = Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType(), num3, 0f, player.whoAmI, l); + p.minion = true; + p.Calamity().forceMinion = true; } } } diff --git a/Items/Accessories/ToxicHeart.cs b/Items/Accessories/ToxicHeart.cs index 3bb39cf667..05cd3d3166 100644 --- a/Items/Accessories/ToxicHeart.cs +++ b/Items/Accessories/ToxicHeart.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -48,10 +49,11 @@ namespace CalamityMod.Items.Accessories } if (flag) { - nPC.StrikeNPC(num3, 0f, 0, false, false, false); - if (Main.netMode != NetmodeID.SinglePlayer) + if (player.whoAmI == Main.myPlayer) { - NetMessage.SendData(28, -1, -1, null, l, (float)num3, 0f, 0f, 0, 0, 0); + Projectile p = Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType(), num3, 0f, player.whoAmI, l); + p.minion = true; + p.Calamity().forceMinion = true; } } } diff --git a/Projectiles/Melee/Yoyos/OracleYoyo.cs b/Projectiles/Melee/Yoyos/OracleYoyo.cs index 7cfcd39d44..4af9bdc38a 100644 --- a/Projectiles/Melee/Yoyos/OracleYoyo.cs +++ b/Projectiles/Melee/Yoyos/OracleYoyo.cs @@ -207,18 +207,10 @@ namespace CalamityMod.Projectiles.Melee.Yoyos int finalDamage = (int)(baseDamage * (owner.allDamage + owner.meleeDamage - 1f)); if (projectile.owner == Main.myPlayer) { - Projectile p = Projectile.NewProjectileDirect(target.Center, Vector2.Zero, ModContent.ProjectileType(), finalDamage, 0f, projectile.owner); + Projectile p = Projectile.NewProjectileDirect(target.Center, Vector2.Zero, ModContent.ProjectileType(), finalDamage, 0f, projectile.owner, i); p.melee = true; p.Calamity().forceMelee = true; } - /* - int finalDamage = (int)(baseDamage * owner.meleeDamage * Main.rand.NextFloat(0.85f, 1.15f)); - bool crit = Main.rand.Next(100) <= owner.meleeCrit + 4; - target.StrikeNPC(finalDamage, 0f, 0, crit, false, false); - - if (Main.netMode != NetmodeID.SinglePlayer) - NetMessage.SendData(28, -1, -1, null, i, finalDamage, 0f, 0f, crit ? 1 : 0, 0, 0); - */ } } } diff --git a/Projectiles/Typeless/DirectStrike.cs b/Projectiles/Typeless/DirectStrike.cs index 0f1daef7cf..f39fc3bbd9 100644 --- a/Projectiles/Typeless/DirectStrike.cs +++ b/Projectiles/Typeless/DirectStrike.cs @@ -1,4 +1,5 @@ -using Terraria.ModLoader; +using Terraria; +using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless { @@ -19,5 +20,13 @@ namespace CalamityMod.Projectiles.Typeless projectile.alpha = 255; projectile.timeLeft = 2; } + + // Can only strike the given NPC slot (assuming it's a valid identifier) + public override bool? CanHitNPC(NPC target) + { + if (projectile.ai[0] < 0f || projectile.ai[0] > 199f) + return null; + return projectile.ai[0] == target.whoAmI; + } } } From d6554ca3c0273d67abc638e70f107872dcb53fbb Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 25 Dec 2019 18:30:45 -0500 Subject: [PATCH 08/34] wulfrum droid and galileo dust effects --- Buffs/Summon/WulfrumDroidBuff.cs | 36 ++++ Buffs/Summon/WulfrumDroidBuff.png | Bin 0 -> 715 bytes CalPlayer/CalamityPlayer.cs | 2 + Items/Weapons/Summon/WulfrumController.cs | 73 +++++++ Items/Weapons/Summon/WulfrumController.png | Bin 0 -> 414 bytes Projectiles/Melee/GalileosPlanet.cs | 82 +++++-- Projectiles/Summon/WulfrumDroid.cs | 236 +++++++++++++++++++++ Projectiles/Summon/WulfrumDroid.png | Bin 0 -> 876 bytes 8 files changed, 416 insertions(+), 13 deletions(-) create mode 100644 Buffs/Summon/WulfrumDroidBuff.cs create mode 100644 Buffs/Summon/WulfrumDroidBuff.png create mode 100644 Items/Weapons/Summon/WulfrumController.cs create mode 100644 Items/Weapons/Summon/WulfrumController.png create mode 100644 Projectiles/Summon/WulfrumDroid.cs create mode 100644 Projectiles/Summon/WulfrumDroid.png diff --git a/Buffs/Summon/WulfrumDroidBuff.cs b/Buffs/Summon/WulfrumDroidBuff.cs new file mode 100644 index 0000000000..7e2f0bfcd5 --- /dev/null +++ b/Buffs/Summon/WulfrumDroidBuff.cs @@ -0,0 +1,36 @@ +using CalamityMod.CalPlayer; +using CalamityMod.Projectiles.Summon; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Buffs.Summon +{ + public class WulfrumDroidBuff : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Wulfrum Droid"); + Description.SetDefault("The wulfrum droid will protect you"); + Main.buffNoTimeDisplay[Type] = true; + Main.buffNoSave[Type] = true; + } + + public override void Update(Player player, ref int buffIndex) + { + CalamityPlayer modPlayer = player.Calamity(); + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) + { + modPlayer.wDroid = true; + } + if (!modPlayer.wDroid) + { + player.DelBuff(buffIndex); + buffIndex--; + } + else + { + player.buffTime[buffIndex] = 18000; + } + } + } +} diff --git a/Buffs/Summon/WulfrumDroidBuff.png b/Buffs/Summon/WulfrumDroidBuff.png new file mode 100644 index 0000000000000000000000000000000000000000..34b1c798e44f67db1c2cab1f230390a19d9b38ea GIT binary patch literal 715 zcmV;+0yO=JP)Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^000SaNLh0L01m-Yh2;M#5cRBZ-bM8I&`#Hbg`MsCm zOhwA81VBZZ7mfUiB0&Df2|*hS48PfneBfGc6o8RO*H!<_%g+F8bxubn_vaUi)67A1NZEB_ClJO!#mrabe5x&Qoa(r(9;mr| z34q3yYSq8Hc?7`Wx1Xv%^YJ|ZPd5T0xy=FqCnHUM5U8{r`%iiRcvy0pyi*52UwgBf zCs8l5S&?1a3EnesUy~V}Q}bdc5XM0L)h^)oJr?Kv-8cT}#jjS@6$u+7h3!?(2&Bdb z)qve|D@#NiyCft;ne>t$1i~zkJ+k?2zg)<;9J}V*bwsff2xFkNw@(e6_oTD>+es<< zvYhpUKo|qo*{-8s9J(a)^QBhiyU6)Nz@GUN6p=gjrBL{-6dLk}s5VkyJfbzS}A(1orY{df}>Do)WNCEdTC%B#Di;kJWwK-PuUz zHnyaO_(wphp*_1@+2E4RcZq(HkoC73X4z3BWDozh7T8}#qSy%}e!0Gw|Bg=qO%Bnw x9$?2%0000IbVXQnMOaBjI!|(GWo~p~bZKvH05ODE?C$^o002ovPDHLkV1hbAGPD2y literal 0 HcmV?d00001 diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index cdf80ae240..b8cb6ab1f0 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -617,6 +617,7 @@ namespace CalamityMod.CalPlayer public int bloodfinTimer = 30; // Minion + public bool wDroid = false; public bool resButterfly = false; public bool glSword = false; public bool mWorm = false; @@ -1283,6 +1284,7 @@ namespace CalamityMod.CalPlayer pinkCandle = false; yellowCandle = false; + wDroid = false; resButterfly = false; glSword = false; mWorm = false; diff --git a/Items/Weapons/Summon/WulfrumController.cs b/Items/Weapons/Summon/WulfrumController.cs new file mode 100644 index 0000000000..19965b6418 --- /dev/null +++ b/Items/Weapons/Summon/WulfrumController.cs @@ -0,0 +1,73 @@ +using CalamityMod.Projectiles.Summon; +using CalamityMod.Items.Materials; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons.Summon +{ + public class WulfrumController : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Wulfrum Controller"); + Tooltip.SetDefault("Summons a wulfrum droid to fight for you"); + } + + public override void SetDefaults() + { + item.damage = 6; + item.mana = 10; + item.width = 28; + item.height = 20; + item.useTime = 36; + item.useAnimation = 36; + item.useStyle = 4; + item.noMelee = true; + item.knockBack = 0.5f; + item.value = Item.buyPrice(0, 1, 0, 0); + item.rare = 1; + item.UseSound = SoundID.Item15; //phaseblade sound effect + item.autoReuse = true; + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 10f; + item.summon = true; + } + + public override bool AltFunctionUse(Player player) + { + return true; + } + + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + if (player.altFunctionUse != 2) + { + position = Main.MouseWorld; + speedX = 0; + speedY = 0; + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI); + } + return false; + } + + public override bool UseItem(Player player) + { + if (player.altFunctionUse == 2) + { + player.MinionNPCTargetAim(); + } + return base.UseItem(player); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ModContent.ItemType(), 9); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Weapons/Summon/WulfrumController.png b/Items/Weapons/Summon/WulfrumController.png new file mode 100644 index 0000000000000000000000000000000000000000..c419f9b6ac2bcce575cb1d04a0132d3913f50add GIT binary patch literal 414 zcmV;P0b%}$P)nC z_N(cYkztDe5~B?)ZdCwi#t8uN>z4(X%8moDw_EJ_;M2=H04i&F01oyq!U!WxHZk2E zs(}R<%|?!_y1wevot$0$C_6m9cIJf>N;js{?d#fmVgcqCCY=@gGC!IuoKR#lb7KI! zJk~A1^7gE=Vl7KMM?m*%MJ79QfAbkuX!0wYK=%ux$)x)vvT|Rh<>RRyNSG^>2Ks{d z`K>IV=-F@#v`?*IS*07*qo IM6N<$g1h^)hyVZp literal 0 HcmV?d00001 diff --git a/Projectiles/Melee/GalileosPlanet.cs b/Projectiles/Melee/GalileosPlanet.cs index c98aed1a26..ea67a3b486 100644 --- a/Projectiles/Melee/GalileosPlanet.cs +++ b/Projectiles/Melee/GalileosPlanet.cs @@ -4,6 +4,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using Terraria.Graphics.Shaders; using CalamityMod.Buffs.DamageOverTime; namespace CalamityMod.Projectiles.Melee @@ -32,6 +33,31 @@ namespace CalamityMod.Projectiles.Melee public override void AI() { projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; + for (float i = -5; i <= 0; i++) + { + if (Main.rand.NextFloat(1f) < 0.4f) + { + // You need to set position depending on what you are doing. You may need to subtract width/2 and height/2 as well to center the spawn rectangle. + Vector2 pos = projectile.position + new Vector2((projectile.width / 2) - 8, projectile.height + 16); + Dust dust1 = Dust.NewDustPerfect(pos + new Vector2(-20 + i, -2), 180, new Vector2(i * 0.7f, -1.1f)); + dust1.noGravity = true; + } + } + for (float i = 0; i <= 5; i++) + { + if (Main.rand.NextFloat(1f) < 0.4f) + { + // You need to set position depending on what you are doing. You may need to subtract width/2 and height/2 as well to center the spawn rectangle. + Vector2 pos = projectile.position + new Vector2((projectile.width / 2) - 8, projectile.height + 16); + Dust dust1 = Dust.NewDustPerfect(pos + new Vector2(20 + i, -2), 180, new Vector2(i * 0.7f, -1.1f)); + dust1.noGravity = true; + } + } + + Dust dust; + // You need to set position depending on what you are doing. You may need to subtract width/2 and height/2 as well to center the spawn rectangle. + Vector2 pos2 = projectile.Center - new Vector2(20, 20); + dust = Main.dust[Dust.NewDust(pos2, 40, 40, 180, 0f, 0f, 0, new Color(255, 255, 255), 1f)]; Lighting.AddLight(projectile.Center, 0.3f, 0.3f, 0.7f); } @@ -48,7 +74,6 @@ namespace CalamityMod.Projectiles.Melee projectile.width = projectile.height = 32; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); radius = 100; projectile.maxPenetrate = -1; projectile.penetrate = -1; @@ -56,23 +81,54 @@ namespace CalamityMod.Projectiles.Melee projectile.localNPCHitCooldown = 10; projectile.damage /= 2; projectile.Damage(); - for (int num621 = 0; num621 < 4; num621++) + for (int i = 0; i < 72; i++) { - int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 176, 0f, 0f, 100, default, 2f); - Main.dust[num622].velocity *= 3f; - if (Main.rand.NextBool(2)) + Dust dust; + // You need to set position depending on what you are doing. You may need to subtract width/2 and height/2 as well to center the spawn rectangle. + Vector2 position = projectile.Center - new Vector2(30, 30); + dust = Main.dust[Terraria.Dust.NewDust(position, 60, 60, 187, Main.rand.Next(-5, 5), Main.rand.Next(-5, 5), 0, new Color(0, 167, 255), 5f)]; + dust.noGravity = true; + dust.shader = GameShaders.Armor.GetSecondaryShader(47, Main.LocalPlayer); + } + + Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43); + + for (int i = 0; i < 155; i++) + { + Dust dust; + // You need to set position depending on what you are doing. You may need to subtract width/2 and height/2 as well to center the spawn rectangle. + Vector2 position = projectile.position; + dust = Main.dust[Dust.NewDust(position, 94, 94, 180, Main.rand.Next(-5, 5), Main.rand.Next(-5, 5), 0, new Color(255, 255, 255), Main.rand.NextFloat(1.2f, 2.2f))]; + dust.noGravity = true; + } + + for (int x = 1; x <= 3; x++) + { + int num20 = 36; + for (int i = 0; i < num20; i++) { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + Vector2 spinningpoint = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f * 0.5f; + spinningpoint = spinningpoint.RotatedBy((double)((float)(i - (num20 / 2 - 1)) * 6.28318548f / (float)num20), default(Vector2)) + projectile.Center; + Vector2 vector = spinningpoint - projectile.Center; + int num21 = Dust.NewDust(spinningpoint + vector, 0, 0, 180, vector.X * 2f, vector.Y * 2f, 0, new Color(255, 255, 255), 1f); + Main.dust[num21].noGravity = true; + Main.dust[num21].velocity = Vector2.Normalize(vector) * x; } } - for (int num623 = 0; num623 < 12; num623++) + + for (int x = 1; x <= 3; x++) { - int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 176, 0f, 0f, 100, default, 3f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 176, 0f, 0f, 100, default, 2f); - Main.dust[num624].velocity *= 2f; + int num20 = 36; + for (int i = 0; i < num20; i++) + { + Vector2 spinningpoint = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f * 0.5f; + spinningpoint = spinningpoint.RotatedBy((double)((float)(i - (num20 / 2 - 1)) * 6.28318548f / (float)num20), default(Vector2)) + projectile.Center; + Vector2 vector = spinningpoint - projectile.Center; + int num21 = Dust.NewDust(spinningpoint + vector, 0, 0, 180, vector.X * 2f, vector.Y * 2f, 0, new Color(255, 255, 255), 1f); + Main.dust[num21].noGravity = true; + Main.dust[num21].velocity = Vector2.Normalize(vector) * x; + Main.dust[num21].velocity *= 2; + } } for (int num625 = 0; num625 < 3; num625++) { diff --git a/Projectiles/Summon/WulfrumDroid.cs b/Projectiles/Summon/WulfrumDroid.cs new file mode 100644 index 0000000000..5d2d0df66d --- /dev/null +++ b/Projectiles/Summon/WulfrumDroid.cs @@ -0,0 +1,236 @@ +using CalamityMod.Buffs.Summon; +using CalamityMod.CalPlayer; +using CalamityMod.Projectiles.Magic; +using Microsoft.Xna.Framework; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Summon +{ + public class WulfrumDroid : ModProjectile + { + public float dust = 0f; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Wulfrum Droid"); + Main.projFrames[projectile.type] = 3; + ProjectileID.Sets.MinionSacrificable[projectile.type] = true; + ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true; + } + + public override void SetDefaults() + { + projectile.width = 30; + projectile.height = 30; + projectile.netImportant = true; + projectile.friendly = true; + projectile.ignoreWater = true; + //projectile.aiStyle = 62; + projectile.minionSlots = 1f; + projectile.timeLeft = 18000; + projectile.penetrate = -1; + projectile.tileCollide = false; + projectile.timeLeft *= 5; + projectile.minion = true; + } + + public override void AI() + { + Player player = Main.player[projectile.owner]; + CalamityPlayer modPlayer = player.Calamity(); + if (dust == 0f) + { + projectile.Calamity().spawnedPlayerMinionDamageValue = player.minionDamage; + projectile.Calamity().spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; + for (int num227 = 0; num227 < num226; num227++) + { + Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; + vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default) + projectile.Center; + Vector2 vector7 = vector6 - projectile.Center; + int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 61, vector7.X * 1.1f, vector7.Y * 1.1f, 100, default, 1.4f); + Main.dust[num228].noGravity = true; + Main.dust[num228].noLight = true; + Main.dust[num228].velocity = vector7; + } + dust += 1f; + } + if (player.minionDamage != projectile.Calamity().spawnedPlayerMinionDamageValue) + { + int damage2 = (int)((float)projectile.Calamity().spawnedPlayerMinionProjectileDamageValue / + projectile.Calamity().spawnedPlayerMinionDamageValue * + player.minionDamage); + projectile.damage = damage2; + } + projectile.frameCounter++; + if (projectile.frameCounter > 8) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame >= 3) + { + projectile.frame = 0; + } + bool flag64 = projectile.type == ModContent.ProjectileType(); + player.AddBuff(ModContent.BuffType(), 3600); + if (flag64) + { + if (player.dead) + { + modPlayer.wDroid = false; + } + if (modPlayer.wDroid) + { + projectile.timeLeft = 2; + } + } + float num6 = 0.05f; + float width = (float) projectile.width; + for (int index = 0; index < 1000; ++index) + { + if (index != projectile.whoAmI && Main.projectile[index].active && (Main.projectile[index].owner == projectile.owner && Main.projectile[index].type == projectile.type) && (double) Math.Abs(projectile.position.X - Main.projectile[index].position.X) + (double) Math.Abs(projectile.position.Y - Main.projectile[index].position.Y) < (double) width) + { + if ((double) projectile.position.X < (double) Main.projectile[index].position.X) + projectile.velocity.X -= num6; + else + projectile.velocity.X += num6; + if ((double) projectile.position.Y < (double) Main.projectile[index].position.Y) + projectile.velocity.Y -= num6; + else + projectile.velocity.Y += num6; + } + } + Vector2 vector2_3 = projectile.position; + float num7 = 400f; + bool flag = false; + int num8 = -1; + NPC minionAttackTargetNpc = projectile.OwnerMinionAttackTargetNPC; + if (minionAttackTargetNpc != null && minionAttackTargetNpc.CanBeChasedBy((object) this, false)) + { + float num1 = Vector2.Distance(minionAttackTargetNpc.Center, projectile.Center); + if (((double) Vector2.Distance(projectile.Center, vector2_3) > (double) num1 && (double) num1 < (double) num7 || !flag) && Collision.CanHitLine(projectile.position, projectile.width, projectile.height, minionAttackTargetNpc.position, minionAttackTargetNpc.width, minionAttackTargetNpc.height)) + { + num7 = num1; + vector2_3 = minionAttackTargetNpc.Center; + flag = true; + num8 = minionAttackTargetNpc.whoAmI; + } + } + if (!flag) + { + for (int index2 = 0; index2 < 200; ++index2) + { + NPC npc = Main.npc[index2]; + if (npc.CanBeChasedBy((object) this, false)) + { + float num1 = Vector2.Distance(npc.Center, projectile.Center); + if (((double) Vector2.Distance(projectile.Center, vector2_3) > (double) num1 && (double) num1 < (double) num7 || !flag) && Collision.CanHitLine(projectile.position, projectile.width, projectile.height, npc.position, npc.width, npc.height)) + { + num7 = num1; + vector2_3 = npc.Center; + flag = true; + num8 = index2; + } + } + } + } + int num9 = 500; + if (flag) + num9 = 1000; + if ((double) Vector2.Distance(player.Center, projectile.Center) > (double) num9) + { + projectile.ai[0] = 1f; + projectile.netUpdate = true; + } + if ((double) projectile.ai[0] == 1.0) + projectile.tileCollide = false; + if (flag && (double) projectile.ai[0] == 0.0) + { + Vector2 vector2_1 = vector2_3 - projectile.Center; + float num1 = vector2_1.Length(); + vector2_1.Normalize(); + if ((double) num1 > 200.0) + { + float num2 = 6f; + Vector2 vector2_2 = vector2_1 * num2; + projectile.velocity.X = (float) (((double) projectile.velocity.X * 40.0 + (double) vector2_2.X) / 41.0); + projectile.velocity.Y = (float) (((double) projectile.velocity.Y * 40.0 + (double) vector2_2.Y) / 41.0); + } + else if ((double) projectile.velocity.Y > -1.0) + projectile.velocity.Y -= 0.1f; + } + else + { + if (!Collision.CanHitLine(projectile.Center, 1, 1, Main.player[projectile.owner].Center, 1, 1)) + projectile.ai[0] = 1f; + float num1 = 6f; + if ((double) projectile.ai[0] == 1.0) + num1 = 15f; + Vector2 center = projectile.Center; + Vector2 vector2_1 = player.Center - center + new Vector2(0.0f, -60f); + float num3 = vector2_1.Length(); + if ((double) num3 > 200.0 && (double) num1 < 9.0) + num1 = 9f; + if ((double) num3 < 100.0 && (double) projectile.ai[0] == 1.0 && !Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) + { + projectile.ai[0] = 0.0f; + projectile.netUpdate = true; + } + if ((double) num3 > 2000.0) + { + projectile.position.X = Main.player[projectile.owner].Center.X - (float) (projectile.width / 2); + projectile.position.Y = Main.player[projectile.owner].Center.Y - (float) (projectile.width / 2); + } + else if ((double) num3 > 70.0) + { + vector2_1.Normalize(); + projectile.velocity = (projectile.velocity * 20f + vector2_1 * num1) / 21f; + } + else + { + if ((double) projectile.velocity.X == 0.0 && (double) projectile.velocity.Y == 0.0) + { + projectile.velocity.X = -0.15f; + projectile.velocity.Y = -0.05f; + } + projectile.velocity = projectile.velocity * 1.01f; + } + } + projectile.rotation = projectile.velocity.X * 0.05f; + if ((double) projectile.velocity.X > 0.0) + projectile.spriteDirection = projectile.direction = -1; + else if ((double) projectile.velocity.X < 0.0) + projectile.spriteDirection = projectile.direction = 1; + if ((double) projectile.ai[1] > 0.0) + projectile.ai[1] += (float) Main.rand.Next(1, 4); + if ((double) projectile.ai[1] > 90.0) + { + projectile.ai[1] = 0.0f; + projectile.netUpdate = true; + } + if ((double) projectile.ai[1] != 0.0) + return; + ++projectile.ai[1]; + if (Main.myPlayer != projectile.owner) + return; + if (!flag) + return; + Vector2 vec = vector2_3 - projectile.Center; + vec.Normalize(); + Vector2 vec2 = vec * 10f; + int bolt = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vec2.X, vec2.Y, ModContent.ProjectileType(), projectile.damage, 0.0f, Main.myPlayer, 0.0f, 0.0f); + Main.projectile[bolt].Calamity().forceMinion = true; + Main.projectile[bolt].netUpdate = true; + projectile.netUpdate = true; + } + + public override bool CanDamage() + { + return false; + } + } +} diff --git a/Projectiles/Summon/WulfrumDroid.png b/Projectiles/Summon/WulfrumDroid.png new file mode 100644 index 0000000000000000000000000000000000000000..c227fdff073f74bbfc91785fdf5a2592d450a98a GIT binary patch literal 876 zcmV-y1C#uTP)N{5du~bM38i1=LayQphYaSP)M14fONrb5f(u!L9j_Q zq?06Nz*P>RK=7Kn5Cb#3-&5I%;vb=ab`F-{1I5F`0&E5L<7gCKoZ*60{=!X0oYX0N8 z7FGwJll{~RwWHY?{7gPCU71za?Yf~+Q{(A>`H^g6aL8V}8**o;$ihi-wUcASn1MS( zGu8px2z>`0-@9|_d0QX9ib&I+N=>;ll)Y=r&`0RNpgS>WV~wf0pIN5d88T}K_IH0L zrgZ^eDvGn1gT&WCblMmu}Grf+M?ouP?qh<>6+ zZ#cg-q+#xCtw>98XDBj8i^v!)B4f0OjL{-8MvKT8r#2KBqjf-JjC_fVF+*gG#fBnd zvs&WB>pF5_CmabVXQ6MmkS&X=QG7VRUJ4ZU8ZaSnTfr0000 Date: Wed, 25 Dec 2019 19:53:45 -0500 Subject: [PATCH 09/34] added Turq's Stratus Sphere --- Items/Weapons/Magic/StratusSphere.cs | 68 ++++++++++++ Items/Weapons/Magic/StratusSphere.png | Bin 0 -> 1147 bytes Projectiles/Magic/Crescent.cs | 55 ++++++++++ Projectiles/Magic/Crescent.png | Bin 0 -> 660 bytes Projectiles/Magic/StratusSphereProj.cs | 135 ++++++++++++++++++++++++ Projectiles/Magic/StratusSphereProj.png | Bin 0 -> 29513 bytes 6 files changed, 258 insertions(+) create mode 100644 Items/Weapons/Magic/StratusSphere.cs create mode 100644 Items/Weapons/Magic/StratusSphere.png create mode 100644 Projectiles/Magic/Crescent.cs create mode 100644 Projectiles/Magic/Crescent.png create mode 100644 Projectiles/Magic/StratusSphereProj.cs create mode 100644 Projectiles/Magic/StratusSphereProj.png diff --git a/Items/Weapons/Magic/StratusSphere.cs b/Items/Weapons/Magic/StratusSphere.cs new file mode 100644 index 0000000000..faa092a554 --- /dev/null +++ b/Items/Weapons/Magic/StratusSphere.cs @@ -0,0 +1,68 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Projectiles.Magic; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Ores; + +namespace CalamityMod.Items.Weapons.Magic +{ + public class StratusSphere : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Stratus Sphere"); + Tooltip.SetDefault("Fires an energy orb containing the essence of our stratosphere\n" + + "Up to six of these can be active at a time"); + } + public override void SetDefaults() + { + item.damage = 500; + item.noMelee = true; + item.magic = true; + item.width = 50; + item.height = 50; + item.useTime = 45; + item.useAnimation = 45; + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 7f; + item.useStyle = 5; + item.mana = 30; + item.knockBack = 2; + item.UseSound = SoundID.Item20; + item.rare = 4; + item.autoReuse = true; + item.useTurn = true; + item.value = Item.buyPrice(1, 40, 0, 0); + item.rare = 10; + item.Calamity().postMoonLordRarity = 13; + } + + public override bool CanUseItem(Player player) + { + if (player.ownedProjectileCounts[item.shoot] >= 6) + { + return false; + } + else + { + return true; + } + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.NebulaArcanum); + recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 12); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} + diff --git a/Items/Weapons/Magic/StratusSphere.png b/Items/Weapons/Magic/StratusSphere.png new file mode 100644 index 0000000000000000000000000000000000000000..c948342b486cf741e1df1725dfa85db3963942a5 GIT binary patch literal 1147 zcmV->1cdvEP)T#o`K}QYl&W zzfI?B_P=kXV82{B8fDCTq98(_(2xM2Iro9pn7Z~c05dnIt@^pS8H-#z^SAoZolp(krd>3EVmLZ&67+k?f2Ai;8E{~M8V`Hn^6 z_2Exzl32_EGxNgq4Nb_9NjZdio^1o*^nfl){AH_3floOSi^YK@2W)-!7yy0UfgyrT z!pQXvkr4Si_of}k#JxVS&+0GZ`$MEsDOtIZGw)QCbKbG&k998ru=e&B7NLgTgDb`v z!6qZQ;tvtGLf+|W5)!UtrZV%s?yN4G)i*zUxaRk~A);I-mA&DsPj*=yhsMePobG+~ zt_Bc48hu~y+TuHsQ*(1Oei5lkh{E`UA@B^alryXOK|M)sta0ko#+kh%Qk5ej@rlm8 z&jZ!IATwQ!jO3i`)`g9)S>?%zOMVdv7CqGm&CTq_;S&HP9@(RR@y+ivA+xGhlQ?#)^*I0*zWy=<*l_S2t6#y8 z@rQ^!2no?_dlvv5JGKDu^H@bU 20) + { + projectile.velocity += projectile.DirectionTo(parent.Center) * 2.5f; + if (projectile.Distance(parent.Center) < 75f) projectile.active = false; + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Magic/Crescent.png b/Projectiles/Magic/Crescent.png new file mode 100644 index 0000000000000000000000000000000000000000..38aef93175dba8aff23dac3eca238c73ad0a1b64 GIT binary patch literal 660 zcmV;F0&D$=P)yJ@pp=*vx+lAe>f7 zKDKi!*}dLASMJa5o7^84>V<%Ootf;9C7~SJ5!pGleQxi79Zw#30DEhDKpnjol=p!o z5>gTon~ZWT**UN2yJ6gbtJsL_>8Q?ky1E|lA5w>t&y#*wa=MUQ6m6W&0cQ)?F=$WV uF#rGn5_CmabVXQ6MmkS&X=QG7VRUJ4ZU8ZaSnTfr0000 100) + { + projectile.velocity.X = projectile.velocity.X * 40 / 41; + projectile.velocity.Y = projectile.velocity.Y * 45 / 46 - 0.005f; + } + } + else + { + projectile.velocity.X = projectile.velocity.X * 10 / 11; + projectile.velocity.Y = projectile.velocity.Y * 10 / 11; + if (roundsGone <= 4) projectile.ai[1]++; + int rand = Main.rand.Next(-50, 51); + int rand2 = Main.rand.Next(-50, 51); + Vector2 targetDir = projectile.Center + new Vector2(rand, rand2); + if (projectile.ai[1] > 40) + { + Projectile.NewProjectile(projectile.Center, projectile.DirectionTo(targetDir) * 12f, ModContent.ProjectileType(), projectile.damage / 2, 0.4f, projectile.owner, projectile.whoAmI); + } + if (projectile.ai[1] > 46) + { + projectile.ai[1] = 0; + roundsGone++; + } + if (roundsGone > 4 && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType()] == 0) projectile.Kill(); + } + + projectile.frameCounter++; + if (projectile.frameCounter >= 4) + { + projectile.frame++; + projectile.frameCounter = 0; + if (projectile.frame >= 6) + { + projectile.frame = 0; + } + } + + if (Main.rand.NextFloat() < 1f) + { + Dust dust; + // You need to set position depending on what you are doing. You may need to subtract width/2 and height/2 as well to center the spawn rectangle. + Vector2 position = projectile.Center; + dust = Main.dust[Terraria.Dust.NewDust(position, 0, 0, 226, 0f, 0f, 0, new Color(255, 255, 255), 0.7236842f)]; + } + + dust_nut++; + + if (dust_nut > 22) + { + int num20 = 36; + for (int i = 0; i < num20; i++) + { + Vector2 spinningpoint = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f * 0.5f; + spinningpoint = spinningpoint.RotatedBy((double)((float)(i - (num20 / 2 - 1)) * 6.28318548f / (float)num20), default(Vector2)) + projectile.Center; + Vector2 vector = spinningpoint - projectile.Center; + int num21 = Dust.NewDust(spinningpoint + vector, 0, 0, 226, vector.X * 2f, vector.Y * 2f, 0, new Color(255, 255, 255), 0.7236842f); + Main.dust[num21].noGravity = true; + Main.dust[num21].noLight = true; + Main.dust[num21].velocity = Vector2.Normalize(vector) * 3f; + } + dust_nut = 0; + } + } + + public override void Kill(int timeLeft) + { + for (int i = 0; i < 25; i++) + { + Dust dust; + // You need to set position depending on what you are doing. You may need to subtract width/2 and height/2 as well to center the spawn rectangle. + Vector2 position = projectile.Center - new Vector2(34, 34); + dust = Main.dust[Terraria.Dust.NewDust(position, 68, 68, 226, 0f, 0f, 0, new Color(255, 255, 255), 0.7236842f)]; + } + + int num20 = 36; + for (int i = 0; i < num20; i++) + { + Vector2 spinningpoint = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f * 0.5f; + spinningpoint = spinningpoint.RotatedBy((double)((float)(i - (num20 / 2 - 1)) * 6.28318548f / (float)num20), default(Vector2)) + projectile.Center; + Vector2 vector = spinningpoint - projectile.Center; + int num21 = Dust.NewDust(spinningpoint + vector, 0, 0, 226, vector.X * 2f, vector.Y * 2f, 0, new Color(255, 255, 255), 0.7236842f); + Main.dust[num21].noGravity = true; + Main.dust[num21].noLight = true; + Main.dust[num21].velocity = Vector2.Normalize(vector) * 3f; + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Magic/StratusSphereProj.png b/Projectiles/Magic/StratusSphereProj.png new file mode 100644 index 0000000000000000000000000000000000000000..2fefcab6c84a6dadc2b67791c423fe869972cc62 GIT binary patch literal 29513 zcma&O30Tr;+xOp0cQs|p%#>Q1I!)My%ao?6DUD`@mZljBid3eEYpGx^U^Q9OViu+5 zf{dw^iIC!wpfYWmn&6TmuH}XbYVL}H?*%yb|GA&%d5`~V$59>l_=a^F>sG8-u>pSKsPl>y-~NBP%q&eLq6ES-$qiHLp;2k5qp@^x^w!Si|iRTD)Ve z$!>oaH|rOB{u;}D4G+C&S7_^8h>UWY#*WW3H&TT;k;5aOXG6Un>8a(~8BRBw@yw2Y z5AGEF)WfqKU{?tdJq*uBkh+t+BoUDq;)jKk2YiBdS;fo?9m6FVD}5V}Jl9#VqOc83 zA*~p>pga3H9OgPJ!g^kTIz=L`NQQ^rkL)@8*X-%A6;Ju5wn7SVvh#ga#Z>gy4I^z% z1nU0=S(d_{vORWvAT z=15_>@K7Vu+QxwkMvjMzcaP^AmJ34pKkIA?Fie6BRmSF$v*ssvTS#5LJG4dX>fm(U zRtjePT))o;A03^TRt}`Peg5Y(D`_N>d~DVMA)3pA)NCBwr8x9d!@-($V{`8|*^wQj zGhXnbw-!@V>blJ}K^JGQz{$Jrr=9HB6uTyDqwShsB8f&KKYsZshmpry(uu@rL0?r> zdi2imaer8pN8><&QPXpbV|0L5_+7pb;zT&IdwB@3CN$p@VxON=h(%8qGA$E|=$x2Y z0@BXV!YlT;;5&+qVko$*Hd1J@J={0@hQP`#!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-??lU zh7Ur@D^{{TR(o|MFtW`Vpd8Ay`A6*>E<(>R2{sv#-9o^oaiNu;UbPMQ-TgREWU`Kd z9G|U7oY`Ys3@6h>VNRNArq){^xW^9TBfLbCu_3@p2G$5b>L#-2KX6z( zrlIvCf7s`{#TnrO*08zdairkwc9k`KcF?u9uvqfpLX5>>=>s5#sf9SXgMX;qwg=Dp e;sZlYg!l#pF57&`T{;YjWhkcuyV#C@T=*Z2?2i8c literal 0 HcmV?d00001 From b3ea61648efcc559f70c68167a2740b1b1318000 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 25 Dec 2019 19:56:47 -0500 Subject: [PATCH 10/34] fixed dragon pow flat dmg --- Projectiles/Melee/DragonPowFlail.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Projectiles/Melee/DragonPowFlail.cs b/Projectiles/Melee/DragonPowFlail.cs index ee211c95a5..a08543c626 100644 --- a/Projectiles/Melee/DragonPowFlail.cs +++ b/Projectiles/Melee/DragonPowFlail.cs @@ -124,7 +124,7 @@ namespace CalamityMod.Projectiles.Melee if (projectile.ai[1] % 4 == 0) { int type = ModContent.ProjectileType(); - int damage = DragonPow.BaseDamage / 8; + int damage = projectile.damage / 8; float kb = 3f; float speed = DragonPow.SparkSpeed; Vector2 vel = new Vector2(speed, 0f).RotatedByRandom(MathHelper.TwoPi); @@ -161,7 +161,7 @@ namespace CalamityMod.Projectiles.Melee int type = ProjectileID.FlowerPetal; int numPetals = 12; - int petalDamage = DragonPow.BaseDamage / 8; + int petalDamage = projectile.damage / 8; float petalKB = 0f; Player owner = Main.player[projectile.owner]; for (int i = 0; i < numPetals; ++i) @@ -197,7 +197,7 @@ namespace CalamityMod.Projectiles.Melee { int type = ModContent.ProjectileType(); int numWaterfalls = 12; - int waterfallDamage = DragonPow.BaseDamage / 6; + int waterfallDamage = projectile.damage / 6; float waterfallKB = 0f; Player owner = Main.player[projectile.owner]; for (int i = 0; i < numWaterfalls; ++i) From 097b25ca8040c87091c3fe1fb42477374d85e74b Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 25 Dec 2019 20:13:38 -0500 Subject: [PATCH 11/34] added sulph sand to abyssal crate --- Items/Fishing/SulphurCatches/AbyssalCrate.cs | 1 + Items/Weapons/Magic/StratusSphere.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Items/Fishing/SulphurCatches/AbyssalCrate.cs b/Items/Fishing/SulphurCatches/AbyssalCrate.cs index ebd64a48af..e88f901d70 100644 --- a/Items/Fishing/SulphurCatches/AbyssalCrate.cs +++ b/Items/Fishing/SulphurCatches/AbyssalCrate.cs @@ -46,6 +46,7 @@ namespace CalamityMod.Items.Fishing.SulphurCatches DropHelper.DropItem(player, ItemID.Starfish, 2, 3); DropHelper.DropItem(player, ItemID.Seashell, 2, 3); DropHelper.DropItem(player, ItemID.Coral, 2, 3); + DropHelper.DropItem(player, ModContent.ItemType(), 5, 10); DropHelper.DropItemChance(player, ModContent.ItemType(), 0.5f, 2, 3); DropHelper.DropItemChance(player, ModContent.ItemType(), 0.5f, 2, 3); if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) diff --git a/Items/Weapons/Magic/StratusSphere.cs b/Items/Weapons/Magic/StratusSphere.cs index faa092a554..6b975065a9 100644 --- a/Items/Weapons/Magic/StratusSphere.cs +++ b/Items/Weapons/Magic/StratusSphere.cs @@ -36,6 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic item.rare = 4; item.autoReuse = true; item.useTurn = true; + item.holdStyle = 3; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.Calamity().postMoonLordRarity = 13; From 49886a921677a4cac0203fe78d00217bc1eadd14 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 25 Dec 2019 20:29:48 -0500 Subject: [PATCH 12/34] weapon balancing --- Items/Weapons/Magic/ClamorNoctus.cs | 4 ++-- Projectiles/Magic/ClamorNoctusStar.cs | 4 +++- Projectiles/Rogue/AlphaVirusProjectile.cs | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Magic/ClamorNoctus.cs b/Items/Weapons/Magic/ClamorNoctus.cs index 4f5e6d2639..92ca25c461 100644 --- a/Items/Weapons/Magic/ClamorNoctus.cs +++ b/Items/Weapons/Magic/ClamorNoctus.cs @@ -21,7 +21,7 @@ Fires night wyverns and stars from the sky that stick to enemies and tiles and e public override void SetDefaults() { - item.damage = 300; + item.damage = 450; item.magic = true; item.mana = 12; item.width = 52; @@ -37,7 +37,7 @@ Fires night wyverns and stars from the sky that stick to enemies and tiles and e item.UseSound = SoundID.Item105; item.autoReuse = true; item.shoot = ModContent.ProjectileType(); - item.shootSpeed = 20f; + item.shootSpeed = 25f; } public override Vector2? HoldoutOrigin() diff --git a/Projectiles/Magic/ClamorNoctusStar.cs b/Projectiles/Magic/ClamorNoctusStar.cs index add87f1edc..ac7ce7e1b9 100644 --- a/Projectiles/Magic/ClamorNoctusStar.cs +++ b/Projectiles/Magic/ClamorNoctusStar.cs @@ -22,12 +22,14 @@ namespace CalamityMod.Projectiles.Magic projectile.width = 10; projectile.height = 10; projectile.friendly = true; - projectile.penetrate = 8; + projectile.penetrate = -1; projectile.alpha = 255; projectile.magic = true; projectile.aiStyle = 93; aiType = 514; projectile.extraUpdates = 1; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 10; } public override void AI() diff --git a/Projectiles/Rogue/AlphaVirusProjectile.cs b/Projectiles/Rogue/AlphaVirusProjectile.cs index d8a5a45a89..5bb0810d03 100644 --- a/Projectiles/Rogue/AlphaVirusProjectile.cs +++ b/Projectiles/Rogue/AlphaVirusProjectile.cs @@ -24,9 +24,11 @@ namespace CalamityMod.Projectiles.Rogue projectile.width = 20; projectile.height = 20; projectile.friendly = true; - projectile.penetrate = -1; + projectile.penetrate = 8; projectile.timeLeft = lifetime; projectile.Calamity().rogue = true; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 15; } public override void AI() @@ -163,7 +165,7 @@ namespace CalamityMod.Projectiles.Rogue { for (int i = 0; i < 6; i++) { - int damage = projectile.damage / 2; + int damage = projectile.damage; Vector2 velocity = new Vector2(0, 10); velocity = velocity.RotatedBy(MathHelper.ToRadians(60) * i); Projectile.NewProjectile(projectile.Center, velocity, ModContent.ProjectileType(), damage, 5, projectile.owner, i % 2, 0); From 1faec11a234448e7ee444f65fc4e3de8d4b0a046 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 25 Dec 2019 20:35:32 -0500 Subject: [PATCH 13/34] fixed reloading mods crash --- Utilities/TileFraming.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/TileFraming.cs b/Utilities/TileFraming.cs index a36f95ea47..7f4a00a1ea 100644 --- a/Utilities/TileFraming.cs +++ b/Utilities/TileFraming.cs @@ -98,7 +98,7 @@ namespace CalamityMod internal static void Unload() { PlantCheckAgainst = null; - VineToGrass.Clear(); + VineToGrass?.Clear(); VineToGrass = null; tileMergeTypes = null; } From f463217dddf1125d6efa278a4ec6bb82ed97ea1d Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 25 Dec 2019 20:53:28 -0500 Subject: [PATCH 14/34] added profanedrage/holywrath pots to hallowed crates --- Items/CalamityGlobalItem.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index f07e4cf54f..284fb43305 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1886,6 +1886,7 @@ Grants immunity to fire blocks, and temporary immunity to lava"; case ItemID.HallowedFishingCrate: DropHelper.DropItemCondition(player, ModContent.ItemType(), NPC.downedMoonlord, 0.2f, 5, 10); + DropHelper.DropItemCondition(player, (WorldGen.crimson ? ModContent.ItemType() : ModContent.ItemType()), CalamityWorld.downedProvidence, 0.2f, 1, 3); break; case ItemID.DungeonFishingCrate: From e4ef7de8642185a996325cb05159714a17b2125b Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 25 Dec 2019 20:55:35 -0500 Subject: [PATCH 15/34] first four yoyos revamped --- Items/Weapons/Melee/AirSpinner.cs | 26 +++++++++++----- Items/Weapons/Melee/Aorta.cs | 25 ++++++++++----- Items/Weapons/Melee/Cnidarian.cs | 28 +++++++++++------ Items/Weapons/Melee/Oracle.cs | 2 +- Items/Weapons/Melee/Whirlpool.cs | 29 +++++++++++------- ...SpinnerProjectile.cs => AirSpinnerYoyo.cs} | 23 ++++++++------ ...innerProjectile.png => AirSpinnerYoyo.png} | Bin .../{AortaProjectile.cs => AortaYoyo.cs} | 23 ++++++++------ .../{AortaProjectile.png => AortaYoyo.png} | Bin ...nidarianProjectile.cs => CnidarianYoyo.cs} | 13 +++++--- ...darianProjectile.png => CnidarianYoyo.png} | Bin Projectiles/Melee/Yoyos/OracleYoyo.cs | 3 +- ...{WhirlpoolProjectile.cs => RiptideYoyo.cs} | 13 ++++---- ...hirlpoolProjectile.png => RiptideYoyo.png} | Bin 14 files changed, 116 insertions(+), 69 deletions(-) rename Projectiles/Melee/Yoyos/{AirSpinnerProjectile.cs => AirSpinnerYoyo.cs} (86%) rename Projectiles/Melee/Yoyos/{AirSpinnerProjectile.png => AirSpinnerYoyo.png} (100%) rename Projectiles/Melee/Yoyos/{AortaProjectile.cs => AortaYoyo.cs} (58%) rename Projectiles/Melee/Yoyos/{AortaProjectile.png => AortaYoyo.png} (100%) rename Projectiles/Melee/Yoyos/{CnidarianProjectile.cs => CnidarianYoyo.cs} (90%) rename Projectiles/Melee/Yoyos/{CnidarianProjectile.png => CnidarianYoyo.png} (100%) rename Projectiles/Melee/Yoyos/{WhirlpoolProjectile.cs => RiptideYoyo.cs} (89%) rename Projectiles/Melee/Yoyos/{WhirlpoolProjectile.png => RiptideYoyo.png} (100%) diff --git a/Items/Weapons/Melee/AirSpinner.cs b/Items/Weapons/Melee/AirSpinner.cs index 1c1ef8517a..6a8defa5b8 100644 --- a/Items/Weapons/Melee/AirSpinner.cs +++ b/Items/Weapons/Melee/AirSpinner.cs @@ -11,24 +11,34 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Air Spinner"); - Tooltip.SetDefault("Fires feathers when enemies are near"); + Tooltip.SetDefault("Fires feathers when enemies are near\nVery nimble compared to other yoyos"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.Valor); + item.width = 28; + item.height = 28; + item.melee = true; item.damage = 20; + item.knockBack = 4f; item.useTime = 22; item.useAnimation = 22; + item.autoReuse = true; + item.useStyle = 5; + item.UseSound = SoundID.Item1; item.channel = true; - item.melee = true; - item.knockBack = 4; - item.value = Item.buyPrice(0, 4, 0, 0); + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 14f; + item.rare = 3; - item.autoReuse = false; - item.shoot = ModContent.ProjectileType(); - ItemID.Sets.Yoyo[item.type] = true; + item.value = Item.buyPrice(gold: 4); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/Aorta.cs b/Items/Weapons/Melee/Aorta.cs index f6a7e3481e..5f2d3c7934 100644 --- a/Items/Weapons/Melee/Aorta.cs +++ b/Items/Weapons/Melee/Aorta.cs @@ -11,23 +11,34 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Aorta"); + Tooltip.SetDefault("Very nimble compared to other yoyos"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.Valor); + item.width = 30; + item.height = 26; + item.melee = true; item.damage = 25; + item.knockBack = 4.25f; item.useTime = 22; item.useAnimation = 22; + item.autoReuse = true; + item.useStyle = 5; + item.UseSound = SoundID.Item1; item.channel = true; - item.melee = true; - item.knockBack = 4.25f; - item.value = Item.buyPrice(0, 4, 0, 0); + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 8f; + item.rare = 3; - item.autoReuse = false; - item.shoot = ModContent.ProjectileType(); - ItemID.Sets.Yoyo[item.type] = true; + item.value = Item.buyPrice(gold: 4); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/Cnidarian.cs b/Items/Weapons/Melee/Cnidarian.cs index 453b2616d8..830a0a369b 100644 --- a/Items/Weapons/Melee/Cnidarian.cs +++ b/Items/Weapons/Melee/Cnidarian.cs @@ -12,23 +12,33 @@ namespace CalamityMod.Items.Weapons.Melee { DisplayName.SetDefault("Cnidarian"); Tooltip.SetDefault("Fires a seashell when enemies are near"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.CorruptYoyo); + item.width = 30; + item.height = 26; + item.melee = true; item.damage = 13; + item.knockBack = 3f; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; - item.channel = true; - item.melee = true; - item.knockBack = 3f; - item.value = Item.buyPrice(0, 2, 0, 0); - item.rare = 2; item.autoReuse = true; - item.shoot = ModContent.ProjectileType(); - ItemID.Sets.Yoyo[item.type] = true; + + item.useStyle = 5; + item.UseSound = SoundID.Item1; + item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 10f; + + item.rare = 2; + item.value = Item.buyPrice(gold: 2); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/Oracle.cs b/Items/Weapons/Melee/Oracle.cs index a97dc1d01f..bb8b341130 100644 --- a/Items/Weapons/Melee/Oracle.cs +++ b/Items/Weapons/Melee/Oracle.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Melee item.rare = 10; item.Calamity().postMoonLordRarity = 21; - item.value = Item.buyPrice(2, 50, 0, 0); + item.value = Item.buyPrice(platinum: 2, gold: 50); } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) diff --git a/Items/Weapons/Melee/Whirlpool.cs b/Items/Weapons/Melee/Whirlpool.cs index 0f264976a1..7a33f3adc7 100644 --- a/Items/Weapons/Melee/Whirlpool.cs +++ b/Items/Weapons/Melee/Whirlpool.cs @@ -12,26 +12,33 @@ namespace CalamityMod.Items.Weapons.Melee { DisplayName.SetDefault("Riptide"); Tooltip.SetDefault("Sprays a spiral of aqua streams in random directions"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.TheEyeOfCthulhu); - item.damage = 18; item.width = 30; item.height = 44; - item.value = Item.buyPrice(0, 2, 0, 0); - item.rare = 2; - item.knockBack = 1f; - item.channel = true; item.melee = true; - item.useStyle = 5; - item.useAnimation = 25; + item.damage = 18; + item.knockBack = 1f; item.useTime = 25; - item.shoot = ModContent.ProjectileType(); - item.shootSpeed = 18f; + item.useAnimation = 25; + item.autoReuse = true; + + item.useStyle = 5; item.UseSound = SoundID.Item1; - ItemID.Sets.Yoyo[item.type] = true; + item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 18f; + + item.rare = 2; + item.value = Item.buyPrice(gold: 2); } public override void AddRecipes() diff --git a/Projectiles/Melee/Yoyos/AirSpinnerProjectile.cs b/Projectiles/Melee/Yoyos/AirSpinnerYoyo.cs similarity index 86% rename from Projectiles/Melee/Yoyos/AirSpinnerProjectile.cs rename to Projectiles/Melee/Yoyos/AirSpinnerYoyo.cs index 059825ec6b..8737a94b04 100644 --- a/Projectiles/Melee/Yoyos/AirSpinnerProjectile.cs +++ b/Projectiles/Melee/Yoyos/AirSpinnerYoyo.cs @@ -7,25 +7,29 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class AirSpinnerProjectile : ModProjectile + public class AirSpinnerYoyo : ModProjectile { public override void SetStaticDefaults() { DisplayName.SetDefault("Air Spinner"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 6f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 300f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 14f; + + ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.Valor); + projectile.aiStyle = 99; projectile.width = 16; - projectile.scale = 1.05f; projectile.height = 16; - projectile.penetrate = 7; - projectile.extraUpdates = 1; + projectile.scale = 1.05f; + projectile.friendly = true; projectile.melee = true; - ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; - ProjectileID.Sets.TrailingMode[projectile.type] = 0; - aiType = ProjectileID.Valor; + projectile.penetrate = -1; + projectile.extraUpdates = 1; } public override void AI() @@ -79,8 +83,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - Texture2D tex = Main.projectileTexture[projectile.type]; - spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); return false; } } diff --git a/Projectiles/Melee/Yoyos/AirSpinnerProjectile.png b/Projectiles/Melee/Yoyos/AirSpinnerYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/AirSpinnerProjectile.png rename to Projectiles/Melee/Yoyos/AirSpinnerYoyo.png diff --git a/Projectiles/Melee/Yoyos/AortaProjectile.cs b/Projectiles/Melee/Yoyos/AortaYoyo.cs similarity index 58% rename from Projectiles/Melee/Yoyos/AortaProjectile.cs rename to Projectiles/Melee/Yoyos/AortaYoyo.cs index 153dd4415e..d5fb335310 100644 --- a/Projectiles/Melee/Yoyos/AortaProjectile.cs +++ b/Projectiles/Melee/Yoyos/AortaYoyo.cs @@ -1,35 +1,38 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class AortaProjectile : ModProjectile + public class AortaYoyo : ModProjectile { public override void SetStaticDefaults() { DisplayName.SetDefault("Aorta"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 11f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 225f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 14f; + + ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.Valor); + projectile.aiStyle = 99; projectile.width = 16; projectile.height = 16; - projectile.penetrate = 7; - projectile.extraUpdates = 1; + projectile.scale = 1f; + projectile.friendly = true; projectile.melee = true; - ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; - ProjectileID.Sets.TrailingMode[projectile.type] = 0; - aiType = ProjectileID.Valor; + projectile.penetrate = -1; + projectile.extraUpdates = 1; } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - Texture2D tex = Main.projectileTexture[projectile.type]; - spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); return false; } } diff --git a/Projectiles/Melee/Yoyos/AortaProjectile.png b/Projectiles/Melee/Yoyos/AortaYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/AortaProjectile.png rename to Projectiles/Melee/Yoyos/AortaYoyo.png diff --git a/Projectiles/Melee/Yoyos/CnidarianProjectile.cs b/Projectiles/Melee/Yoyos/CnidarianYoyo.cs similarity index 90% rename from Projectiles/Melee/Yoyos/CnidarianProjectile.cs rename to Projectiles/Melee/Yoyos/CnidarianYoyo.cs index 9458bfe748..05bfcdb62a 100644 --- a/Projectiles/Melee/Yoyos/CnidarianProjectile.cs +++ b/Projectiles/Melee/Yoyos/CnidarianYoyo.cs @@ -8,22 +8,25 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class CnidarianProjectile : ModProjectile + public class CnidarianYoyo : ModProjectile { public override void SetStaticDefaults() { DisplayName.SetDefault("Cnidarian"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 7f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 190f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 11f; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.CorruptYoyo); + projectile.aiStyle = 99; projectile.width = 16; - projectile.scale = 1.15f; projectile.height = 16; - projectile.penetrate = 6; + projectile.scale = 1.15f; + projectile.friendly = true; projectile.melee = true; - aiType = 542; + projectile.penetrate = -1; } public override void AI() diff --git a/Projectiles/Melee/Yoyos/CnidarianProjectile.png b/Projectiles/Melee/Yoyos/CnidarianYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/CnidarianProjectile.png rename to Projectiles/Melee/Yoyos/CnidarianYoyo.png diff --git a/Projectiles/Melee/Yoyos/OracleYoyo.cs b/Projectiles/Melee/Yoyos/OracleYoyo.cs index 4af9bdc38a..4cd0e06f32 100644 --- a/Projectiles/Melee/Yoyos/OracleYoyo.cs +++ b/Projectiles/Melee/Yoyos/OracleYoyo.cs @@ -1,5 +1,4 @@ -using CalamityMod.Items.Weapons.Melee; -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Melee/Yoyos/WhirlpoolProjectile.cs b/Projectiles/Melee/Yoyos/RiptideYoyo.cs similarity index 89% rename from Projectiles/Melee/Yoyos/WhirlpoolProjectile.cs rename to Projectiles/Melee/Yoyos/RiptideYoyo.cs index c356e2527c..9ded4cc8c9 100644 --- a/Projectiles/Melee/Yoyos/WhirlpoolProjectile.cs +++ b/Projectiles/Melee/Yoyos/RiptideYoyo.cs @@ -4,25 +4,26 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class WhirlpoolProjectile : ModProjectile + public class RiptideYoyo : ModProjectile { public override void SetStaticDefaults() { DisplayName.SetDefault("Riptide"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 7.5f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 180f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 12.5f; } public override void SetDefaults() { + projectile.aiStyle = 99; projectile.width = 16; projectile.height = 16; - projectile.scale = 0.75f; + projectile.scale = 1f; projectile.friendly = true; + projectile.melee = true; projectile.alpha = 150; projectile.penetrate = -1; - projectile.timeLeft = 99; - projectile.melee = true; - aiType = ProjectileID.Amarok; - projectile.CloneDefaults(ProjectileID.CorruptYoyo); } public override void AI() diff --git a/Projectiles/Melee/Yoyos/WhirlpoolProjectile.png b/Projectiles/Melee/Yoyos/RiptideYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/WhirlpoolProjectile.png rename to Projectiles/Melee/Yoyos/RiptideYoyo.png From 1c05e93ba40a76e0ddf0fe32b529daa5462e60a3 Mon Sep 17 00:00:00 2001 From: Shucks Date: Wed, 25 Dec 2019 20:10:58 -0600 Subject: [PATCH 16/34] ARMSTRONG IS SO FUCKING PISSED HE CALLED ON A FUCKING AIR STRIKE --- CalPlayer/CalamityPlayer.cs | 4 + Items/Accessories/Nanotech.cs | 1 - Projectiles/CalamityGlobalProjectile.cs | 23 +++++- Projectiles/Typeless/NanoFlare.cs | 93 ++++++++++++++++++++++++ Projectiles/Typeless/NanoFlare.png | Bin 0 -> 148 bytes 5 files changed, 116 insertions(+), 5 deletions(-) create mode 100644 Projectiles/Typeless/NanoFlare.cs create mode 100644 Projectiles/Typeless/NanoFlare.png diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index acb45f609e..05b683eac7 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -399,6 +399,7 @@ namespace CalamityMod.CalPlayer public bool moonCrown = false; public int featherCrownCooldown = 0; public int moonCrownCooldown = 0; + public int nanoFlareCooldown = 0; public bool dragonScales = false; public bool gloveOfPrecision = false; public bool gloveOfRecklessness = false; @@ -1420,6 +1421,7 @@ namespace CalamityMod.CalPlayer eclipseMirrorCooldown = false; moonCrownCooldown = 0; featherCrownCooldown = 0; + nanoFlareCooldown = 0; sulphurPoison = false; sandCloakCooldown = 0; spectralVeilImmunity = 0; @@ -3455,6 +3457,8 @@ namespace CalamityMod.CalPlayer featherCrownCooldown--; if (moonCrownCooldown > 0) moonCrownCooldown--; + if (nanoFlareCooldown > 0) + nanoFlareCooldown--; if (sandCloakCooldown > 0) sandCloakCooldown--; if (spectralVeilImmunity > 0) diff --git a/Items/Accessories/Nanotech.cs b/Items/Accessories/Nanotech.cs index 5391d1a909..6c8860a212 100644 --- a/Items/Accessories/Nanotech.cs +++ b/Items/Accessories/Nanotech.cs @@ -49,7 +49,6 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); modPlayer.nanotech = true; - modPlayer.moonCrown = true; modPlayer.raiderTalisman = true; modPlayer.electricianGlove = true; player.Calamity().throwingDamage += 0.05f; diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index c6e849671a..1a03d7681f 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -1450,12 +1450,13 @@ namespace CalamityMod.Projectiles Player playerC = Main.player[projectile.owner]; if (playerC.Calamity().featherCrown && stealthStrike && playerC.Calamity().featherCrownCooldown <= 0) { - for (int i = 0; i < 10; i++) + for (int i = 0; i < 6; i++) { Vector2 pos = new Vector2(target.Center.X + (float)target.width * 0.5f + (float)Main.rand.Next(-201, 201), Main.screenPosition.Y - 600f - Main.rand.Next(50)); float speedX = (target.Center.X - pos.X) / 30f; float speedY = (target.Center.Y - pos.Y) * 8; - int feather = Projectile.NewProjectile(pos.X, pos.Y, speedX, speedY, ModContent.ProjectileType(), 15, 3, projectile.owner, 0f, (float)Main.rand.Next(15)); + int dmg = (int)(10 + (projectile.damage * 0.05f)); + int feather = Projectile.NewProjectile(pos.X, pos.Y, speedX, speedY, ModContent.ProjectileType(), dmg, 3, projectile.owner, 0f, (float)Main.rand.Next(15)); Main.projectile[feather].Calamity().forceRogue = true; playerC.Calamity().featherCrownCooldown = 15; } @@ -1463,16 +1464,30 @@ namespace CalamityMod.Projectiles if (playerC.Calamity().moonCrown && stealthStrike && playerC.Calamity().moonCrownCooldown <= 0) { - for (int i = 0; i < 20; i++) + for (int i = 0; i < 6; i++) { Vector2 pos = new Vector2(target.Center.X + (float)target.width * 0.5f + (float)Main.rand.Next(-201, 201), Main.screenPosition.Y - 600f - Main.rand.Next(50)); Vector2 velocity = (target.Center - pos) / 10f; float AI1 = (float)Main.rand.Next(3); - int flare = Projectile.NewProjectile(pos, velocity, ProjectileID.LunarFlare, 50, 3, projectile.owner, 0f, AI1); + int dmg = (int)(150 + (projectile.damage * 0.05f)); + int flare = Projectile.NewProjectile(pos, velocity, ProjectileID.LunarFlare, dmg, 3, projectile.owner, 0f, AI1); Main.projectile[flare].Calamity().forceRogue = true; playerC.Calamity().moonCrownCooldown = 15; } } + + if (playerC.Calamity().nanotech && stealthStrike && playerC.Calamity().nanoFlareCooldown <= 0) + { + for (int i = 0; i < 6; i++) + { + Vector2 pos = new Vector2(target.Center.X + (float)target.width * 0.5f + (float)Main.rand.Next(-201, 201), Main.screenPosition.Y - 600f - Main.rand.Next(50)); + Vector2 velocity = (target.Center - pos) / 40f; + int dmg = (int)(1000 + (projectile.damage * 0.05f)); + int flare = Projectile.NewProjectile(pos, velocity, ModContent.ProjectileType(),dmg, 3f, projectile.owner, 0f, 0f); + Main.projectile[flare].Calamity().rogue = true; + playerC.Calamity().nanoFlareCooldown = 15; + } + } } else if (projectile.minion || projectile.sentry || CalamityMod.projectileMinionList.Contains(projectile.type)) { diff --git a/Projectiles/Typeless/NanoFlare.cs b/Projectiles/Typeless/NanoFlare.cs new file mode 100644 index 0000000000..416c024db0 --- /dev/null +++ b/Projectiles/Typeless/NanoFlare.cs @@ -0,0 +1,93 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Microsoft.Xna.Framework; + +namespace CalamityMod.Projectiles.Typeless +{ + public class NanoFlare : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Nano Flare"); + } + + public override void SetDefaults() + { + projectile.width = 12; + projectile.height = 12; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.extraUpdates = 10; + projectile.timeLeft = 60; + } + + public override void AI() + { + //Dust + for (int i = 0; i< 3; i++) + { + int dint = Dust.NewDust(projectile.position, projectile.width, projectile.height, 107, 0f, 0f, 0, default, 0.75f); + Dust dust = Main.dust[dint]; + dust.velocity = projectile.velocity * Main.rand.NextFloat(-0.3f,0.3f); + dust.color = Main.hslToRgb((float)(0.40000000596046448 + Main.rand.NextDouble() * 0.20000000298023224), 0.9f, 0.5f); + dust.color = Color.Lerp(dust.color, Color.White, 0.3f); + } + } + + public override void Kill(int timeLeft) + { + for (int i = 0; i < 20; i++) + { + Vector2 dspeed = new Vector2(Main.rand.NextFloat(-4f, 4f), Main.rand.NextFloat(-6f, 6f)); + int dint = Dust.NewDust(projectile.Center, 1, 1, 107, dspeed.X, dspeed.Y, 0, default, 0.7f); + Dust dust = Main.dust[dint]; + dust.color = Main.hslToRgb((float)(0.40000000596046448 + Main.rand.NextDouble() * 0.20000000298023224), 0.9f, 0.5f); + dust.color = Color.Lerp(dust.color, Color.White, 0.3f); + } + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y,14); + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + projectile.width = 60; + projectile.height = 60; + projectile.maxPenetrate = -1; + projectile.penetrate = -1; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 10; + projectile.Damage(); + + Vector2 goreVec = new Vector2(projectile.position.X + (float)(projectile.width / 2) - 24f, projectile.position.Y + (float)(projectile.height / 2) - 24f); + float smokeScale = 0.66f; + for (int i = 0; i < 2; i++) + { + switch (Main.rand.Next(1, 5)) + { + case 1: int idx1 = Gore.NewGore(goreVec, default, Main.rand.Next(61, 64), 1f); + Main.gore[idx1].velocity *= smokeScale; + Main.gore[idx1].velocity.X += 1f; + Main.gore[idx1].velocity.Y += 1f; + break; + + case 2: int idx2 = Gore.NewGore(goreVec, default, Main.rand.Next(61, 64), 1f); + Main.gore[idx2].velocity *= smokeScale; + Main.gore[idx2].velocity.X -= 1f; + Main.gore[idx2].velocity.Y += 1f; + break; + + case 3: int idx3 = Gore.NewGore(goreVec, default, Main.rand.Next(61, 64), 1f); + Main.gore[idx3].velocity *= smokeScale; + Main.gore[idx3].velocity.X += 1f; + Main.gore[idx3].velocity.Y -= 1f; + break; + + case 4: int idx4 = Gore.NewGore(goreVec, default, Main.rand.Next(61, 64), 1f); + Main.gore[idx4].velocity *= smokeScale; + Main.gore[idx4].velocity.X -= 1f; + Main.gore[idx4].velocity.Y -= 1f; + break; + default: break; + } + } + } + } +} diff --git a/Projectiles/Typeless/NanoFlare.png b/Projectiles/Typeless/NanoFlare.png new file mode 100644 index 0000000000000000000000000000000000000000..983260eb072b8727c0a51e9d46e9d6a08bc460b1 GIT binary patch literal 148 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VTavfC3&Vd9T(EcfWS|IVfk$L9 z0|Vb-5N14{zaj-F$X?><>&pIsor6J7WfsE<1)z|kr;B5V#p&cf|Nq-Fn=%SBPd&Jz maWPw;lttEq6^+hE9T+mXnN^!s2qgd&GkCiCxvX Date: Wed, 25 Dec 2019 20:12:46 -0600 Subject: [PATCH 17/34] cough --- Projectiles/CalamityGlobalProjectile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 1a03d7681f..753b5fd0bb 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -1455,7 +1455,7 @@ namespace CalamityMod.Projectiles Vector2 pos = new Vector2(target.Center.X + (float)target.width * 0.5f + (float)Main.rand.Next(-201, 201), Main.screenPosition.Y - 600f - Main.rand.Next(50)); float speedX = (target.Center.X - pos.X) / 30f; float speedY = (target.Center.Y - pos.Y) * 8; - int dmg = (int)(10 + (projectile.damage * 0.05f)); + int dmg = (int)(15 + (projectile.damage * 0.05f)); int feather = Projectile.NewProjectile(pos.X, pos.Y, speedX, speedY, ModContent.ProjectileType(), dmg, 3, projectile.owner, 0f, (float)Main.rand.Next(15)); Main.projectile[feather].Calamity().forceRogue = true; playerC.Calamity().featherCrownCooldown = 15; From 872eff8e8b812a68dbdfb3dd2ad2b811241e5c03 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 25 Dec 2019 22:36:03 -0500 Subject: [PATCH 18/34] Chaotrix redone (prematurely nerfed) --- Items/Weapons/Melee/Chaotrix.cs | 32 ++++++++++++------ ...{ChaotrixProjectile.cs => ChaotrixYoyo.cs} | 20 +++++++---- ...haotrixProjectile.png => ChaotrixYoyo.png} | Bin 3 files changed, 34 insertions(+), 18 deletions(-) rename Projectiles/Melee/Yoyos/{ChaotrixProjectile.cs => ChaotrixYoyo.cs} (68%) rename Projectiles/Melee/Yoyos/{ChaotrixProjectile.png => ChaotrixYoyo.png} (100%) diff --git a/Items/Weapons/Melee/Chaotrix.cs b/Items/Weapons/Melee/Chaotrix.cs index 6ab047c487..09d51af6a3 100644 --- a/Items/Weapons/Melee/Chaotrix.cs +++ b/Items/Weapons/Melee/Chaotrix.cs @@ -11,24 +11,34 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Chaotrix"); - Tooltip.SetDefault("Explodes on enemy hits"); + Tooltip.SetDefault("Explodes on enemy hits\nVery nimble compared to other yoyos"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.Yelets); - item.damage = 110; + item.width = 30; + item.height = 26; + item.melee = true; + item.damage = 88; // 110 pre-nerf + item.knockBack = 4f; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; - item.channel = true; - item.melee = true; - item.knockBack = 4f; - item.value = Item.buyPrice(0, 80, 0, 0); - item.rare = 8; item.autoReuse = true; - item.shoot = ModContent.ProjectileType(); - ItemID.Sets.Yoyo[item.type] = true; + + item.useStyle = 5; + item.UseSound = SoundID.Item1; + item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 14f; + + item.rare = 8; + item.value = Item.buyPrice(gold: 80); } public override void AddRecipes() diff --git a/Projectiles/Melee/Yoyos/ChaotrixProjectile.cs b/Projectiles/Melee/Yoyos/ChaotrixYoyo.cs similarity index 68% rename from Projectiles/Melee/Yoyos/ChaotrixProjectile.cs rename to Projectiles/Melee/Yoyos/ChaotrixYoyo.cs index 4dd99b40eb..f325c18d2f 100644 --- a/Projectiles/Melee/Yoyos/ChaotrixProjectile.cs +++ b/Projectiles/Melee/Yoyos/ChaotrixYoyo.cs @@ -7,22 +7,29 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class ChaotrixProjectile : ModProjectile + public class ChaotrixYoyo : ModProjectile { public override void SetStaticDefaults() { DisplayName.SetDefault("Chaotrix"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 14f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 290f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 16f; + + ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.Yelets); + projectile.aiStyle = 99; projectile.width = 16; - projectile.scale = 1.15f; projectile.height = 16; - projectile.penetrate = 10; + projectile.scale = 1.15f; + projectile.friendly = true; projectile.melee = true; - aiType = 549; + projectile.penetrate = -1; + projectile.extraUpdates = 1; } public override void AI() @@ -43,8 +50,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - Texture2D tex = Main.projectileTexture[projectile.type]; - spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); return false; } } diff --git a/Projectiles/Melee/Yoyos/ChaotrixProjectile.png b/Projectiles/Melee/Yoyos/ChaotrixYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/ChaotrixProjectile.png rename to Projectiles/Melee/Yoyos/ChaotrixYoyo.png From 6d00f06630a745c848c549ed9a240b817a7313ff Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 25 Dec 2019 22:42:31 -0500 Subject: [PATCH 19/34] All other pre-ML yoyos redone --- Items/Weapons/Melee/Quagmire.cs | 26 ++++++++++------ Items/Weapons/Melee/Shimmerspark.cs | 28 ++++++++++++------ Items/Weapons/Melee/TheEyeofCalamitas.cs | 28 ++++++++++++------ Items/Weapons/Melee/TheGodsGambit.cs | 28 ++++++++++++------ Items/Weapons/Melee/ThePlaguebringer.cs | 28 ++++++++++++------ Items/Weapons/Melee/YinYo.cs | 28 ++++++++++++------ Projectiles/Melee/Yoyos/AortaYoyo.cs | 2 +- ...sGambitProjectile.cs => GodsGambitYoyo.cs} | 15 ++++++---- ...ambitProjectile.png => GodsGambitYoyo.png} | Bin ...CalamitasProjectile.cs => OblivionYoyo.cs} | 19 +++++++----- ...lamitasProjectile.png => OblivionYoyo.png} | Bin ...hePlaguebringerYoyo.cs => PandemicYoyo.cs} | 13 ++++---- ...PlaguebringerYoyo.png => PandemicYoyo.png} | Bin ...{QuagmireProjectile.cs => QuagmireYoyo.cs} | 13 ++++---- ...uagmireProjectile.png => QuagmireYoyo.png} | Bin ...sparkProjectile.cs => ShimmersparkYoyo.cs} | 13 ++++---- ...arkProjectile.png => ShimmersparkYoyo.png} | Bin Projectiles/Melee/Yoyos/YinYoyo.cs | 13 ++++---- 18 files changed, 166 insertions(+), 88 deletions(-) rename Projectiles/Melee/Yoyos/{TheGodsGambitProjectile.cs => GodsGambitYoyo.cs} (89%) rename Projectiles/Melee/Yoyos/{TheGodsGambitProjectile.png => GodsGambitYoyo.png} (100%) rename Projectiles/Melee/Yoyos/{TheEyeofCalamitasProjectile.cs => OblivionYoyo.cs} (84%) rename Projectiles/Melee/Yoyos/{TheEyeofCalamitasProjectile.png => OblivionYoyo.png} (100%) rename Projectiles/Melee/Yoyos/{ThePlaguebringerYoyo.cs => PandemicYoyo.cs} (91%) rename Projectiles/Melee/Yoyos/{ThePlaguebringerYoyo.png => PandemicYoyo.png} (100%) rename Projectiles/Melee/Yoyos/{QuagmireProjectile.cs => QuagmireYoyo.cs} (88%) rename Projectiles/Melee/Yoyos/{QuagmireProjectile.png => QuagmireYoyo.png} (100%) rename Projectiles/Melee/Yoyos/{ShimmersparkProjectile.cs => ShimmersparkYoyo.cs} (90%) rename Projectiles/Melee/Yoyos/{ShimmersparkProjectile.png => ShimmersparkYoyo.png} (100%) diff --git a/Items/Weapons/Melee/Quagmire.cs b/Items/Weapons/Melee/Quagmire.cs index 785949619e..bd2ecd28a2 100644 --- a/Items/Weapons/Melee/Quagmire.cs +++ b/Items/Weapons/Melee/Quagmire.cs @@ -12,25 +12,33 @@ namespace CalamityMod.Items.Weapons.Melee { DisplayName.SetDefault("Quagmire"); Tooltip.SetDefault("Fires spore clouds"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.HelFire); item.width = 30; item.height = 36; + item.melee = true; item.damage = 52; + item.knockBack = 3.5f; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; - item.channel = true; - item.melee = true; - item.knockBack = 3.5f; - item.value = Item.buyPrice(0, 60, 0, 0); - item.rare = 7; item.autoReuse = true; - item.shoot = ModContent.ProjectileType(); - ItemID.Sets.Yoyo[item.type] = true; + + item.useStyle = 5; + item.UseSound = SoundID.Item1; + item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 10f; + + item.rare = 7; + item.value = Item.buyPrice(gold: 60); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/Shimmerspark.cs b/Items/Weapons/Melee/Shimmerspark.cs index f4ca5f6ef9..c303468917 100644 --- a/Items/Weapons/Melee/Shimmerspark.cs +++ b/Items/Weapons/Melee/Shimmerspark.cs @@ -12,23 +12,33 @@ namespace CalamityMod.Items.Weapons.Melee { DisplayName.SetDefault("Shimmerspark"); Tooltip.SetDefault("Fires stars when enemies are near"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.Chik); + item.width = 50; + item.height = 36; + item.melee = true; item.damage = 36; + item.knockBack = 3.5f; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; - item.channel = true; - item.melee = true; - item.knockBack = 3.5f; - item.value = Item.buyPrice(0, 36, 0, 0); - item.rare = 5; item.autoReuse = true; - item.shoot = ModContent.ProjectileType(); - ItemID.Sets.Yoyo[item.type] = true; + + item.useStyle = 5; + item.UseSound = SoundID.Item1; + item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 12f; + + item.rare = 5; + item.value = Item.buyPrice(gold: 36); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/TheEyeofCalamitas.cs b/Items/Weapons/Melee/TheEyeofCalamitas.cs index 56f329ac8e..8f21300764 100644 --- a/Items/Weapons/Melee/TheEyeofCalamitas.cs +++ b/Items/Weapons/Melee/TheEyeofCalamitas.cs @@ -11,23 +11,33 @@ namespace CalamityMod.Items.Weapons.Melee { DisplayName.SetDefault("Oblivion"); Tooltip.SetDefault("Fires brimstone lasers when enemies are near"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.TheEyeOfCthulhu); + item.width = 28; + item.height = 38; + item.melee = true; item.damage = 41; + item.knockBack = 4f; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; - item.channel = true; - item.melee = true; - item.knockBack = 4f; - item.value = Item.buyPrice(0, 60, 0, 0); - item.rare = 7; item.autoReuse = true; - item.shoot = ModContent.ProjectileType(); - ItemID.Sets.Yoyo[item.type] = true; + + item.useStyle = 5; + item.UseSound = SoundID.Item1; + item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 14f; + + item.rare = 7; + item.value = Item.buyPrice(gold: 60); } } } diff --git a/Items/Weapons/Melee/TheGodsGambit.cs b/Items/Weapons/Melee/TheGodsGambit.cs index 460e17d929..b4860c4b8e 100644 --- a/Items/Weapons/Melee/TheGodsGambit.cs +++ b/Items/Weapons/Melee/TheGodsGambit.cs @@ -12,23 +12,33 @@ namespace CalamityMod.Items.Weapons.Melee { DisplayName.SetDefault("The God's Gambit"); Tooltip.SetDefault("Fires a stream of slime when enemies are near"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(3291); + item.width = 40; + item.height = 26; + item.melee = true; item.damage = 28; + item.knockBack = 3.5f; item.useTime = 21; item.useAnimation = 21; - item.useStyle = 5; - item.channel = true; - item.melee = true; - item.knockBack = 3.5f; - item.value = Item.buyPrice(0, 12, 0, 0); - item.rare = 4; item.autoReuse = true; - item.shoot = ModContent.ProjectileType(); - ItemID.Sets.Yoyo[item.type] = true; + + item.useStyle = 5; + item.UseSound = SoundID.Item1; + item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 10f; + + item.rare = 4; + item.value = Item.buyPrice(gold: 12); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/ThePlaguebringer.cs b/Items/Weapons/Melee/ThePlaguebringer.cs index 6e582ced72..5657766a41 100644 --- a/Items/Weapons/Melee/ThePlaguebringer.cs +++ b/Items/Weapons/Melee/ThePlaguebringer.cs @@ -11,23 +11,33 @@ namespace CalamityMod.Items.Weapons.Melee { DisplayName.SetDefault("Pandemic"); Tooltip.SetDefault("Fires plague seekers when enemies are near"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.TheEyeOfCthulhu); + item.width = 30; + item.height = 32; + item.melee = true; item.damage = 100; + item.knockBack = 2.5f; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; - item.channel = true; - item.melee = true; - item.knockBack = 2.5f; - item.value = Item.buyPrice(0, 80, 0, 0); - item.rare = 8; item.autoReuse = true; - item.shoot = ModContent.ProjectileType(); - ItemID.Sets.Yoyo[item.type] = true; + + item.useStyle = 5; + item.UseSound = SoundID.Item1; + item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 14f; + + item.rare = 8; + item.value = Item.buyPrice(gold: 80); } } } diff --git a/Items/Weapons/Melee/YinYo.cs b/Items/Weapons/Melee/YinYo.cs index 1049f12f8f..9f6998ec83 100644 --- a/Items/Weapons/Melee/YinYo.cs +++ b/Items/Weapons/Melee/YinYo.cs @@ -9,26 +9,36 @@ namespace CalamityMod.Items.Weapons.Melee { public override void SetStaticDefaults() { - DisplayName.SetDefault("YinYo"); + DisplayName.SetDefault("Yin-Yo"); Tooltip.SetDefault("Fires light or dark shards when enemies are near\n" + "Light shards fly up and down while dark shards fly left and right"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.Chik); + item.width = 26; + item.height = 24; + item.melee = true; item.damage = 34; + item.knockBack = 3.5f; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; - item.channel = true; - item.melee = true; - item.knockBack = 3.5f; - item.value = Item.buyPrice(0, 36, 0, 0); - item.rare = 5; item.autoReuse = true; + + item.useStyle = 5; + item.UseSound = SoundID.Item1; + item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + item.shoot = ModContent.ProjectileType(); - ItemID.Sets.Yoyo[item.type] = true; + item.shootSpeed = 12f; + + item.rare = 5; + item.value = Item.buyPrice(gold: 36); } public override void AddRecipes() diff --git a/Projectiles/Melee/Yoyos/AortaYoyo.cs b/Projectiles/Melee/Yoyos/AortaYoyo.cs index d5fb335310..4bf24f9c3d 100644 --- a/Projectiles/Melee/Yoyos/AortaYoyo.cs +++ b/Projectiles/Melee/Yoyos/AortaYoyo.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos { DisplayName.SetDefault("Aorta"); ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 11f; - ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 225f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 220f; ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 14f; ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; diff --git a/Projectiles/Melee/Yoyos/TheGodsGambitProjectile.cs b/Projectiles/Melee/Yoyos/GodsGambitYoyo.cs similarity index 89% rename from Projectiles/Melee/Yoyos/TheGodsGambitProjectile.cs rename to Projectiles/Melee/Yoyos/GodsGambitYoyo.cs index 9cdddea9f7..a83ad987a3 100644 --- a/Projectiles/Melee/Yoyos/TheGodsGambitProjectile.cs +++ b/Projectiles/Melee/Yoyos/GodsGambitYoyo.cs @@ -7,22 +7,25 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class TheGodsGambitProjectile : ModProjectile + public class GodsGambitYoyo : ModProjectile { public override void SetStaticDefaults() { - DisplayName.SetDefault("God's Gambit"); + DisplayName.SetDefault("The God's Gambit"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 320f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 14f; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.Kraken); + projectile.aiStyle = 99; projectile.width = 16; - projectile.scale = 1.15f; projectile.height = 16; - projectile.penetrate = 6; + projectile.scale = 1.15f; + projectile.friendly = true; projectile.melee = true; - aiType = 554; + projectile.penetrate = -1; } public override void AI() diff --git a/Projectiles/Melee/Yoyos/TheGodsGambitProjectile.png b/Projectiles/Melee/Yoyos/GodsGambitYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/TheGodsGambitProjectile.png rename to Projectiles/Melee/Yoyos/GodsGambitYoyo.png diff --git a/Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.cs b/Projectiles/Melee/Yoyos/OblivionYoyo.cs similarity index 84% rename from Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.cs rename to Projectiles/Melee/Yoyos/OblivionYoyo.cs index 986d975020..dfb702921c 100644 --- a/Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.cs +++ b/Projectiles/Melee/Yoyos/OblivionYoyo.cs @@ -7,22 +7,28 @@ using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class TheEyeofCalamitasProjectile : ModProjectile + public class OblivionYoyo : ModProjectile { public override void SetStaticDefaults() { DisplayName.SetDefault("Oblivion"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 360f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 16.5f; + + ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.TheEyeOfCthulhu); + projectile.aiStyle = 99; projectile.width = 16; - projectile.scale = 1.1f; projectile.height = 16; - projectile.penetrate = -1; + projectile.scale = 1.1f; + projectile.friendly = true; projectile.melee = true; - aiType = 555; + projectile.penetrate = -1; } public override void AI() @@ -81,8 +87,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - Texture2D tex = Main.projectileTexture[projectile.type]; - spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); return false; } } diff --git a/Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.png b/Projectiles/Melee/Yoyos/OblivionYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.png rename to Projectiles/Melee/Yoyos/OblivionYoyo.png diff --git a/Projectiles/Melee/Yoyos/ThePlaguebringerYoyo.cs b/Projectiles/Melee/Yoyos/PandemicYoyo.cs similarity index 91% rename from Projectiles/Melee/Yoyos/ThePlaguebringerYoyo.cs rename to Projectiles/Melee/Yoyos/PandemicYoyo.cs index d6a6caa1ae..de49dd6f86 100644 --- a/Projectiles/Melee/Yoyos/ThePlaguebringerYoyo.cs +++ b/Projectiles/Melee/Yoyos/PandemicYoyo.cs @@ -8,22 +8,25 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class ThePlaguebringerYoyo : ModProjectile + public class PandemicYoyo : ModProjectile { public override void SetStaticDefaults() { DisplayName.SetDefault("Pandemic"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 340f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 16.5f; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.TheEyeOfCthulhu); + projectile.aiStyle = 99; projectile.width = 16; - projectile.scale = 1f; projectile.height = 16; - projectile.penetrate = -1; + projectile.scale = 1f; + projectile.friendly = true; projectile.melee = true; - aiType = 555; + projectile.penetrate = -1; } public override void AI() diff --git a/Projectiles/Melee/Yoyos/ThePlaguebringerYoyo.png b/Projectiles/Melee/Yoyos/PandemicYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/ThePlaguebringerYoyo.png rename to Projectiles/Melee/Yoyos/PandemicYoyo.png diff --git a/Projectiles/Melee/Yoyos/QuagmireProjectile.cs b/Projectiles/Melee/Yoyos/QuagmireYoyo.cs similarity index 88% rename from Projectiles/Melee/Yoyos/QuagmireProjectile.cs rename to Projectiles/Melee/Yoyos/QuagmireYoyo.cs index ce0c698100..9970374b10 100644 --- a/Projectiles/Melee/Yoyos/QuagmireProjectile.cs +++ b/Projectiles/Melee/Yoyos/QuagmireYoyo.cs @@ -6,22 +6,25 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class QuagmireProjectile : ModProjectile + public class QuagmireYoyo : ModProjectile { public override void SetStaticDefaults() { DisplayName.SetDefault("Quagmire"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 12f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 275f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 15f; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.HelFire); + projectile.aiStyle = 99; projectile.width = 16; - projectile.scale = 1.25f; projectile.height = 16; - projectile.penetrate = 8; + projectile.scale = 1.25f; + projectile.friendly = true; projectile.melee = true; - aiType = 553; + projectile.penetrate = -1; } public override void AI() diff --git a/Projectiles/Melee/Yoyos/QuagmireProjectile.png b/Projectiles/Melee/Yoyos/QuagmireYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/QuagmireProjectile.png rename to Projectiles/Melee/Yoyos/QuagmireYoyo.png diff --git a/Projectiles/Melee/Yoyos/ShimmersparkProjectile.cs b/Projectiles/Melee/Yoyos/ShimmersparkYoyo.cs similarity index 90% rename from Projectiles/Melee/Yoyos/ShimmersparkProjectile.cs rename to Projectiles/Melee/Yoyos/ShimmersparkYoyo.cs index 53326e7a22..9243254c22 100644 --- a/Projectiles/Melee/Yoyos/ShimmersparkProjectile.cs +++ b/Projectiles/Melee/Yoyos/ShimmersparkYoyo.cs @@ -7,22 +7,25 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class ShimmersparkProjectile : ModProjectile + public class ShimmersparkYoyo : ModProjectile { public override void SetStaticDefaults() { DisplayName.SetDefault("Shimmerspark"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 16f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 275f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 17f; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.Chik); + projectile.aiStyle = 99; projectile.width = 16; - projectile.scale = 0.9f; projectile.height = 16; - projectile.penetrate = 8; + projectile.scale = 1f; + projectile.friendly = true; projectile.melee = true; - aiType = 546; + projectile.penetrate = -1; } public override void AI() diff --git a/Projectiles/Melee/Yoyos/ShimmersparkProjectile.png b/Projectiles/Melee/Yoyos/ShimmersparkYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/ShimmersparkProjectile.png rename to Projectiles/Melee/Yoyos/ShimmersparkYoyo.png diff --git a/Projectiles/Melee/Yoyos/YinYoyo.cs b/Projectiles/Melee/Yoyos/YinYoyo.cs index be06a94692..2fc86d0959 100644 --- a/Projectiles/Melee/Yoyos/YinYoyo.cs +++ b/Projectiles/Melee/Yoyos/YinYoyo.cs @@ -11,18 +11,21 @@ namespace CalamityMod.Projectiles.Melee.Yoyos { public override void SetStaticDefaults() { - DisplayName.SetDefault("Yinyo"); + DisplayName.SetDefault("Yin-Yo"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 14f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 275f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 17f; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.Chik); + projectile.aiStyle = 99; projectile.width = 16; - projectile.scale = 0.9f; projectile.height = 16; - projectile.penetrate = 5; + projectile.scale = 1f; + projectile.friendly = true; projectile.melee = true; - aiType = 546; + projectile.penetrate = -1; } public override void AI() From 3664cc5b8f476b4bf658037ffb125ad27b52f852 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 25 Dec 2019 23:14:16 -0500 Subject: [PATCH 20/34] added abyss shocker --- Items/Weapons/Magic/AbyssShocker.cs | 64 +++++++++ Items/Weapons/Magic/AbyssShocker.png | Bin 0 -> 1197 bytes Items/Weapons/Magic/AbyssShocker_mask.png | Bin 0 -> 623 bytes Items/Weapons/Melee/GalileoGladius.cs | 1 - NPCs/Abyss/BoxJellyfish.cs | 6 + NPCs/Abyss/MirageJelly.cs | 2 + Projectiles/Magic/LightningArc.cs | 160 ++++++++++++++++++++++ Projectiles/Magic/LightningArc.png | Bin 0 -> 251 bytes 8 files changed, 232 insertions(+), 1 deletion(-) create mode 100644 Items/Weapons/Magic/AbyssShocker.cs create mode 100644 Items/Weapons/Magic/AbyssShocker.png create mode 100644 Items/Weapons/Magic/AbyssShocker_mask.png create mode 100644 Projectiles/Magic/LightningArc.cs create mode 100644 Projectiles/Magic/LightningArc.png diff --git a/Items/Weapons/Magic/AbyssShocker.cs b/Items/Weapons/Magic/AbyssShocker.cs new file mode 100644 index 0000000000..e3841fea11 --- /dev/null +++ b/Items/Weapons/Magic/AbyssShocker.cs @@ -0,0 +1,64 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Projectiles.Magic; + +namespace CalamityMod.Items.Weapons.Magic +{ + public class AbyssShocker : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Abyss Shocker"); + Tooltip.SetDefault("Fires an erratic lightning bolt that arcs and bounces between enemies"); + } + + public override void SetDefaults() + { + item.damage = 15; + item.noMelee = true; + item.magic = true; + item.channel = true; + item.width = 86; + item.height = 32; + item.useTime = 50; + item.useAnimation = 20; + item.UseSound = SoundID.Item13; + item.useStyle = 5; + item.mana = 10; + item.value = Item.buyPrice(0, 4, 0, 0); + item.rare = 3; + item.Calamity().postMoonLordRarity = 21; + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 14f; + } + + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/AbyssShocker_mask"); + spriteBatch.Draw + ( + texture, + new Vector2 + ( + item.position.X - Main.screenPosition.X + item.width * 0.5f, + item.position.Y - Main.screenPosition.Y + item.height - texture.Height * 0.5f + 2f + ), + new Rectangle(0, 0, texture.Width, texture.Height), + Color.White, + rotation, + texture.Size() * 0.5f, + scale, + SpriteEffects.None, + 0f + ); + } + + public override Vector2? HoldoutOffset() + { + return new Vector2(-14, 0); + } + } +} \ No newline at end of file diff --git a/Items/Weapons/Magic/AbyssShocker.png b/Items/Weapons/Magic/AbyssShocker.png new file mode 100644 index 0000000000000000000000000000000000000000..14947281f34751f8915fa12a2ff4c42308cdb0a4 GIT binary patch literal 1197 zcmV;e1XBBnP)Px(XGugsRA_(7gh!a zRwg!tkYGayi3y|vLs=+Hs7Rm`ngWsoG)WOD&TkVMH*HeeHN)|nSW;Hq0s)h*%@!Vr}r=b%S%^F)xK}fp6&qP=FRH>v~&yrknDEn z-?){pdcGw&_;>)YlKl~YzbDRZ=k&WyOH+USe@sy8fGATfi9|mDx!ght;Ka$7z46uD ztk=$rpZD5(lZOLUi6u z?*LFd)edZ$`uxW)ddGcw;%(sV&^hro5L(U1?5Y)2Y;1$5_+P&-bp(Jye$C5Po24>O zCZvx)?2TtGx~!8Ke@weOEUn@Pa^C_lpLhy@!C`-OSAD8}o3%&y-8)`aP%Si{sI@`g zW9O~9TJ`tb>`ZKIGYG2+ylk~ZWvsF&^~e)IrNQ5waR!cMoN4Ki4*{6|`W5fE)}yW+ zWw15XX11`|Euu^nv9Y_H$f{s@aWb_3Lb<pi~jSPMN zGuM9YB>;+3pSX7Udt|OYuawWzal&3n7F}7Q-aEpb5*ynf!i@E@BWUd^|DzLtd%IHr zEHD0C0vKC!bej}5K66NX$hVl#gAlKWKM zt*lkH+G<8@)Vp<77qy6uZ4i}p?C^75yFKat;`x=VcQ36~UG=5iAC+-7d$roiC{+PM zSt_$_*4t{O-fXm0i=B_Krd#5wpvgoUYfaT1Q&fE^G;VkHpFZVZ2|rD`%(kn$kjaaq zZ@G3`X8=$vtb2Eab`L`t8dcTEcx$A6q7g;ByVYc>Wvpka%(G}*yH9q9U%O8tD!YU= zr=#~+0C0P09Eg6RArob;GBv6?&=U(wOKW=oaHp8BI?wnCLX)Uztfi%+%l$?5WT9Lg zWX`_o9cN9o85m_yf8YH9z{28R-ud?Zg)M}dTkl?hy#w2l&B4~+-7c}Q4Wecp8$xLI zb|wx40DDVU0hpWp&D)u`PZ)$u?df&z6)Z35{OYFEGWRYJ8@n5+`6i5r%3i&BvNr#{ z8!TK8eG|sAQ&TPVzNxcQVqN2bZe?^J zG%hhNHvLWs=l}o#?MXyIRA@u(n9WK9F%*UK7FKFOq>EZb)U^l}#GQ-oUHA&R^f`PU zAI430KEjxUIVE$rGjltCiIM{!G|9cw$yd@2HAPYU3FgbEqKWhS596?}J<%g=B1J-p z5?O3VHeb6UbMgG?f#B2ISL28-SlUF2WU&LoLRlonJU^Q+jpJx`JPNImHj@%v z#qxE=LLGb}(nY2ON1cVf|LiJ2TG z>tmsc)HoC@3gaxc1{`f{xQ*52od=>IwoWiWKhMWT6{)d}ELIsSsY38KoEHdK48~dk z5R7_&>u`OlsN-aYWU#3lQlj_J~b*ST{mQ;jd z%wQc~30%)N^50O$%1BD=V!iRC@;@=7j+Idn%PiJgyV31_9Y;T`aqtav1ws+2CMN1w zDOv0RsAHwH;l=ThKf8G`j;rejk8~4V;7BzwQKyvGM6Foqjr+opYGTqmrPRGxfXA}g z$x3|VzHp?PnDkC5HH#&Br<7XDSdT(oBVB6@dPkBOlEsEG<`*B43dgY|VpjkF002ov JPDHLkV1i|G5NiMc literal 0 HcmV?d00001 diff --git a/Items/Weapons/Melee/GalileoGladius.cs b/Items/Weapons/Melee/GalileoGladius.cs index 59b06c6367..ae2d0ab12d 100644 --- a/Items/Weapons/Melee/GalileoGladius.cs +++ b/Items/Weapons/Melee/GalileoGladius.cs @@ -50,7 +50,6 @@ namespace CalamityMod.Items.Weapons.Melee public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddIngredient(ModContent.ItemType(), 15); recipe.AddTile(TileID.LunarCraftingStation); diff --git a/NPCs/Abyss/BoxJellyfish.cs b/NPCs/Abyss/BoxJellyfish.cs index 7f3d2f6f63..c5a4e36b01 100644 --- a/NPCs/Abyss/BoxJellyfish.cs +++ b/NPCs/Abyss/BoxJellyfish.cs @@ -5,6 +5,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Items.Weapons.Magic; namespace CalamityMod.NPCs.Abyss { @@ -209,5 +210,10 @@ namespace CalamityMod.NPCs.Abyss } } } + + public override void NPCLoot() + { + DropHelper.DropItemCondition(npc, ModContent.ItemType(), NPC.downedBoss3, Main.expertMode ? 40 : 50, 1, 1); + } } } diff --git a/NPCs/Abyss/MirageJelly.cs b/NPCs/Abyss/MirageJelly.cs index 74101c1811..254cd17a05 100644 --- a/NPCs/Abyss/MirageJelly.cs +++ b/NPCs/Abyss/MirageJelly.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Magic; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -194,6 +195,7 @@ namespace CalamityMod.NPCs.Abyss public override void NPCLoot() { + DropHelper.DropItemCondition(npc, ModContent.ItemType(), NPC.downedBoss3, 10, 1, 1); if (Main.rand.NextBool(1000000) && CalamityWorld.revenge) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); diff --git a/Projectiles/Magic/LightningArc.cs b/Projectiles/Magic/LightningArc.cs new file mode 100644 index 0000000000..31a88a1442 --- /dev/null +++ b/Projectiles/Magic/LightningArc.cs @@ -0,0 +1,160 @@ +using Microsoft.Xna.Framework; +using System; +using System.Collections.Generic; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Magic +{ + public class LightningArc : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Lightning Arc"); + } + + public override void SetDefaults() + { + projectile.width = 8; + projectile.height = 8; + projectile.alpha = 255; + projectile.friendly = true; + projectile.tileCollide = false; + projectile.ignoreWater = true; + projectile.ranged = true; + projectile.timeLeft = 20; + projectile.penetrate = 6; + projectile.tileCollide = true; + } + + + HashSet shockedbefore = new HashSet(); + int prevX = 0; + public override void AI() + { + //projectile.alpha exists + if (projectile.localAI[0] == 0f) + { + AdjustMagnitude(ref projectile.velocity); + projectile.localAI[0] = 1f; + } + Vector2 move = Vector2.Zero; + float distance = 160f; + bool target = false; + NPC npc = null; + bool pastNPC = false; + if (projectile.timeLeft < 18) { + for (int k = 0; k < 200; k++) + { + if (Main.npc[k].active && !Main.npc[k].dontTakeDamage && !Main.npc[k].friendly && Main.npc[k].lifeMax > 5 && !shockedbefore.Contains(Main.npc[k])) + { + Vector2 newMove = Main.npc[k].Center - (projectile.velocity + projectile.Center); + float distanceTo = (float)Math.Sqrt(newMove.X * newMove.X + newMove.Y * newMove.Y); + if (distanceTo < distance) + { + move = newMove; + distance = distanceTo; + target = true; + npc = Main.npc[k]; + + } + } + } + } + //if not found, lokk thru npcs that have been shocked before + if (!target) { + foreach (NPC pastnpc in shockedbefore) { + Vector2 newMove = pastnpc.Center -(projectile.velocity + projectile.Center); + float distanceTo = (float)Math.Sqrt(newMove.X * newMove.X + newMove.Y * newMove.Y); + if (distanceTo < distance) + { + move = newMove; + distance = distanceTo; + target = true; + npc = pastnpc; + pastNPC = true; + } + } + } + + + // Main.dust[dust].velocity /= 2f; + Vector2 current = projectile.Center; + if (target) + { + shockedbefore.Add(npc); + npc.HitEffect(0, projectile.damage); + //AdjustMagnitude(ref move); + //AdjustMagnitude(ref projectile.velocity); + //projectile.velocity = (10 * projectile.velocity + move) / 11f; + + move+= new Vector2(Main.rand.Next(-10, 10), Main.rand.Next(-10, 10))*distance/30; + if (pastNPC) { + prevX++; + move += new Vector2(Main.rand.Next(-10, 10), Main.rand.Next(-10, 10)) * prevX; + } + + + } + else { + move = (projectile.velocity+ new Vector2(Main.rand.Next(-10, 10), Main.rand.Next(-10, 10)))*5; + } + for (int i = 0; i < 20; i++) + { + int dust = Dust.NewDust(current, projectile.width, projectile.height, 20, 0, 0); + Main.dust[dust].velocity = new Vector2(0); + current += move / 20f; + } + projectile.position = current; + /*int tx = (int)(projectile.position.X / 16f); + int ty = (int)(projectile.position.Y / 16f); + + if (tx < 0) + { + tx = 0; + } + if (tx > Main.maxTilesX) + { + tx = Main.maxTilesX; + } + if (ty < 0) + { + ty = 0; + } + if (ty > Main.maxTilesY) + { + ty = Main.maxTilesY; + } + + if (Main.tile[tx, ty] != null && Main.tileSolid[(int)Main.tile[tx,ty].type] && Main.tile[tx, ty].wall == 0) + { + projectile.timeLeft -= 12; + }*/ + + + } + public override bool OnTileCollide(Vector2 oldVelocity) + { + projectile.velocity = oldVelocity; + projectile.timeLeft -= 12; + return false; + } + private void AdjustMagnitude(ref Vector2 vector) + { + float magnitude = (float)Math.Sqrt(vector.X * vector.X + vector.Y * vector.Y); + if (magnitude > 6f) + { + vector *= 6f / magnitude; + } + } + + public override void OnHitPvp(Player target, int damage, bool crit) + { + if (Main.rand.NextBool(3)) + { + target.AddBuff(BuffID.Electrified, 300); + } + } + } +} diff --git a/Projectiles/Magic/LightningArc.png b/Projectiles/Magic/LightningArc.png new file mode 100644 index 0000000000000000000000000000000000000000..62237c6022cea29cbc924157b8ded309cf204969 GIT binary patch literal 251 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqjKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPgg~Mm9!9wqv|Kr9dIs%#er@=ltB< z)VvZPmw~~#C^fMpHASI3vm`^o-P1Q9MK6^dC?4eL;us=vIXR`FDgFNc|LG1)L34U~ zcz{61;H0sp=fS?83{1OS9FNlyR( literal 0 HcmV?d00001 From 431a981c9eb7bcbb8e5074e48162f4782bda2670 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 25 Dec 2019 23:50:14 -0500 Subject: [PATCH 21/34] Every yoyo except The Obliterator redone --- Items/Weapons/Melee/AirSpinner.cs | 2 +- Items/Weapons/Melee/Aorta.cs | 2 +- Items/Weapons/Melee/Azathoth.cs | 26 ++++++++++----- Items/Weapons/Melee/Chaotrix.cs | 2 +- Items/Weapons/Melee/Lacerator.cs | 31 +++++++++++------- Items/Weapons/Melee/SolarFlare.cs | 28 +++++++++++----- Items/Weapons/Melee/Verdant.cs | 25 ++++++++++---- ...{AzathothProjectile.cs => AzathothYoyo.cs} | 20 +++++++---- ...zathothProjectile.png => AzathothYoyo.png} | Bin ...aceratorProjectile.cs => LaceratorYoyo.cs} | 20 +++++++---- ...eratorProjectile.png => LaceratorYoyo.png} | Bin Projectiles/Melee/Yoyos/SolarFlareYoyo.cs | 19 +++++++---- .../{VerdantProjectile.cs => VerdantYoyo.cs} | 22 +++++++++---- ...{VerdantProjectile.png => VerdantYoyo.png} | Bin 14 files changed, 132 insertions(+), 65 deletions(-) rename Projectiles/Melee/Yoyos/{AzathothProjectile.cs => AzathothYoyo.cs} (67%) rename Projectiles/Melee/Yoyos/{AzathothProjectile.png => AzathothYoyo.png} (100%) rename Projectiles/Melee/Yoyos/{LaceratorProjectile.cs => LaceratorYoyo.cs} (66%) rename Projectiles/Melee/Yoyos/{LaceratorProjectile.png => LaceratorYoyo.png} (100%) rename Projectiles/Melee/Yoyos/{VerdantProjectile.cs => VerdantYoyo.cs} (83%) rename Projectiles/Melee/Yoyos/{VerdantProjectile.png => VerdantYoyo.png} (100%) diff --git a/Items/Weapons/Melee/AirSpinner.cs b/Items/Weapons/Melee/AirSpinner.cs index 6a8defa5b8..3bd257f851 100644 --- a/Items/Weapons/Melee/AirSpinner.cs +++ b/Items/Weapons/Melee/AirSpinner.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Air Spinner"); - Tooltip.SetDefault("Fires feathers when enemies are near\nVery nimble compared to other yoyos"); + Tooltip.SetDefault("Fires feathers when enemies are near\nAn exceptionally agile yoyo"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Melee/Aorta.cs b/Items/Weapons/Melee/Aorta.cs index 5f2d3c7934..83390a98b1 100644 --- a/Items/Weapons/Melee/Aorta.cs +++ b/Items/Weapons/Melee/Aorta.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Aorta"); - Tooltip.SetDefault("Very nimble compared to other yoyos"); + Tooltip.SetDefault("An exceptionally agile yoyo"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Melee/Azathoth.cs b/Items/Weapons/Melee/Azathoth.cs index 04a88b0927..b617ed98ba 100644 --- a/Items/Weapons/Melee/Azathoth.cs +++ b/Items/Weapons/Melee/Azathoth.cs @@ -12,26 +12,36 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Azathoth"); - Tooltip.SetDefault("Destroy the universe in the blink of an eye\n" + - "Fires cosmic orbs that blast nearby enemies with lasers"); + Tooltip.SetDefault("Fires cosmic orbs that blast nearby enemies with lasers\nAn exceptionally agile yoyo\n'Destroy the universe in the blink of an eye'"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.Kraken); + item.width = 30; + item.height = 26; + item.melee = true; item.damage = 200; + item.knockBack = 6f; item.useTime = 20; item.useAnimation = 20; + item.autoReuse = true; + item.useStyle = 5; + item.UseSound = SoundID.Item1; item.channel = true; - item.melee = true; - item.knockBack = 6f; - item.value = Item.buyPrice(5, 0, 0, 0); + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 16f; + item.rare = 10; item.autoReuse = true; - item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 16; - ItemID.Sets.Yoyo[item.type] = true; + item.value = Item.buyPrice(platinum: 5); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/Chaotrix.cs b/Items/Weapons/Melee/Chaotrix.cs index 09d51af6a3..a3c79c3e05 100644 --- a/Items/Weapons/Melee/Chaotrix.cs +++ b/Items/Weapons/Melee/Chaotrix.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Chaotrix"); - Tooltip.SetDefault("Explodes on enemy hits\nVery nimble compared to other yoyos"); + Tooltip.SetDefault("Explodes on enemy hits\nAn exceptionally agile yoyo"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Melee/Lacerator.cs b/Items/Weapons/Melee/Lacerator.cs index 33c2ec7326..36b13272ee 100644 --- a/Items/Weapons/Melee/Lacerator.cs +++ b/Items/Weapons/Melee/Lacerator.cs @@ -11,26 +11,35 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Lacerator"); - Tooltip.SetDefault("Enemies that are hit by the yoyo will have their life drained\n" + - "Someone thought this was a viable weapon against DoG at one point lol"); + Tooltip.SetDefault("Enemies that are hit by the yoyo will have their life drained\nAn exceptionally agile yoyo\n'Someone thought this was a viable weapon against DoG at one point lol'"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.TheEyeOfCthulhu); + item.width = 30; + item.height = 26; + item.melee = true; item.damage = 150; + item.knockBack = 7f; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; - item.channel = true; - item.melee = true; - item.knockBack = 7f; - item.value = Item.buyPrice(1, 40, 0, 0); - item.rare = 10; item.autoReuse = true; - item.shoot = ModContent.ProjectileType(); + + item.useStyle = 5; + item.UseSound = SoundID.Item1; + item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 16f; + + item.rare = 10; item.Calamity().postMoonLordRarity = 13; - ItemID.Sets.Yoyo[item.type] = true; + item.value = Item.buyPrice(platinum: 1, gold: 40); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/SolarFlare.cs b/Items/Weapons/Melee/SolarFlare.cs index d8fed7e8bb..534a992a3d 100644 --- a/Items/Weapons/Melee/SolarFlare.cs +++ b/Items/Weapons/Melee/SolarFlare.cs @@ -10,25 +10,35 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Solar Flare"); - Tooltip.SetDefault("Emits large holy explosions on hit"); + Tooltip.SetDefault("Emits large holy explosions on hit\nAn exceptionally agile yoyo"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.TheEyeOfCthulhu); + item.width = 40; + item.height = 38; + item.melee = true; item.damage = 60; + item.knockBack = 7.5f; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; - item.channel = true; - item.melee = true; - item.knockBack = 7.5f; - item.value = Item.buyPrice(1, 20, 0, 0); - item.rare = 10; item.autoReuse = true; + + item.useStyle = 5; + item.UseSound = SoundID.Item1; + item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 16f; + + item.rare = 10; item.Calamity().postMoonLordRarity = 12; - ItemID.Sets.Yoyo[item.type] = true; + item.value = Item.buyPrice(platinum: 1, gold: 20); } } } diff --git a/Items/Weapons/Melee/Verdant.cs b/Items/Weapons/Melee/Verdant.cs index db902cbdbb..2fb5164206 100644 --- a/Items/Weapons/Melee/Verdant.cs +++ b/Items/Weapons/Melee/Verdant.cs @@ -11,25 +11,36 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Verdant"); - Tooltip.SetDefault("Fires crystal leafs when enemies are near"); + Tooltip.SetDefault("Fires crystal leaves when enemies are near\nAn exceptionally agile yoyo"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.Kraken); + item.width = 30; + item.height = 30; + item.melee = true; item.damage = 218; + item.knockBack = 6f; item.useTime = 22; item.useAnimation = 22; + item.autoReuse = true; + item.useStyle = 5; + item.UseSound = SoundID.Item1; item.channel = true; - item.melee = true; - item.knockBack = 6f; - item.value = Item.buyPrice(1, 20, 0, 0); + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 16f; + item.rare = 10; item.autoReuse = true; - item.shoot = ModContent.ProjectileType(); item.Calamity().postMoonLordRarity = 12; - ItemID.Sets.Yoyo[item.type] = true; + item.value = Item.buyPrice(platinum: 1, gold: 20); } public override void AddRecipes() diff --git a/Projectiles/Melee/Yoyos/AzathothProjectile.cs b/Projectiles/Melee/Yoyos/AzathothYoyo.cs similarity index 67% rename from Projectiles/Melee/Yoyos/AzathothProjectile.cs rename to Projectiles/Melee/Yoyos/AzathothYoyo.cs index 4d25b6eb53..7b0a2a1832 100644 --- a/Projectiles/Melee/Yoyos/AzathothProjectile.cs +++ b/Projectiles/Melee/Yoyos/AzathothYoyo.cs @@ -6,23 +6,30 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class AzathothProjectile : ModProjectile + public class AzathothYoyo : ModProjectile { public override void SetStaticDefaults() { DisplayName.SetDefault("Azathoth"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 700f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 20f; + + ProjectileID.Sets.TrailCacheLength[projectile.type] = 8; + ProjectileID.Sets.TrailingMode[projectile.type] = 1; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.Kraken); + projectile.aiStyle = 99; projectile.width = 16; - projectile.scale = 1.2f; projectile.height = 16; + projectile.scale = 1.2f; + projectile.friendly = true; + projectile.melee = true; projectile.penetrate = -1; projectile.extraUpdates = 1; - aiType = 554; - projectile.melee = true; + projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 1; } @@ -38,8 +45,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - Texture2D tex = Main.projectileTexture[projectile.type]; - spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); return false; } } diff --git a/Projectiles/Melee/Yoyos/AzathothProjectile.png b/Projectiles/Melee/Yoyos/AzathothYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/AzathothProjectile.png rename to Projectiles/Melee/Yoyos/AzathothYoyo.png diff --git a/Projectiles/Melee/Yoyos/LaceratorProjectile.cs b/Projectiles/Melee/Yoyos/LaceratorYoyo.cs similarity index 66% rename from Projectiles/Melee/Yoyos/LaceratorProjectile.cs rename to Projectiles/Melee/Yoyos/LaceratorYoyo.cs index 4471859f1e..eba6606216 100644 --- a/Projectiles/Melee/Yoyos/LaceratorProjectile.cs +++ b/Projectiles/Melee/Yoyos/LaceratorYoyo.cs @@ -6,23 +6,30 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class LaceratorProjectile : ModProjectile + public class LaceratorYoyo : ModProjectile { public override void SetStaticDefaults() { DisplayName.SetDefault("Lacerator"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 560f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 20f; + + ProjectileID.Sets.TrailCacheLength[projectile.type] = 8; + ProjectileID.Sets.TrailingMode[projectile.type] = 1; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.TheEyeOfCthulhu); + projectile.aiStyle = 99; projectile.width = 16; - projectile.scale = 1.1f; projectile.height = 16; + projectile.scale = 1.1f; + projectile.friendly = true; + projectile.melee = true; projectile.penetrate = -1; projectile.extraUpdates = 1; - aiType = 555; - projectile.melee = true; + projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 5; } @@ -41,8 +48,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - Texture2D tex = Main.projectileTexture[projectile.type]; - spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); return false; } } diff --git a/Projectiles/Melee/Yoyos/LaceratorProjectile.png b/Projectiles/Melee/Yoyos/LaceratorYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/LaceratorProjectile.png rename to Projectiles/Melee/Yoyos/LaceratorYoyo.png diff --git a/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs b/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs index 691c4a2cec..cc93ba2c92 100644 --- a/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs +++ b/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs @@ -5,6 +5,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; + namespace CalamityMod.Projectiles.Melee.Yoyos { public class SolarFlareYoyo : ModProjectile @@ -12,18 +13,25 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override void SetStaticDefaults() { DisplayName.SetDefault("Solar Flare"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 560f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 20f; + + ProjectileID.Sets.TrailCacheLength[projectile.type] = 8; + ProjectileID.Sets.TrailingMode[projectile.type] = 1; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.TheEyeOfCthulhu); + projectile.aiStyle = 99; projectile.width = 16; - projectile.scale = 1.15f; projectile.height = 16; + projectile.scale = 1.15f; + projectile.friendly = true; + projectile.melee = true; projectile.penetrate = -1; projectile.extraUpdates = 1; - aiType = 555; - projectile.melee = true; + projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 5; } @@ -46,8 +54,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - Texture2D tex = Main.projectileTexture[projectile.type]; - spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); return false; } } diff --git a/Projectiles/Melee/Yoyos/VerdantProjectile.cs b/Projectiles/Melee/Yoyos/VerdantYoyo.cs similarity index 83% rename from Projectiles/Melee/Yoyos/VerdantProjectile.cs rename to Projectiles/Melee/Yoyos/VerdantYoyo.cs index 4180ea3924..8207519cdb 100644 --- a/Projectiles/Melee/Yoyos/VerdantProjectile.cs +++ b/Projectiles/Melee/Yoyos/VerdantYoyo.cs @@ -7,22 +7,31 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class VerdantProjectile : ModProjectile + public class VerdantYoyo : ModProjectile { public override void SetStaticDefaults() { DisplayName.SetDefault("Verdant"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 400; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 17f; + + ProjectileID.Sets.TrailCacheLength[projectile.type] = 8; + ProjectileID.Sets.TrailingMode[projectile.type] = 1; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.Kraken); + projectile.aiStyle = 99; projectile.width = 16; - projectile.scale = 1.1f; projectile.height = 16; - projectile.penetrate = -1; + projectile.scale = 1.1f; + projectile.friendly = true; projectile.melee = true; - aiType = 554; + projectile.penetrate = -1; + + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 9; } public override void AI() @@ -86,8 +95,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - Texture2D tex = Main.projectileTexture[projectile.type]; - spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); return false; } } diff --git a/Projectiles/Melee/Yoyos/VerdantProjectile.png b/Projectiles/Melee/Yoyos/VerdantYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/VerdantProjectile.png rename to Projectiles/Melee/Yoyos/VerdantYoyo.png From 1138cde4b55891b70f7b18a6d533c55a737e7fe6 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Thu, 26 Dec 2019 01:04:24 -0500 Subject: [PATCH 22/34] The Microwave and The Obliterator 2.0 --- Items/Weapons/Melee/TheMicrowave.cs | 33 +++-- Items/Weapons/Melee/TheObliterator.cs | 30 +++-- Projectiles/Melee/MicrowaveAura.cs | 4 +- .../{TheMicrowaveProj.cs => MicrowaveYoyo.cs} | 35 ++++-- ...TheMicrowaveProj.png => MicrowaveYoyo.png} | Bin ...waveProjGlow.png => MicrowaveYoyoGlow.png} | Bin Projectiles/Melee/Yoyos/TheObliteratorYoyo.cs | 118 +++++++++++------- 7 files changed, 136 insertions(+), 84 deletions(-) rename Projectiles/Melee/Yoyos/{TheMicrowaveProj.cs => MicrowaveYoyo.cs} (64%) rename Projectiles/Melee/Yoyos/{TheMicrowaveProj.png => MicrowaveYoyo.png} (100%) rename Projectiles/Melee/Yoyos/{TheMicrowaveProjGlow.png => MicrowaveYoyoGlow.png} (100%) diff --git a/Items/Weapons/Melee/TheMicrowave.cs b/Items/Weapons/Melee/TheMicrowave.cs index d03e440dd7..919f854634 100644 --- a/Items/Weapons/Melee/TheMicrowave.cs +++ b/Items/Weapons/Melee/TheMicrowave.cs @@ -10,26 +10,35 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("The Microwave"); - //Tooltip.SetDefault("MMMMMMMMMMMMMM, 13th letter of the alphabet moments"); - Tooltip.SetDefault("Baking enemies in the astral infection\n\n" + - "Summons an aura around the yoyo that damages nearby enemies"); + //Tooltip.SetDefault("MMMMMMMMMMMMM"); + Tooltip.SetDefault("Fries nearby enemies with radiation\nAn exceptionally agile yoyo\n'Cooking, Astral Infection style'"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.TheEyeOfCthulhu); + item.width = 34; + item.height = 34; + item.melee = true; item.damage = 80; + item.knockBack = 3f; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; - item.channel = true; - item.melee = true; - item.knockBack = 3f; - item.value = Item.buyPrice(0, 95, 0, 0); - item.rare = 9; item.autoReuse = true; - item.shoot = ModContent.ProjectileType(); - ItemID.Sets.Yoyo[item.type] = true; + + item.useStyle = 5; + item.UseSound = SoundID.Item1; + item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 14f; + + item.rare = 9; + item.value = Item.buyPrice(gold: 95); } } } diff --git a/Items/Weapons/Melee/TheObliterator.cs b/Items/Weapons/Melee/TheObliterator.cs index ded5f2aca3..8359146dc9 100644 --- a/Items/Weapons/Melee/TheObliterator.cs +++ b/Items/Weapons/Melee/TheObliterator.cs @@ -10,25 +10,35 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("The Obliterator"); - Tooltip.SetDefault("Fires death lasers when enemies are near"); + Tooltip.SetDefault("Ruins nearby enemies with death lasers\nAn exceptionally agile yoyo\n"); + ItemID.Sets.Yoyo[item.type] = true; + ItemID.Sets.GamepadExtraRange[item.type] = 15; + ItemID.Sets.GamepadSmartQuickReach[item.type] = true; } public override void SetDefaults() { - item.CloneDefaults(ItemID.TheEyeOfCthulhu); - item.damage = 240; + item.width = 42; + item.height = 40; + item.melee = true; + item.damage = 370; + item.knockBack = 7.5f; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; - item.channel = true; - item.melee = true; - item.knockBack = 7.5f; - item.value = Item.buyPrice(1, 40, 0, 0); - item.rare = 10; item.autoReuse = true; + + item.useStyle = 5; + item.UseSound = SoundID.Item1; + item.channel = true; + item.noUseGraphic = true; + item.noMelee = true; + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 16f; + + item.rare = 10; item.Calamity().postMoonLordRarity = 13; - ItemID.Sets.Yoyo[item.type] = true; + item.value = Item.buyPrice(platinum: 1, gold: 40); } } } diff --git a/Projectiles/Melee/MicrowaveAura.cs b/Projectiles/Melee/MicrowaveAura.cs index 6bb218c4e0..d2d503c163 100644 --- a/Projectiles/Melee/MicrowaveAura.cs +++ b/Projectiles/Melee/MicrowaveAura.cs @@ -1,7 +1,5 @@ using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -14,7 +12,7 @@ namespace CalamityMod.Projectiles.Melee public override void SetStaticDefaults() { - DisplayName.SetDefault("Microwave"); + DisplayName.SetDefault("Microwave Radiation"); } public override void SetDefaults() diff --git a/Projectiles/Melee/Yoyos/TheMicrowaveProj.cs b/Projectiles/Melee/Yoyos/MicrowaveYoyo.cs similarity index 64% rename from Projectiles/Melee/Yoyos/TheMicrowaveProj.cs rename to Projectiles/Melee/Yoyos/MicrowaveYoyo.cs index 928523cf26..f6e40f8778 100644 --- a/Projectiles/Melee/Yoyos/TheMicrowaveProj.cs +++ b/Projectiles/Melee/Yoyos/MicrowaveYoyo.cs @@ -1,34 +1,39 @@ using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Projectiles.Melee; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Yoyos { - public class TheMicrowaveProj : ModProjectile + public class MicrowaveYoyo : ModProjectile { - private int radius = 100; + private const float Radius = 100f; public override void SetStaticDefaults() { - //DisplayName.SetDefault("Bootleg Lacerator"); - DisplayName.SetDefault("Microwave"); + DisplayName.SetDefault("The Microwave"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 320f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 14f; + + ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.TheEyeOfCthulhu); + projectile.aiStyle = 99; projectile.width = 16; projectile.height = 16; + projectile.scale = 1f; + projectile.friendly = true; + projectile.melee = true; projectile.penetrate = -1; projectile.extraUpdates = 1; - aiType = 555; - projectile.melee = true; + projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; } @@ -40,9 +45,9 @@ namespace CalamityMod.Projectiles.Melee.Yoyos Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5f), projectile.knockBack, projectile.owner, 0f, 0f); //dust circle - int numDust = (int)(0.2f * MathHelper.TwoPi * radius); + int numDust = (int)(0.2f * MathHelper.TwoPi * Radius); float angleIncrement = MathHelper.TwoPi / (float)numDust; - Vector2 dustOffset = new Vector2(radius, 0f); + Vector2 dustOffset = new Vector2(Radius, 0f); dustOffset = dustOffset.RotatedByRandom(MathHelper.TwoPi); for (int i = 0; i < numDust; i++) { @@ -61,10 +66,16 @@ namespace CalamityMod.Projectiles.Melee.Yoyos } } + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; + } + public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) { Rectangle frame = new Rectangle(0, 0, 20, 16); - spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Melee/Yoyos/TheMicrowaveProjGlow"), projectile.Center - Main.screenPosition, frame, Color.White, projectile.rotation, projectile.Size / 2, 1f, SpriteEffects.None, 0f); + spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Melee/Yoyos/MicrowaveYoyoGlow"), projectile.Center - Main.screenPosition, frame, Color.White, projectile.rotation, projectile.Size / 2, 1f, SpriteEffects.None, 0f); } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) diff --git a/Projectiles/Melee/Yoyos/TheMicrowaveProj.png b/Projectiles/Melee/Yoyos/MicrowaveYoyo.png similarity index 100% rename from Projectiles/Melee/Yoyos/TheMicrowaveProj.png rename to Projectiles/Melee/Yoyos/MicrowaveYoyo.png diff --git a/Projectiles/Melee/Yoyos/TheMicrowaveProjGlow.png b/Projectiles/Melee/Yoyos/MicrowaveYoyoGlow.png similarity index 100% rename from Projectiles/Melee/Yoyos/TheMicrowaveProjGlow.png rename to Projectiles/Melee/Yoyos/MicrowaveYoyoGlow.png diff --git a/Projectiles/Melee/Yoyos/TheObliteratorYoyo.cs b/Projectiles/Melee/Yoyos/TheObliteratorYoyo.cs index a3ed50d6ca..e7f36fd78b 100644 --- a/Projectiles/Melee/Yoyos/TheObliteratorYoyo.cs +++ b/Projectiles/Melee/Yoyos/TheObliteratorYoyo.cs @@ -1,7 +1,7 @@ using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using System; +using System.Collections.Generic; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -12,78 +12,102 @@ namespace CalamityMod.Projectiles.Melee.Yoyos { public override void SetStaticDefaults() { - DisplayName.SetDefault("Obliterator"); + DisplayName.SetDefault("The Obliterator"); + ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 580f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 22f; + + ProjectileID.Sets.TrailCacheLength[projectile.type] = 8; + ProjectileID.Sets.TrailingMode[projectile.type] = 1; } public override void SetDefaults() { - projectile.CloneDefaults(ProjectileID.TheEyeOfCthulhu); + projectile.aiStyle = 99; projectile.width = 16; projectile.height = 16; + projectile.scale = 1.6f; + projectile.friendly = true; + projectile.melee = true; projectile.penetrate = -1; projectile.extraUpdates = 1; - aiType = 555; - projectile.melee = true; + projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 3; + projectile.localNPCHitCooldown = 5; } + // localAI[1] is the shot counter. Every 5 frames, The Obliterator tries to fire a laser at a nearby target. + // It has 4 "laser ports" which whirl around in circles with the yoyo. It uses each of these in order. + // localAI[1] counts up to 19 (4 x 5 - 1), then resets back to 0 for a 20-frame cycle. public override void AI() { - int[] array = new int[20]; - int num428 = 0; - float num429 = 300f; - bool flag14 = false; - for (int num430 = 0; num430 < 200; num430++) + Lighting.AddLight(projectile.Center, 0.8f, 0.3f, 1f); + + projectile.localAI[1]++; + if (projectile.localAI[1] >= 20f) + projectile.localAI[1] = 0f; + + // Attempt to fire a laser every 5 frames + if(projectile.localAI[1] % 5f == 0f) { - if (Main.npc[num430].CanBeChasedBy(projectile, false)) + List targets = new List(); + float laserRange = 300f; + for (int i = 0; i < Main.npc.Length; ++i) { - float num431 = Main.npc[num430].position.X + Main.npc[num430].width / 2; - float num432 = Main.npc[num430].position.Y + Main.npc[num430].height / 2; - float num433 = Math.Abs(projectile.position.X + projectile.width / 2 - num431) + Math.Abs(projectile.position.Y + projectile.height / 2 - num432); - if (num433 < num429 && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num430].Center, 1, 1)) + ref NPC n = ref Main.npc[i]; + if (n is null || !n.active) + continue; + + if (n.CanBeChasedBy(projectile, false) && (n.Center - projectile.Center).Length() <= laserRange && Collision.CanHit(projectile.Center, 1, 1, n.Center, 1, 1)) { - if (num428 < 20) - { - array[num428] = num430; - num428++; - } - flag14 = true; + targets.Add(i); + // Bosses are added 5 times instead of 1 so that they are preferentially but not exclusively targeted. + if (n.boss) + for (int j = 0; j < 4; ++j) + targets.Add(i); } } - } - if (flag14) - { - int num434 = Main.rand.Next(num428); - num434 = array[num434]; - float num435 = Main.npc[num434].position.X + Main.npc[num434].width / 2; - float num436 = Main.npc[num434].position.Y + Main.npc[num434].height / 2; - projectile.localAI[0] += 1f; - if (projectile.localAI[0] > 16f) + if (targets.Count == 0) + return; + + // Pick which of the four corners the laser is spawning in + Vector2 laserSpawnPosition = projectile.Center; + Vector2 offset; + if (projectile.localAI[1] < 5f) + offset = new Vector2(7, 7); + else if (projectile.localAI[1] < 10f) + offset = new Vector2(-7, 7); + else if (projectile.localAI[1] < 15f) + offset = new Vector2(-7, -7); + else + offset = new Vector2(7, -7); + laserSpawnPosition += offset.RotatedBy(projectile.rotation); + + ref NPC target = ref Main.npc[targets[Main.rand.Next(targets.Count)]]; + const float laserSpeed = 6f; + int laserDamage = (int)(projectile.damage * 0.5f); + const float laserKB = 3f; + Vector2 velocity = target.Center - projectile.Center; + velocity = velocity.SafeNormalize(Vector2.Zero) * laserSpeed; + if (projectile.owner == Main.myPlayer) { - projectile.localAI[0] = 0f; - float num437 = 6f; - Vector2 value10 = new Vector2(projectile.position.X + projectile.width * 0.5f, projectile.position.Y + projectile.height * 0.5f); - value10 += projectile.velocity * 4f; - float num438 = num435 - value10.X; - float num439 = num436 - value10.Y; - float num440 = (float)Math.Sqrt(num438 * num438 + num439 * num439); - num440 = num437 / num440; - num438 *= num440; - num439 *= num440; - if (projectile.owner == Main.myPlayer) - { - int proj = Projectile.NewProjectile(value10.X, value10.Y, num438, num439, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Main.projectile[proj].Calamity().forceMelee = true; - } + // ai[0] = 1f for melee + int proj = Projectile.NewProjectile(laserSpawnPosition, velocity, ModContent.ProjectileType(), laserDamage, laserKB, projectile.owner, 1f, 0f); + Main.projectile[proj].Calamity().forceMelee = true; } } } + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; + } + public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) { Vector2 origin = new Vector2(10f, 10f); - spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Melee/Yoyos/TheObliteratorGlow"), projectile.Center - Main.screenPosition, null, Color.White, projectile.rotation, origin, 1f, SpriteEffects.None, 0f); + spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Melee/Yoyos/TheObliteratorGlow"), projectile.Center - Main.screenPosition, null, Color.White, projectile.rotation, origin, 2f, SpriteEffects.None, 0f); } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) From 9ce59b429fc918b37f427c5a9d5b5409071df81e Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Thu, 26 Dec 2019 01:18:01 -0500 Subject: [PATCH 23/34] fixed oracle tooltip and it makes its own light --- Items/Weapons/Melee/Oracle.cs | 2 +- Projectiles/Melee/Yoyos/OracleYoyo.cs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Melee/Oracle.cs b/Items/Weapons/Melee/Oracle.cs index bb8b341130..e974ecba00 100644 --- a/Items/Weapons/Melee/Oracle.cs +++ b/Items/Weapons/Melee/Oracle.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("The Oracle"); - Tooltip.SetDefault("Emits an aura of red lightning\nFires auric orbs when supercharged\nHitting enemies charges the yoyo\n'Gaze into the past, the present, the future... and the circumstances of your inevitable demise'"); + Tooltip.SetDefault("Emits an aura of red lightning which charges up when hitting enemies\nFires auric orbs when supercharged\nAn exceptionally agile yoyo\n'Gaze into the past, the present, the future... and the circumstances of your inevitable demise'"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Projectiles/Melee/Yoyos/OracleYoyo.cs b/Projectiles/Melee/Yoyos/OracleYoyo.cs index 4cd0e06f32..1c6c578cda 100644 --- a/Projectiles/Melee/Yoyos/OracleYoyo.cs +++ b/Projectiles/Melee/Yoyos/OracleYoyo.cs @@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override void AI() { - // Produces golden dust constantly while in flight. This lights the yoyo. + // Produces golden dust constantly while in flight. This helps light the yoyo. if (Main.rand.NextBool()) { int dustType = Main.rand.NextBool(3) ? 244 : 246; @@ -64,6 +64,9 @@ namespace CalamityMod.Projectiles.Melee.Yoyos Main.dust[idx].scale = scale; } + // The yoyo makes its own faint yellow light (unnoticeable once the lightning aura gets going) + Lighting.AddLight(projectile.Center, 0.6f, 0.42f, 0.1f); + // The aura discharges over time based on its current charge. float discharge = MinDischargeRate + 0.003f * projectile.localAI[1]; if (discharge > MaxDischargeRate) From 98e635b644bf6c0b528250002b62c9e34245daa0 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Thu, 26 Dec 2019 01:37:51 -0500 Subject: [PATCH 24/34] fixed helium flash hold position --- Items/Weapons/Magic/HeliumFlash.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Items/Weapons/Magic/HeliumFlash.cs b/Items/Weapons/Magic/HeliumFlash.cs index 6aec678d06..2a229734d9 100644 --- a/Items/Weapons/Magic/HeliumFlash.cs +++ b/Items/Weapons/Magic/HeliumFlash.cs @@ -11,9 +11,6 @@ namespace CalamityMod.Items.Weapons.Magic { public class HeliumFlash : ModItem { - public static int BaseDamage = 1280; - public static float Speed = 15f; - public override void SetStaticDefaults() { DisplayName.SetDefault("Helium Flash"); @@ -26,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.width = 76; item.height = 76; item.magic = true; - item.damage = BaseDamage; + item.damage = 1280; item.knockBack = 9.5f; item.mana = 26; item.useAnimation = 37; @@ -42,12 +39,7 @@ namespace CalamityMod.Items.Weapons.Magic item.value = Item.buyPrice(1, 80, 0, 0); item.shoot = ModContent.ProjectileType(); - item.shootSpeed = Speed; - } - - public override Vector2? HoldoutOrigin() - { - return new Vector2(15, 15); + item.shootSpeed = 15f; } // Creates dust at the tip of the staff when used. From 8ec7ad96ded9e75e380092d201365ff11fb90ebc Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Thu, 26 Dec 2019 07:17:44 -0500 Subject: [PATCH 25/34] fixed Abyss Shocker image --- Items/Weapons/Magic/AbyssShocker.png | Bin 1197 -> 3763 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Items/Weapons/Magic/AbyssShocker.png b/Items/Weapons/Magic/AbyssShocker.png index 14947281f34751f8915fa12a2ff4c42308cdb0a4..9263d1a1b3055afc08c68fac6ddbd44da99026b5 100644 GIT binary patch literal 3763 zcmV;k4ovZhP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?vuTfeY$;({XGW_huIFR9a(?@3)XSs8O^N5RyOM=TTmp(3=8^+zpz2r)C z^>JO{deZfso3oq3?Wo(Y?l$ge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type --- Items/Armor/PlagueReaperMask.cs | 2 +- Items/Armor/PlagueReaperStriders.cs | 2 +- Items/Armor/PlagueReaperVest.cs | 2 +- Projectiles/Magic/LightningArc.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Items/Armor/PlagueReaperMask.cs b/Items/Armor/PlagueReaperMask.cs index 9c99da6e57..77df8d18a0 100644 --- a/Items/Armor/PlagueReaperMask.cs +++ b/Items/Armor/PlagueReaperMask.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 30, 0, 0); item.rare = 8; - item.defense = 12; //45 + item.defense = 9; //35 } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/PlagueReaperStriders.cs b/Items/Armor/PlagueReaperStriders.cs index b8284a5238..286c290dc4 100644 --- a/Items/Armor/PlagueReaperStriders.cs +++ b/Items/Armor/PlagueReaperStriders.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 18, 0, 0); item.rare = 8; - item.defense = 15; + item.defense = 11; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/PlagueReaperVest.cs b/Items/Armor/PlagueReaperVest.cs index 8d0dfff39d..797920e71e 100644 --- a/Items/Armor/PlagueReaperVest.cs +++ b/Items/Armor/PlagueReaperVest.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor item.height = 18; item.value = Item.buyPrice(0, 24, 0, 0); item.rare = 8; - item.defense = 18; + item.defense = 14; } public override void UpdateEquip(Player player) diff --git a/Projectiles/Magic/LightningArc.cs b/Projectiles/Magic/LightningArc.cs index 31a88a1442..3b4878e272 100644 --- a/Projectiles/Magic/LightningArc.cs +++ b/Projectiles/Magic/LightningArc.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Projectiles.Magic projectile.friendly = true; projectile.tileCollide = false; projectile.ignoreWater = true; - projectile.ranged = true; + projectile.magic = true; projectile.timeLeft = 20; projectile.penetrate = 6; projectile.tileCollide = true; From 0ef10ef454e6d875c04f243f61c691ea7fbcb72f Mon Sep 17 00:00:00 2001 From: AlterraKira Date: Thu, 26 Dec 2019 16:50:10 +0000 Subject: [PATCH 27/34] Shock Grenades --- Buffs/CalamityGlobalBuff.cs | 9 +- Items/Weapons/Rogue/ShockGrenade.cs | 69 +++++++++ Items/Weapons/Rogue/ShockGrenade.png | Bin 0 -> 367 bytes Items/Weapons/Rogue/ShockGrenadeGlow.png | Bin 0 -> 172 bytes NPCs/CalamityGlobalNPC.cs | 23 +++ NPCs/CalamityGlobalNPCLoot.cs | 12 ++ Projectiles/Rogue/ShockGrenadeBolt.cs | 121 ++++++++++++++++ Projectiles/Rogue/ShockGrenadeBolt.png | Bin 0 -> 352 bytes Projectiles/Rogue/ShockGrenadeBolt2.png | Bin 0 -> 269 bytes Projectiles/Rogue/ShockGrenadeExplosion.cs | 77 ++++++++++ Projectiles/Rogue/ShockGrenadeExplosion.png | Bin 0 -> 1139 bytes Projectiles/Rogue/ShockGrenadeProjectile.cs | 133 +++++++++++++++++ Projectiles/Rogue/ShockGrenadeProjectile.png | Bin 0 -> 367 bytes .../Rogue/ShockGrenadeProjectileGlow.png | Bin 0 -> 172 bytes Projectiles/Rogue/ShockTeslaAura.cs | 137 ++++++++++++++++++ Projectiles/Rogue/ShockTeslaAura.png | Bin 0 -> 49281 bytes 16 files changed, 579 insertions(+), 2 deletions(-) create mode 100644 Items/Weapons/Rogue/ShockGrenade.cs create mode 100644 Items/Weapons/Rogue/ShockGrenade.png create mode 100644 Items/Weapons/Rogue/ShockGrenadeGlow.png create mode 100644 Projectiles/Rogue/ShockGrenadeBolt.cs create mode 100644 Projectiles/Rogue/ShockGrenadeBolt.png create mode 100644 Projectiles/Rogue/ShockGrenadeBolt2.png create mode 100644 Projectiles/Rogue/ShockGrenadeExplosion.cs create mode 100644 Projectiles/Rogue/ShockGrenadeExplosion.png create mode 100644 Projectiles/Rogue/ShockGrenadeProjectile.cs create mode 100644 Projectiles/Rogue/ShockGrenadeProjectile.png create mode 100644 Projectiles/Rogue/ShockGrenadeProjectileGlow.png create mode 100644 Projectiles/Rogue/ShockTeslaAura.cs create mode 100644 Projectiles/Rogue/ShockTeslaAura.png diff --git a/Buffs/CalamityGlobalBuff.cs b/Buffs/CalamityGlobalBuff.cs index 0d504b4f9f..f9bd94077a 100644 --- a/Buffs/CalamityGlobalBuff.cs +++ b/Buffs/CalamityGlobalBuff.cs @@ -59,9 +59,14 @@ namespace CalamityMod.Buffs else if (type == BuffID.Slow) { if (npc.Calamity().slowed < npc.buffTime[buffIndex]) - { npc.Calamity().slowed = npc.buffTime[buffIndex]; - } + npc.DelBuff(buffIndex); + buffIndex--; + } + if (type == BuffID.Electrified) + { + if (npc.Calamity().electrified < npc.buffTime[buffIndex]) + npc.Calamity().electrified = npc.buffTime[buffIndex]; npc.DelBuff(buffIndex); buffIndex--; } diff --git a/Items/Weapons/Rogue/ShockGrenade.cs b/Items/Weapons/Rogue/ShockGrenade.cs new file mode 100644 index 0000000000..3d44ae0a60 --- /dev/null +++ b/Items/Weapons/Rogue/ShockGrenade.cs @@ -0,0 +1,69 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Projectiles.Rogue; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons.Rogue +{ + public class ShockGrenade : RogueWeapon + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Shock Grenade"); + Tooltip.SetDefault("Throws a grenade that explodes into a burst of lightning\n" + + "Stealth strikes cause the grenade to leave an electrifying aura when it explodes"); + } + + public override void SafeSetDefaults() + { + item.width = 14; + item.damage = 100; + item.noMelee = true; + item.noUseGraphic = true; + item.consumable = true; + item.useAnimation = 18; + item.useStyle = 1; + item.useTime = 18; + item.knockBack = 1f; + item.autoReuse = true; + item.height = 30; + item.maxStack = 999; + item.value = Item.buyPrice(0, 1, 0, 0); + item.rare = 8; + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 7.5f; + item.Calamity().rogue = true; + } + + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + if (player.Calamity().StealthStrikeAvailable()) + { + int p = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 0f); + Main.projectile[p].Calamity().stealthStrike = true; + return false; + } + return true; + } + + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Vector2 origin = new Vector2(item.width / 2, item.height / 2); + spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/Weapons/Rogue/ShockGrenadeGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.Grenade, 10); + recipe.AddIngredient(ItemID.MartianConduitPlating, 2); + recipe.AddIngredient(ItemID.Nanites, 1); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(this, 10); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Weapons/Rogue/ShockGrenade.png b/Items/Weapons/Rogue/ShockGrenade.png new file mode 100644 index 0000000000000000000000000000000000000000..9d72d6d1f6afc6aad63ae78cadeb8991a90fa18e GIT binary patch literal 367 zcmV-#0g(QQP)9#<&+kf>JsR^t#^lMmzU9^+fJg=kp-t7 za0Yhe9O2Cn?O&Ww!N72{U9k1jg$pu3~-Y OEQ6=3pUXO@geCxES2=h9 literal 0 HcmV?d00001 diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 183c4cfc2b..b475af11dc 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -98,6 +98,7 @@ namespace CalamityMod.NPCs public int silvaStun = 0; public int webbed = 0; public int slowed = 0; + public int electrified = 0; public int yellowCandle = 0; public int pearlAura = 0; public int wCleave = 0; @@ -544,6 +545,10 @@ namespace CalamityMod.NPCs ApplyDPSDebuff(dFlames, 2500, 500, ref npc.lifeRegen, ref damage); ApplyDPSDebuff(bBlood, 50, 10, ref npc.lifeRegen, ref damage); ApplyDPSDebuff(sulphurPoison, 180, 36, ref npc.lifeRegen, ref damage); + if (npc.velocity.X == 0) + ApplyDPSDebuff(electrified, 4, 2, ref npc.lifeRegen, ref damage); + else + ApplyDPSDebuff(electrified, 16, 16, ref npc.lifeRegen, ref damage); } public void ApplyDPSDebuff(int debuff, int lifeRegenValue, int damageValue, ref int lifeRegen, ref int damage) @@ -611,6 +616,7 @@ namespace CalamityMod.NPCs npc.buffImmune[ModContent.BuffType()] = true; npc.buffImmune[BuffID.Webbed] = true; npc.buffImmune[BuffID.Slow] = true; + npc.buffImmune[BuffID.Electrified] = true; } if (DestroyerIDs.Contains(npc.type) || npc.type == NPCID.DD2EterniaCrystal || npc.townNPC) @@ -2121,6 +2127,8 @@ namespace CalamityMod.NPCs webbed--; if (slowed > 0) slowed--; + if (electrified > 0) + electrified--; if (yellowCandle > 0) yellowCandle--; if (pearlAura > 0) @@ -3189,6 +3197,21 @@ namespace CalamityMod.NPCs } } } + if (electrified > 0) + { + if (Main.rand.Next(5) < 4) + { + int dust = Dust.NewDust(npc.position - new Vector2(2f, 2f), npc.width + 4, npc.height + 4, 132, npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 0, default, 1f); + Main.dust[dust].noGravity = true; + Main.dust[dust].velocity *= 1.1f; + Main.dust[dust].velocity.Y += 0.25f; + if (Main.rand.NextBool(2)) + { + Main.dust[dust].noGravity = false; + Main.dust[dust].scale *= 0.5f; + } + } + } if (gState > 0 || eFreeze > 0) { diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index b91f7e069a..49b7344778 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1667,6 +1667,18 @@ namespace CalamityMod.NPCs DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedBuffedMothron, Main.expertMode ? 0.06f : 0.04f, 1, 1); break; + case NPCID.MartianOfficer: + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 3 : 4, 3, 8); + break; + case NPCID.BrainScrambler: + case NPCID.GrayGrunt: + case NPCID.GigaZapper: + case NPCID.MartianEngineer: + case NPCID.RayGunner: + case NPCID.ScutlixRider: + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 4 : 5, 1, 4); + break; + default: break; } diff --git a/Projectiles/Rogue/ShockGrenadeBolt.cs b/Projectiles/Rogue/ShockGrenadeBolt.cs new file mode 100644 index 0000000000..de530a3594 --- /dev/null +++ b/Projectiles/Rogue/ShockGrenadeBolt.cs @@ -0,0 +1,121 @@ +using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using System.Collections.Generic; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Rogue +{ + public class ShockGrenadeBolt : ModProjectile + { + public static int frameWidth = 12; + public static int frameHeight = 26; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Bolt"); + Main.projFrames[projectile.type] = 4; + } + + public override void SetDefaults() + { + projectile.width = 10; + projectile.height = 10; + projectile.friendly = true; + projectile.tileCollide = false; + projectile.penetrate = 3; + projectile.timeLeft = 120; + projectile.Calamity().rogue = true; + } + + public override void AI() + { + projectile.frameCounter++; + if (projectile.frameCounter > 6) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame >= Main.projFrames[projectile.type]) + { + projectile.frame = 0; + } + + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; + + if (projectile.timeLeft < 55) + { + projectile.tileCollide = true; + } + + if (projectile.ai[1] == 1f) + { + float minDist = 999f; + int index = 0; + for (int i = 0; i < Main.npc.Length; i++) + { + NPC npc = Main.npc[i]; + if (!npc.friendly && !npc.townNPC && npc.active && !npc.dontTakeDamage && npc.chaseable) + { + float dist = (projectile.Center - npc.Center).Length(); + if (dist < minDist) + { + minDist = dist; + index = i; + } + } + } + + Vector2 velocityNew; + if (minDist < 999f) + { + velocityNew = Main.npc[index].Center - projectile.Center; + velocityNew.Normalize(); + velocityNew *= 2f; + projectile.velocity += velocityNew; + if (projectile.velocity.Length() > 10f) + { + projectile.velocity.Normalize(); + projectile.velocity *= 10f; + } + } + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(BuffID.Electrified, 180); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D sprite; + if (projectile.ai[0] == 0f) + sprite = ModContent.GetTexture("CalamityMod/Projectiles/Rogue/ShockGrenadeBolt"); + else + sprite = ModContent.GetTexture("CalamityMod/Projectiles/Rogue/ShockGrenadeBolt2"); + Color drawColour = Color.White; + + Vector2 origin = new Vector2(frameWidth / 2, frameHeight / 2); + spriteBatch.Draw(sprite, projectile.Center - Main.screenPosition, new Rectangle(0, frameHeight * projectile.frame, frameWidth, frameHeight), drawColour, projectile.rotation, origin, 1f, SpriteEffects.None, 0f); + return false; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 93, 0.25f, 0f); + + for (int i = 0; i < 5; i++) + { + int dustType = 132; + int dust = Dust.NewDust(projectile.Center, 1, 1, dustType, projectile.velocity.X, projectile.velocity.Y, 0, default, 0.5f); + Main.dust[dust].noGravity = true; + } + } + } +} diff --git a/Projectiles/Rogue/ShockGrenadeBolt.png b/Projectiles/Rogue/ShockGrenadeBolt.png new file mode 100644 index 0000000000000000000000000000000000000000..4852045f469547e165f3199802f3f1b0f495dd95 GIT binary patch literal 352 zcmV-m0iXVfP)sE6B&@x9hWvLLmX}INhFL>BgI(q;?W~_+-<|MXV4ZPPx#$4Nv%R9J=WmQf0TAP_`1=>S4RbpOLeMBoXkpA_2KEL}xv-(S(rVA?bQe_$F` zn1= 8) + { + for (int i = 0; i < 50; i++) + { + int dustType = 132; + if (Main.rand.NextBool()) + { + dustType = 264; + } + + Vector2 dustVelocity = new Vector2(Main.rand.NextFloat(-1, 1), Main.rand.NextFloat(-1, 1)); + dustVelocity.Normalize(); + dustVelocity *= 8; + + int dust = Dust.NewDust(projectile.Center, 1, 1, dustType, dustVelocity.X, dustVelocity.Y, 0, default, 0.75f); + Main.dust[dust].noGravity = true; + } + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(BuffID.Electrified, 300); + } + + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + float dist1 = Vector2.Distance(projectile.Center, targetHitbox.TopLeft()); + float dist2 = Vector2.Distance(projectile.Center, targetHitbox.TopRight()); + float dist3 = Vector2.Distance(projectile.Center, targetHitbox.BottomLeft()); + float dist4 = Vector2.Distance(projectile.Center, targetHitbox.BottomRight()); + + float minDist = dist1; + if (dist2 < minDist) + minDist = dist2; + if (dist3 < minDist) + minDist = dist3; + if (dist4 < minDist) + minDist = dist4; + + return minDist <= radius; + } + } +} diff --git a/Projectiles/Rogue/ShockGrenadeExplosion.png b/Projectiles/Rogue/ShockGrenadeExplosion.png new file mode 100644 index 0000000000000000000000000000000000000000..d86a683fca67fa909a296b391df87ade0ed0781d GIT binary patch literal 1139 zcmeAS@N?(olHy`uVBq!ia0y~yU~~Xs4mP03*$GQm0V&4fAa^H*b?0PWGBB{{db&7< zRLpsM#gLIff#-n1f&I@Flih_`_g1ApV-VTuTa ek(n31GKS7!t>xJyYXU4q7(8A5T-G@yGywpurX`vH literal 0 HcmV?d00001 diff --git a/Projectiles/Rogue/ShockGrenadeProjectile.cs b/Projectiles/Rogue/ShockGrenadeProjectile.cs new file mode 100644 index 0000000000..c258d532a1 --- /dev/null +++ b/Projectiles/Rogue/ShockGrenadeProjectile.cs @@ -0,0 +1,133 @@ +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Projectiles.Typeless; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Rogue +{ + public class ShockGrenadeProjectile : ModProjectile + { + public static int spriteWidth = 14; + public static int spriteHeight = 30; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Shock Grenade"); + } + + public override void SetDefaults() + { + projectile.width = 10; + projectile.height = 10; + projectile.friendly = true; + projectile.penetrate = 1; + projectile.timeLeft = 180; + projectile.Calamity().rogue = true; + } + + public override void AI() + { + projectile.velocity.Y += 0.1f; + if (projectile.velocity.Y >= 16f) + { + projectile.velocity.Y = 16f; + } + + projectile.rotation += projectile.direction * 0.2f; + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); + + projectile.localAI[0] = 0; + projectile.localAI[1] = 0; + + if (projectile.velocity.X != oldVelocity.X) + { + if (oldVelocity.X < 0) + { + projectile.localAI[0] = 1; + } + if (oldVelocity.X > 0) + { + projectile.localAI[0] = -1; + } + } + if (projectile.velocity.Y != oldVelocity.Y) + { + if (oldVelocity.Y < 0) + { + projectile.localAI[1] = 1; + } + if (oldVelocity.Y > 0) + { + projectile.localAI[1] = -1; + } + } + projectile.Kill(); + return false; + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) + { + Vector2 origin = new Vector2(spriteWidth / 2, spriteHeight / 2); + spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Rogue/ShockGrenadeProjectileGlow"), projectile.Center - Main.screenPosition, null, Color.White, projectile.rotation, origin, 1f, SpriteEffects.None, 0f); + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 94, 0.75f, 0f); + + int boltCount = Main.rand.Next(5, 11); + for (int i = 0; i < boltCount; i++) + { + int boltScatter = 1; + Vector2 boltVelocity = new Vector2(Main.rand.NextFloat(-boltScatter, boltScatter), Main.rand.NextFloat(-boltScatter * 2, boltScatter * 2)); + if (projectile.localAI[0] != 0) + { + boltVelocity.X *= -1; + } + if (projectile.localAI[1] != 0) + { + boltVelocity.Y *= -1; + } + boltVelocity.X += projectile.localAI[0]; + boltVelocity.Y += projectile.localAI[1] * 2; + boltVelocity.Normalize(); + boltVelocity *= 10; + + int boltType = Main.rand.Next(0, 2); + int boltDamage = projectile.damage / 2; + + int boltAI = 0; + if (projectile.Calamity().stealthStrike) + { + boltAI = 1; + } + + Projectile.NewProjectile(projectile.Center, boltVelocity, ModContent.ProjectileType(), boltDamage, 0, projectile.owner, boltType, boltAI); + } + + if (projectile.Calamity().stealthStrike) + { + int auraDamage = projectile.damage / 4; + Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), auraDamage, 1, projectile.owner, 0, 0); + + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 93, 0.5f, 0f); + } + Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, 3, projectile.owner, 0, 0); + } + } +} diff --git a/Projectiles/Rogue/ShockGrenadeProjectile.png b/Projectiles/Rogue/ShockGrenadeProjectile.png new file mode 100644 index 0000000000000000000000000000000000000000..9d72d6d1f6afc6aad63ae78cadeb8991a90fa18e GIT binary patch literal 367 zcmV-#0g(QQP)9#<&+kf>JsR^t#^lMmzU9^+fJg=kp-t7 za0Yhe9O2Cn?O&Ww!N72{U9k1jg$pu3~-Y OEQ6=3pUXO@geCxES2=h9 literal 0 HcmV?d00001 diff --git a/Projectiles/Rogue/ShockTeslaAura.cs b/Projectiles/Rogue/ShockTeslaAura.cs new file mode 100644 index 0000000000..a3796bdc72 --- /dev/null +++ b/Projectiles/Rogue/ShockTeslaAura.cs @@ -0,0 +1,137 @@ + +using CalamityMod.NPCs; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Projectiles.Rogue +{ + public class ShockTeslaAura : ModProjectile + { + private const float radius = 98f; + private const int lifetime = 240; + private const int framesX = 3; + private const int framesY = 6; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Electrifying Aura"); + } + + public override void SetDefaults() + { + projectile.width = 218; + projectile.height = 218; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.tileCollide = false; + projectile.penetrate = -1; + projectile.timeLeft = lifetime; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 20; + projectile.Calamity().rogue = true; + } + + public override void AI() + { + projectile.frameCounter++; + if (projectile.frameCounter > 3) + { + projectile.localAI[0]++; + projectile.frameCounter = 0; + } + if (projectile.localAI[0] >= framesY) + { + projectile.localAI[0] = 0; + projectile.localAI[1]++; + } + if (projectile.localAI[1] >= framesX) + { + projectile.localAI[1] = 0; + } + + Player player = Main.player[Main.myPlayer]; + Vector2 posDiff = player.Center - projectile.Center; + if (posDiff.Length() <= radius) + { + player.statDefense += 6; + player.lifeRegen += 2; + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D sprite = Main.projectileTexture[projectile.type]; + + Color drawColour = Color.White; + Rectangle sourceRect = new Rectangle(projectile.width * (int)projectile.localAI[1], projectile.height * (int)projectile.localAI[0], projectile.width, projectile.height); + Vector2 origin = new Vector2(projectile.width / 2, projectile.height / 2); + + float opacity = 1f; + int sparkCount = 0; + int fadeTime = 20; + + if (projectile.timeLeft < fadeTime) + { + opacity = projectile.timeLeft * (1f / fadeTime); + sparkCount = fadeTime - projectile.timeLeft; + } + + for (int i = 0; i < sparkCount * 2; i++) + { + int dustType = 132; + if (Main.rand.NextBool()) + { + dustType = 264; + } + float rangeDiff = 2f; + + Vector2 dustPos = new Vector2(Main.rand.NextFloat(-1, 1), Main.rand.NextFloat(-1, 1)); + dustPos.Normalize(); + dustPos *= radius + Main.rand.NextFloat(-rangeDiff, rangeDiff); + + int dust = Dust.NewDust(projectile.Center + dustPos, 1, 1, dustType, 0, 0, 0, default, 0.75f); + Main.dust[dust].noGravity = true; + } + + spriteBatch.Draw(sprite, projectile.Center - Main.screenPosition, sourceRect, drawColour * opacity, projectile.rotation, origin, 1f, SpriteEffects.None, 0f); + return false; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + if (CalamityGlobalNPC.ShouldAffectNPC(target)) + { + float knockbackMultiplier = knockback - target.knockBackResist; + if (knockbackMultiplier < 0) + { + knockbackMultiplier = 0; + } + Vector2 trueKnockback = target.Center - projectile.Center; + trueKnockback.Normalize(); + target.velocity = trueKnockback * knockbackMultiplier; + } + + target.AddBuff(BuffID.Electrified, 300); + } + + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + float dist1 = Vector2.Distance(projectile.Center, targetHitbox.TopLeft()); + float dist2 = Vector2.Distance(projectile.Center, targetHitbox.TopRight()); + float dist3 = Vector2.Distance(projectile.Center, targetHitbox.BottomLeft()); + float dist4 = Vector2.Distance(projectile.Center, targetHitbox.BottomRight()); + + float minDist = dist1; + if (dist2 < minDist) + minDist = dist2; + if (dist3 < minDist) + minDist = dist3; + if (dist4 < minDist) + minDist = dist4; + + return minDist <= radius; + } + } +} diff --git a/Projectiles/Rogue/ShockTeslaAura.png b/Projectiles/Rogue/ShockTeslaAura.png new file mode 100644 index 0000000000000000000000000000000000000000..d8e87ce805609f9df1d4ea34228e9ebb7621c725 GIT binary patch literal 49281 zcma%jXH-*L)NLq&1+XhZ0KF(EMXErg=~ci2C@Q@R7($0gugbL>Kza#ql_p&XMQ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{4-MOeXHC7|d+gU4Hq-z~1@j_LZh#*_8&W zQ;n3L^-V95^_7RV5mI1U6 z6f6bG%*vxsD36_hm>JkLAHo`_Ax$!kbl(4_a98c&4(UD1XSKdOkU4SX4sadx+zQ;1 zeqaNQU0nbwO{2020b{#FR#H=#8cQo6qx4!&2E}QGzZOAPYz|5-U>E3dYMWXk^6bTM z8$5sDF(m`0&}B2gW{c5*4L2CAcY!uM8%it~dOwcZwQS^ literal 0 HcmV?d00001 From bf9be3547375a763f747adb6bf043c70b5d86668 Mon Sep 17 00:00:00 2001 From: Shucks Date: Thu, 26 Dec 2019 14:02:28 -0600 Subject: [PATCH 28/34] YOU CANT HIDE NOW, JACK --- Projectiles/Typeless/NanoFlare.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Projectiles/Typeless/NanoFlare.cs b/Projectiles/Typeless/NanoFlare.cs index 416c024db0..6b2e5521ca 100644 --- a/Projectiles/Typeless/NanoFlare.cs +++ b/Projectiles/Typeless/NanoFlare.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Projectiles.Typeless projectile.height = 12; projectile.friendly = true; projectile.ignoreWater = true; + projectile.tileCollide = false; projectile.extraUpdates = 10; projectile.timeLeft = 60; } From ccaead32f6d11e56cbad6783d49aeedf379875cf Mon Sep 17 00:00:00 2001 From: Shucks Date: Thu, 26 Dec 2019 21:34:33 -0600 Subject: [PATCH 29/34] Yharon moments --- Items/Weapons/Melee/EmpyreanKnives.cs | 2 +- Items/Weapons/Melee/GreatswordofBlah.cs | 2 +- Items/Weapons/Melee/Nadir.cs | 2 +- Items/Weapons/Melee/ScourgeoftheCosmos.cs | 2 +- Items/Weapons/Ranged/GreatbowofTurmoil.cs | 2 +- Items/Weapons/Rogue/EmpyreanKnivesThrown.cs | 2 +- Items/Weapons/Rogue/ExecutionersBlade.cs | 2 +- Items/Weapons/Rogue/ProfanedTrident.cs | 2 +- Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Items/Weapons/Melee/EmpyreanKnives.cs b/Items/Weapons/Melee/EmpyreanKnives.cs index c11d26028b..eaf40852c1 100644 --- a/Items/Weapons/Melee/EmpyreanKnives.cs +++ b/Items/Weapons/Melee/EmpyreanKnives.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 18; - item.damage = 1100; + item.damage = 600; item.melee = true; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/GreatswordofBlah.cs b/Items/Weapons/Melee/GreatswordofBlah.cs index ddf1ab965d..134891cf55 100644 --- a/Items/Weapons/Melee/GreatswordofBlah.cs +++ b/Items/Weapons/Melee/GreatswordofBlah.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 110; - item.damage = 480; + item.damage = 300; item.melee = true; item.useAnimation = 18; item.useStyle = 1; diff --git a/Items/Weapons/Melee/Nadir.cs b/Items/Weapons/Melee/Nadir.cs index 4c01a6ac4d..9f6fc0a9f1 100644 --- a/Items/Weapons/Melee/Nadir.cs +++ b/Items/Weapons/Melee/Nadir.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Weapons.Melee { public class Nadir : ModItem { - public static int BaseDamage = 1100; + public static int BaseDamage = 800; public static float ShootSpeed = 12f; public override void SetStaticDefaults() diff --git a/Items/Weapons/Melee/ScourgeoftheCosmos.cs b/Items/Weapons/Melee/ScourgeoftheCosmos.cs index ed48938afc..0467808069 100644 --- a/Items/Weapons/Melee/ScourgeoftheCosmos.cs +++ b/Items/Weapons/Melee/ScourgeoftheCosmos.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 18; - item.damage = 1950; + item.damage = 1550; item.melee = true; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Ranged/GreatbowofTurmoil.cs b/Items/Weapons/Ranged/GreatbowofTurmoil.cs index 313efab401..bcefb0140b 100644 --- a/Items/Weapons/Ranged/GreatbowofTurmoil.cs +++ b/Items/Weapons/Ranged/GreatbowofTurmoil.cs @@ -73,7 +73,7 @@ namespace CalamityMod.Items.Weapons.Ranged default: break; } - int index = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f); + int index = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, (int)(damage * 0.5f), knockBack, player.whoAmI, 0f, 0f); Main.projectile[index].noDropItem = true; } return false; diff --git a/Items/Weapons/Rogue/EmpyreanKnivesThrown.cs b/Items/Weapons/Rogue/EmpyreanKnivesThrown.cs index 09401b0638..f4351d3219 100644 --- a/Items/Weapons/Rogue/EmpyreanKnivesThrown.cs +++ b/Items/Weapons/Rogue/EmpyreanKnivesThrown.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SafeSetDefaults() { item.width = 18; - item.damage = 1100; + item.damage = 600; item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 15; diff --git a/Items/Weapons/Rogue/ExecutionersBlade.cs b/Items/Weapons/Rogue/ExecutionersBlade.cs index 2cae553eb0..da370fbf90 100644 --- a/Items/Weapons/Rogue/ExecutionersBlade.cs +++ b/Items/Weapons/Rogue/ExecutionersBlade.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SafeSetDefaults() { item.width = 64; - item.damage = 475; + item.damage = 420; item.noMelee = true; item.noUseGraphic = true; item.useTime = 3; diff --git a/Items/Weapons/Rogue/ProfanedTrident.cs b/Items/Weapons/Rogue/ProfanedTrident.cs index 427f2f9968..b7481dff91 100644 --- a/Items/Weapons/Rogue/ProfanedTrident.cs +++ b/Items/Weapons/Rogue/ProfanedTrident.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SafeSetDefaults() { item.width = 72; - item.damage = 1500; + item.damage = 1000; item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 13; diff --git a/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs b/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs index 868699dcb8..05ef663de7 100644 --- a/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs +++ b/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SafeSetDefaults() { item.width = 18; - item.damage = 1950; + item.damage = 1550; item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 20; From 2fcd2969fca2c3ee7557da28aac9d1ed459640be Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Thu, 26 Dec 2019 22:46:41 -0500 Subject: [PATCH 30/34] weapon balancing --- CalPlayer/CalamityPlayer.cs | 12 ++++++++++-- Items/Weapons/Melee/DragonPow.cs | 2 +- Items/Weapons/Summon/WulfrumController.cs | 2 +- Projectiles/Summon/WulfrumDroid.cs | 2 ++ 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index f6c3061d4e..33e1f4a1b6 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -475,6 +475,8 @@ namespace CalamityMod.CalPlayer public bool umbraphileSet = false; public bool reaverBlast = false; public bool reaverBurst = false; + //public bool fathomSwarmer = false; + //public bool fathomSwarmerVisage = false; public bool astralStarRain = false; public int astralStarRainCooldown = 0; public bool plagueReaper = false; @@ -1130,6 +1132,8 @@ namespace CalamityMod.CalPlayer umbraphileSet = false; plagueReaper = false; + //fathomSwarmer = false; + //fathomSwarmerVisage = false; tarraSet = false; tarraMelee = false; @@ -1575,6 +1579,8 @@ namespace CalamityMod.CalPlayer umbraphileSet = false; reaverBlast = false; reaverBurst = false; + //fathomSwarmer = false; + //fathomSwarmerVisage = false; astralStarRain = false; plagueReaper = false; plagueReaperCooldown = 0; @@ -3174,14 +3180,16 @@ namespace CalamityMod.CalPlayer (player.arcticDivingGear ? 1 : 0) + //3 (jellyfishNecklace ? 1 : 0) + //4 ((player.blueFairy || player.greenFairy || player.redFairy || player.petFlagDD2Ghost || babyGhostBell) ? 2 : 0) + //6 - ((shine || lumenousAmulet) ? 2 : 0) + //8 - ((player.wisp || player.suspiciouslookingTentacle || sirenPet) ? 3 : 0); //11 + //(fathomSwarmerVisage ? 1 : 0) + //8 + ((shine || lumenousAmulet) ? 2 : 0) + //10 + ((player.wisp || player.suspiciouslookingTentacle || sirenPet) ? 3 : 0); //13 double breathLossMult = 1.0 - (player.gills ? 0.2 : 0.0) - //0.8 (player.accDivingHelm ? 0.25 : 0.0) - //0.75 (player.arcticDivingGear ? 0.25 : 0.0) - //0.75 (aquaticEmblem ? 0.25 : 0.0) - //0.75 + //(fathomSwarmerVisage ? 0.25 : 0.0) - //0.75 (player.accMerman ? 0.3 : 0.0) - //0.7 (victideSet ? 0.2 : 0.0) - //0.85 (((sirenBoobs || sirenBoobsAlt) && NPC.downedBoss3) ? 0.3 : 0.0) - //0.7 diff --git a/Items/Weapons/Melee/DragonPow.cs b/Items/Weapons/Melee/DragonPow.cs index 44e391521e..90d2811c54 100644 --- a/Items/Weapons/Melee/DragonPow.cs +++ b/Items/Weapons/Melee/DragonPow.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Melee { public class DragonPow : ModItem { - public static int BaseDamage = 11800; + public static int BaseDamage = 7670; public static float Speed = 13f; public static float ReturnSpeed = 20f; public static float SparkSpeed = 0.6f; diff --git a/Items/Weapons/Summon/WulfrumController.cs b/Items/Weapons/Summon/WulfrumController.cs index 19965b6418..04101457b6 100644 --- a/Items/Weapons/Summon/WulfrumController.cs +++ b/Items/Weapons/Summon/WulfrumController.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - item.damage = 6; + item.damage = 10; item.mana = 10; item.width = 28; item.height = 20; diff --git a/Projectiles/Summon/WulfrumDroid.cs b/Projectiles/Summon/WulfrumDroid.cs index 5d2d0df66d..64c5bdbcbb 100644 --- a/Projectiles/Summon/WulfrumDroid.cs +++ b/Projectiles/Summon/WulfrumDroid.cs @@ -225,6 +225,8 @@ namespace CalamityMod.Projectiles.Summon int bolt = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vec2.X, vec2.Y, ModContent.ProjectileType(), projectile.damage, 0.0f, Main.myPlayer, 0.0f, 0.0f); Main.projectile[bolt].Calamity().forceMinion = true; Main.projectile[bolt].netUpdate = true; + Main.projectile[bolt].penetrate = 1; + Main.projectile[bolt].extraUpdates = 1; projectile.netUpdate = true; } From ca41af8ac049780feb5d5fab3bae60e39514c3b3 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Thu, 26 Dec 2019 23:38:35 -0500 Subject: [PATCH 31/34] slightly nerfed obliterator speed --- Projectiles/Melee/Yoyos/TheObliteratorYoyo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Melee/Yoyos/TheObliteratorYoyo.cs b/Projectiles/Melee/Yoyos/TheObliteratorYoyo.cs index e7f36fd78b..0793e3b162 100644 --- a/Projectiles/Melee/Yoyos/TheObliteratorYoyo.cs +++ b/Projectiles/Melee/Yoyos/TheObliteratorYoyo.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos DisplayName.SetDefault("The Obliterator"); ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f; ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 580f; - ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 22f; + ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 20f; ProjectileID.Sets.TrailCacheLength[projectile.type] = 8; ProjectileID.Sets.TrailingMode[projectile.type] = 1; From 72597dcc855a61b500fdde42cae987fc65674055 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Thu, 26 Dec 2019 23:48:12 -0500 Subject: [PATCH 32/34] more balancing stuff and storm weaver boss checklist pic --- CalamityMod.cs | 6 ++++-- Items/Weapons/Magic/AbyssShocker.cs | 2 +- Items/Weapons/Rogue/BurningStrife.cs | 9 +++++++-- ModSupport/WeakReferenceSupport.cs | 3 ++- NPCs/StormWeaver/StormWeaverBodyNaked.cs | 5 +++++ NPCs/StormWeaver/StormWeaverHeadNaked.cs | 5 +++++ NPCs/StormWeaver/StormWeaverTailNaked.cs | 5 +++++ NPCs/StormWeaver/StormWeaver_BossChecklist.png | Bin 0 -> 5106 bytes Projectiles/Magic/LightningArc.cs | 2 +- 9 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 NPCs/StormWeaver/StormWeaver_BossChecklist.png diff --git a/CalamityMod.cs b/CalamityMod.cs index e98998037d..dde896fbb5 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -1968,7 +1968,8 @@ namespace CalamityMod ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), - ModContent.ItemType() + ModContent.ItemType(), + ModContent.ItemType() }; flaskBombProjList = new List() @@ -1983,7 +1984,8 @@ namespace CalamityMod ModContent.ProjectileType(), ModContent.ProjectileType(), ModContent.ProjectileType(), - ModContent.ProjectileType() + ModContent.ProjectileType(), + ModContent.ProjectileType() }; spikyBallList = new List() diff --git a/Items/Weapons/Magic/AbyssShocker.cs b/Items/Weapons/Magic/AbyssShocker.cs index e3841fea11..094fea7b29 100644 --- a/Items/Weapons/Magic/AbyssShocker.cs +++ b/Items/Weapons/Magic/AbyssShocker.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - item.damage = 15; + item.damage = 24; item.noMelee = true; item.magic = true; item.channel = true; diff --git a/Items/Weapons/Rogue/BurningStrife.cs b/Items/Weapons/Rogue/BurningStrife.cs index 27d40f4890..7d44b2cec1 100644 --- a/Items/Weapons/Rogue/BurningStrife.cs +++ b/Items/Weapons/Rogue/BurningStrife.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.useAnimation = 25; item.useTime = 25; - item.damage = 50; + item.damage = 60; item.crit = 8; item.shootSpeed = 8f; item.shoot = ModContent.ProjectileType(); @@ -40,7 +40,12 @@ namespace CalamityMod.Items.Weapons.Rogue public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI); + float speedMult = 1f; + if (player.Calamity().StealthStrikeAvailable()) + { + speedMult = 1.25f; + } + int proj = Projectile.NewProjectile(position, new Vector2(speedX * speedMult, speedY * speedMult), ModContent.ProjectileType(), damage, knockBack, player.whoAmI); if (player.Calamity().StealthStrikeAvailable()) { Main.projectile[proj].Calamity().stealthStrike = true; diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index a3e9c73d60..0a0b066222 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -374,7 +374,8 @@ namespace CalamityMod new List() {ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ItemID.SuperHealingPotion}, "Use a [i:" + ModContent.ItemType() + "] in Space", - "[c/EE82EE:Storm Weaver hid itself once again within the stormfront.]"); + "[c/EE82EE:Storm Weaver hid itself once again within the stormfront.]", + "CalamityMod/NPCs/StormWeaver/StormWeaver_BossChecklist"); //Signus bossChecklist.Call( diff --git a/NPCs/StormWeaver/StormWeaverBodyNaked.cs b/NPCs/StormWeaver/StormWeaverBodyNaked.cs index 470bba8656..a0e43df825 100644 --- a/NPCs/StormWeaver/StormWeaverBodyNaked.cs +++ b/NPCs/StormWeaver/StormWeaverBodyNaked.cs @@ -1,4 +1,5 @@ using CalamityMod.World; +using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; @@ -257,6 +258,10 @@ namespace CalamityMod.NPCs.StormWeaver { damage /= projectile.penetrate; } + if (projectile.type == ModContent.ProjectileType()) + { + damage /= 2; + } } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/StormWeaver/StormWeaverHeadNaked.cs b/NPCs/StormWeaver/StormWeaverHeadNaked.cs index 344bfca599..5b0b2722b0 100644 --- a/NPCs/StormWeaver/StormWeaverHeadNaked.cs +++ b/NPCs/StormWeaver/StormWeaverHeadNaked.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.World; +using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; @@ -553,6 +554,10 @@ namespace CalamityMod.NPCs.StormWeaver { damage /= projectile.penetrate; } + if (projectile.type == ModContent.ProjectileType()) + { + damage /= 2; + } } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/StormWeaver/StormWeaverTailNaked.cs b/NPCs/StormWeaver/StormWeaverTailNaked.cs index ddfbbc1053..b6c6ea6c43 100644 --- a/NPCs/StormWeaver/StormWeaverTailNaked.cs +++ b/NPCs/StormWeaver/StormWeaverTailNaked.cs @@ -1,4 +1,5 @@ using CalamityMod.World; +using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; @@ -245,6 +246,10 @@ namespace CalamityMod.NPCs.StormWeaver { damage /= projectile.penetrate; } + if (projectile.type == ModContent.ProjectileType()) + { + damage /= 2; + } } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/StormWeaver/StormWeaver_BossChecklist.png b/NPCs/StormWeaver/StormWeaver_BossChecklist.png new file mode 100644 index 0000000000000000000000000000000000000000..b9c3f3740e9f472af4564aa05f174ee260f5ca9c GIT binary patch literal 5106 zcmW+)c|4R|8y-f}hWQYg<`o*zi!39;AZ2MVk)5%H8Dc{AeM<`&%Vfz|nzu0a$}mLX zO)(6SVaQ%t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z7TZ*MnEM|}?9h^XJ7XEyHTZAGjJQa1-Rxv|a%<||5F^>RzFlVS9C6xli#@C3v;DP7 zSGoi88IhwF>SkjSkA)2+E4U$qWwVqp27T*dgBHO1=HF;=?2s2&)>@rT6nWyq{QN zV|~n)#-+^62Ym*jWoi9uNQ*1}J>ZVq?)7Z%n?6h*EyMCV1G8lq>*a|{LVyHec8sxY zxzP#LOf(&?J=Di)^_D3&`&3zrQfz#Qvvu?14+rq&>qH;1sIV3QAxZ#k&eU9+uG!si z{6Va3rauHo{KHK}-OiKZ=DmiIkpo)~Nj6P`#8fICPiU^At6GD|f6L{$Nnx{<;l8hE zELOWF;*C!v%@arxe(|3iPd|#;XtLT(NWVLOLeMF5Jk?WNR;6i=EI#p+M*mNiRP?=u zZq}HecW-#2WPwL$F9pNOBqQ|<3H?6+o-ni+b9=!ar@CtwroNTOJNdmYC>D`Ks)^O< zHLfUEF2Bhe!~qgEBWYZu|7y*Q+>n{|O7z0{3Vadcx9@0{L$kl(?1bIgk@R3vMgSwxI?jQ zL3TOk#`Ol9sLJLga639VoC`NwQIn1PA)0u!u$tJ^`Y+d0pk}3~-rX6LxzR9Y_I3z1 z(gV$D?jf7FynrYhM}gOZh-i7&QLxUc`LpqaESDGM8wRPjIR**re0Bb)Tm79h`aV z3cY ztKVO0{XXN1xP^5?I`!#t8jr|fN{*|-KI3bE?{E)kqP{eLEwo@)U0VjRAp`~BDkhm_ z@gr$NIQL#AIvI#ruY1Y*&-mKz=g#}Jhfrp~aJm$=2)M%ofs71H^ Date: Thu, 26 Dec 2019 22:53:15 -0600 Subject: [PATCH 33/34] Wulfrum knife for debugging --- Items/Weapons/Rogue/WulfrumKnife.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Items/Weapons/Rogue/WulfrumKnife.cs b/Items/Weapons/Rogue/WulfrumKnife.cs index 633c898116..162b8f44b1 100644 --- a/Items/Weapons/Rogue/WulfrumKnife.cs +++ b/Items/Weapons/Rogue/WulfrumKnife.cs @@ -1,5 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; +using Microsoft.Xna.Framework; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -42,5 +44,16 @@ namespace CalamityMod.Items.Weapons.Rogue recipe.SetResult(this, 50); recipe.AddRecipe(); } + + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + if (player.Calamity().StealthStrikeAvailable()) + { + int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY) * 1.3f, ModContent.ProjectileType(), damage, knockBack, player.whoAmI); + Main.projectile[proj].Calamity().stealthStrike = true; + return false; + } + return true; + } } } From 0b02eebe30ea9204cf503d706a3a7ab237aac33c Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Fri, 27 Dec 2019 00:24:21 -0500 Subject: [PATCH 34/34] tile code bounds checking who knew tile code was so unstable it needed both bounds AND null checking --- Tiles/AstralDesert/AstralSand.cs | 17 ++++++++++++----- Utilities/TileFraming.cs | 22 +++++++++++++++++++++- 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/Tiles/AstralDesert/AstralSand.cs b/Tiles/AstralDesert/AstralSand.cs index 0dfe3ca83c..9d1dfc61d6 100644 --- a/Tiles/AstralDesert/AstralSand.cs +++ b/Tiles/AstralDesert/AstralSand.cs @@ -44,12 +44,19 @@ namespace CalamityMod.Tiles.AstralDesert public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) { - if (j < Main.maxTilesY && !Main.tile[i, j + 1].active()) + if (Main.tile[i, j] is null) + return true; + + if (j < Main.maxTilesY) { - Main.tile[i, j].active(false); - Projectile.NewProjectile(new Vector2(i * 16f + 8f, j * 16f + 8f), Vector2.Zero, ModContent.ProjectileType(), 15, 0f); - WorldGen.SquareTileFrame(i, j); - return false; + // tile[i, j+1] can still be null if it's on the edge of a chunk + if (Main.tile[i, j + 1] != null && !Main.tile[i, j + 1].active()) + { + Main.tile[i, j].active(false); + Projectile.NewProjectile(new Vector2(i * 16f + 8f, j * 16f + 8f), Vector2.Zero, ModContent.ProjectileType(), 15, 0f); + WorldGen.SquareTileFrame(i, j); + return false; + } } // CustomTileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType()); TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType()); diff --git a/Utilities/TileFraming.cs b/Utilities/TileFraming.cs index 7f4a00a1ea..55c2475b29 100644 --- a/Utilities/TileFraming.cs +++ b/Utilities/TileFraming.cs @@ -126,6 +126,10 @@ namespace CalamityMod #region Specific Framing Code internal static void PlantFrame(int x, int y) { + if (x < 0 || x >= Main.maxTilesX) + return; + if (y < 0 || y >= Main.maxTilesY) + return; Tile tile = Main.tile[x, y]; if (tile is null) return; @@ -220,6 +224,10 @@ namespace CalamityMod internal static void VineFrame(int x, int y) { + if (x < 0 || x >= Main.maxTilesX) + return; + if (y < 0 || y >= Main.maxTilesY) + return; Tile tile = Main.tile[x, y]; if (tile is null) return; @@ -271,6 +279,10 @@ namespace CalamityMod internal static bool BetterGemsparkFraming(int x, int y, bool resetFrame) { + if (x < 0 || x >= Main.maxTilesX) + return false; + if (y < 0 || y >= Main.maxTilesY) + return false; Tile tile = Main.tile[x, y]; if (tile is null) return false; @@ -549,6 +561,10 @@ namespace CalamityMod internal static bool BrimstoneFraming(int x, int y, bool resetFrame) { + if (x < 0 || x >= Main.maxTilesX) + return false; + if (y < 0 || y >= Main.maxTilesY) + return false; Tile tile = Main.tile[x, y]; if (tile is null) return false; @@ -831,7 +847,7 @@ namespace CalamityMod out bool mergedLeft, out bool mergedRight, out bool mergedDown, bool forceSameDown = false, bool forceSameUp = false, bool forceSameLeft = false, bool forceSameRight = false, bool resetFrame = true) { - if (Main.tile[x, y] is null) + if (x < 0 || x >= Main.maxTilesX || y < 0 || y >= Main.maxTilesY || Main.tile[x, y] is null) { mergedUp = mergedLeft = mergedRight = mergedDown = false; return; @@ -1381,6 +1397,10 @@ namespace CalamityMod internal static void CustomMergeFrame(int x, int y, int myType, int mergeType) { + if (x < 0 || x >= Main.maxTilesX) + return; + if (y < 0 || y >= Main.maxTilesY) + return; Tile tile = Main.tile[x, y]; if (tile is null) return;