diff --git a/Buffs/Potions/AbyssalWeapon.png b/Buffs/Potions/AbyssalWeapon.png index 5bfb5b1bf5..a88f3cea90 100644 Binary files a/Buffs/Potions/AbyssalWeapon.png and b/Buffs/Potions/AbyssalWeapon.png differ diff --git a/Buffs/StatBuffs/GraxDefense.png b/Buffs/StatBuffs/GraxDefense.png index 1542ee271c..df09bd9f57 100644 Binary files a/Buffs/StatBuffs/GraxDefense.png and b/Buffs/StatBuffs/GraxDefense.png differ diff --git a/Buffs/StatBuffs/ShellBoost.png b/Buffs/StatBuffs/ShellBoost.png index e4fa934dc2..72926348cd 100644 Binary files a/Buffs/StatBuffs/ShellBoost.png and b/Buffs/StatBuffs/ShellBoost.png differ diff --git a/Buffs/StatDebuffs/Irradiated.png b/Buffs/StatDebuffs/Irradiated.png index 3518163824..60106814b8 100644 Binary files a/Buffs/StatDebuffs/Irradiated.png and b/Buffs/StatDebuffs/Irradiated.png differ diff --git a/Items/Accessories/FabledTortoiseShell.cs b/Items/Accessories/FabledTortoiseShell.cs index b157c689ca..239d964ba8 100644 --- a/Items/Accessories/FabledTortoiseShell.cs +++ b/Items/Accessories/FabledTortoiseShell.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories { public override void SetStaticDefaults() { - DisplayName.SetDefault("Fabled Tortoise Shell"); + DisplayName.SetDefault("Flame-Licked Shell"); Tooltip.SetDefault("50% reduced movement speed\n" + "Enemies take damage when they hit you\n" + "You move faster and lose 18 defense for 3 seconds if you take damage"); @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Accessories public override void SetDefaults() { item.defense = 36; - item.width = 20; - item.height = 24; + item.width = 36; + item.height = 42; item.value = CalamityGlobalItem.Rarity5BuyPrice; item.rare = ItemRarityID.Pink; item.accessory = true; diff --git a/Items/Accessories/FabledTortoiseShell.png b/Items/Accessories/FabledTortoiseShell.png index 8ee762ad47..d9cb245978 100644 Binary files a/Items/Accessories/FabledTortoiseShell.png and b/Items/Accessories/FabledTortoiseShell.png differ diff --git a/Items/Accessories/FungalCarapace.png b/Items/Accessories/FungalCarapace.png index 8a6a96a438..6d4633b776 100644 Binary files a/Items/Accessories/FungalCarapace.png and b/Items/Accessories/FungalCarapace.png differ diff --git a/Items/Accessories/Regenator.cs b/Items/Accessories/Regenator.cs index 20fefd1404..dc858ea4c7 100644 --- a/Items/Accessories/Regenator.cs +++ b/Items/Accessories/Regenator.cs @@ -15,8 +15,8 @@ namespace CalamityMod.Items.Accessories public override void SetDefaults() { - item.width = 36; - item.height = 32; + item.width = 34; + item.height = 56; item.value = CalamityGlobalItem.Rarity7BuyPrice; item.rare = ItemRarityID.Lime; item.defense = 6; diff --git a/Items/Accessories/Regenator.png b/Items/Accessories/Regenator.png index a7a00808f1..4c7c7ee7f8 100644 Binary files a/Items/Accessories/Regenator.png and b/Items/Accessories/Regenator.png differ diff --git a/Items/Accessories/SamuraiBadge.cs b/Items/Accessories/SamuraiBadge.cs index 44aa2973fa..56798d087e 100644 --- a/Items/Accessories/SamuraiBadge.cs +++ b/Items/Accessories/SamuraiBadge.cs @@ -1,5 +1,6 @@ using CalamityMod.CalPlayer; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -9,15 +10,16 @@ namespace CalamityMod.Items.Accessories { public override void SetStaticDefaults() { - DisplayName.SetDefault("Samurai Badge"); + DisplayName.SetDefault("Warbanner of the Sun"); Tooltip.SetDefault("Increases melee damage, true melee damage and melee speed the closer you are to enemies\n" + "Max boost is 30% increased melee damage, true melee damage and melee speed"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 5)); } public override void SetDefaults() { - item.width = 30; - item.height = 30; + item.width = 32; + item.height = 78; item.rare = ItemRarityID.Purple; item.Calamity().customRarity = CalamityRarity.Turquoise; item.value = CalamityGlobalItem.Rarity12BuyPrice; diff --git a/Items/Accessories/SamuraiBadge.png b/Items/Accessories/SamuraiBadge.png index e123f117e3..88c1edae78 100644 Binary files a/Items/Accessories/SamuraiBadge.png and b/Items/Accessories/SamuraiBadge.png differ diff --git a/Items/Accessories/TheEvolution.cs b/Items/Accessories/TheEvolution.cs index 32a90e5bec..c3b338d1a8 100644 --- a/Items/Accessories/TheEvolution.cs +++ b/Items/Accessories/TheEvolution.cs @@ -1,5 +1,6 @@ using CalamityMod.CalPlayer; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -15,12 +16,13 @@ namespace CalamityMod.Items.Accessories "This reflect has a 120 second cooldown which is shared with all other dodges and reflects\n" + "If this effect triggers you get a health regeneration boost for 5 seconds\n" + "If the same enemy projectile type hits you again you will resist its damage by 15%"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 10)); } public override void SetDefaults() { - item.width = 26; - item.height = 26; + item.width = 58; + item.height = 44; item.value = CalamityGlobalItem.Rarity12BuyPrice; item.Calamity().customRarity = CalamityRarity.Turquoise; item.rare = ItemRarityID.Purple; diff --git a/Items/Accessories/TheEvolution.png b/Items/Accessories/TheEvolution.png index 79760a5054..67db30fcf8 100644 Binary files a/Items/Accessories/TheEvolution.png and b/Items/Accessories/TheEvolution.png differ diff --git a/Items/Accessories/TheTransformer.cs b/Items/Accessories/TheTransformer.cs index e2107c0cfd..3725386c1b 100644 --- a/Items/Accessories/TheTransformer.cs +++ b/Items/Accessories/TheTransformer.cs @@ -2,6 +2,7 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; using Terraria.ID; +using Terraria.DataStructures; namespace CalamityMod.Items.Accessories { @@ -14,12 +15,13 @@ namespace CalamityMod.Items.Accessories "Sparks do extra damage in Hardmode\n" + "Immunity to Electrified and you resist all electrical projectile and enemy damage\n" + "Enemy bullets do half damage to you and are reflected back at the enemy for 800% their original damage"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 16)); } public override void SetDefaults() { - item.width = 26; - item.height = 26; + item.width = 42; + item.height = 56; item.value = CalamityGlobalItem.Rarity2BuyPrice; item.rare = ItemRarityID.Green; item.accessory = true; diff --git a/Items/Accessories/TheTransformer.png b/Items/Accessories/TheTransformer.png index 32095d8354..584ad4d5a1 100644 Binary files a/Items/Accessories/TheTransformer.png and b/Items/Accessories/TheTransformer.png differ diff --git a/Items/Materials/AuricBar.cs b/Items/Materials/AuricBar.cs index 2b7f1f760e..d223c55911 100644 --- a/Items/Materials/AuricBar.cs +++ b/Items/Materials/AuricBar.cs @@ -43,21 +43,21 @@ namespace CalamityMod.Items.Materials public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale) { Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/AuricBar_Animated"); - spriteBatch.Draw(texture, position, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 16), Color.White, 0f, origin, scale, SpriteEffects.None, 0); + spriteBatch.Draw(texture, position, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 15), Color.White, 0f, origin, scale, SpriteEffects.None, 0); return false; } public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) { Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/AuricBar_Animated"); - spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 16), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0); + spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 15), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0); return false; } public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) { Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/AuricBarGlow"); - spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 6, 16, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0); + spriteBatch.Draw(texture, item.position - Main.screenPosition, item.GetCurrentFrame(ref frame, ref frameCounter, 5, 15, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0); } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/Materials/AuricBarGlow.png b/Items/Materials/AuricBarGlow.png index 43b50fde97..837248c74e 100644 Binary files a/Items/Materials/AuricBarGlow.png and b/Items/Materials/AuricBarGlow.png differ diff --git a/Items/Materials/AuricBar_Animated.png b/Items/Materials/AuricBar_Animated.png index dfc1e70809..38a8c159a1 100644 Binary files a/Items/Materials/AuricBar_Animated.png and b/Items/Materials/AuricBar_Animated.png differ diff --git a/Items/Materials/BeetleJuice.png b/Items/Materials/BeetleJuice.png index b7e16e4f54..57ca3e1d8a 100644 Binary files a/Items/Materials/BeetleJuice.png and b/Items/Materials/BeetleJuice.png differ diff --git a/Items/Placeables/Furniture/CraftingStations/CosmicAnvil.png b/Items/Placeables/Furniture/CraftingStations/CosmicAnvil.png new file mode 100644 index 0000000000..4f44e008d0 Binary files /dev/null and b/Items/Placeables/Furniture/CraftingStations/CosmicAnvil.png differ diff --git a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs b/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs index 923a56fc2d..e664e22816 100644 --- a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs +++ b/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs @@ -1,14 +1,17 @@ using CalamityMod.Items.Materials; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.CraftingStations { public class DraedonsForge : ModItem { + public override string Texture => "CalamityMod/Items/Placeables/Furniture/CraftingStations/CosmicAnvil"; + public override void SetStaticDefaults() { - DisplayName.SetDefault("Draedon's Forge"); - Tooltip.SetDefault("Used to craft uber-tier items"); + DisplayName.SetDefault("Cosmic Anvil"); + Tooltip.SetDefault("Used to craft Cosmilite tier items"); } public override void SetDefaults() @@ -22,7 +25,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations item.useTime = 10; item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; - item.value = 5000000; + item.value = Item.sellPrice(platinum: 1); item.rare = ItemRarityID.Red; item.createTile = ModContent.TileType(); item.Calamity().customRarity = CalamityRarity.DarkBlue; @@ -31,8 +34,8 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddRecipeGroup("HardmodeForge"); recipe.AddRecipeGroup("HardmodeAnvil"); + recipe.AddIngredient(ItemID.TinkerersWorkshop); recipe.AddIngredient(ItemID.LunarCraftingStation); recipe.AddIngredient(ItemID.LunarBar, 5); recipe.AddIngredient(ModContent.ItemType(), 5); diff --git a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.png b/Items/Placeables/Furniture/CraftingStations/DraedonsForge.png deleted file mode 100644 index d0cad78ff5..0000000000 Binary files a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.png and /dev/null differ diff --git a/Items/Weapons/Melee/CausticEdge.png b/Items/Weapons/Melee/CausticEdge.png index 57ad421b37..c134ebe6ff 100644 Binary files a/Items/Weapons/Melee/CausticEdge.png and b/Items/Weapons/Melee/CausticEdge.png differ diff --git a/Items/Weapons/Melee/EvilSmasher.cs b/Items/Weapons/Melee/EvilSmasher.cs index 81bf08594b..105269379c 100644 --- a/Items/Weapons/Melee/EvilSmasher.cs +++ b/Items/Weapons/Melee/EvilSmasher.cs @@ -16,8 +16,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.width = 62; - item.height = 62; + item.width = 64; + item.height = 66; item.scale = 2f; item.damage = 55; item.melee = true; diff --git a/Items/Weapons/Melee/EvilSmasher.png b/Items/Weapons/Melee/EvilSmasher.png index c8a8ea9c8e..e37f1d881b 100644 Binary files a/Items/Weapons/Melee/EvilSmasher.png and b/Items/Weapons/Melee/EvilSmasher.png differ diff --git a/Items/Weapons/Melee/Swordsplosion.cs b/Items/Weapons/Melee/Swordsplosion.cs index b8c5a3a439..ea99b5d6b7 100644 --- a/Items/Weapons/Melee/Swordsplosion.cs +++ b/Items/Weapons/Melee/Swordsplosion.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.width = 84; + item.width = 88; item.damage = 60; item.melee = true; item.useAnimation = 30; @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee item.knockBack = 7f; item.UseSound = SoundID.Item60; item.autoReuse = true; - item.height = 84; + item.height = 90; item.value = CalamityGlobalItem.Rarity11BuyPrice; item.rare = ItemRarityID.Purple; item.shoot = ModContent.ProjectileType(); @@ -42,16 +42,16 @@ namespace CalamityMod.Items.Weapons.Melee switch (Main.rand.Next(4)) { case 0: - type = ModContent.ProjectileType(); + type = ModContent.ProjectileType(); break; case 1: - type = ModContent.ProjectileType(); + type = ModContent.ProjectileType(); break; case 2: - type = ModContent.ProjectileType(); + type = ModContent.ProjectileType(); break; case 3: - type = ModContent.ProjectileType(); + type = ModContent.ProjectileType(); break; } float num72 = Main.rand.Next(22, 30); @@ -88,7 +88,7 @@ namespace CalamityMod.Items.Weapons.Melee num79 *= num80; float speedX4 = num78 + (float)Main.rand.Next(-360, 361) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-360, 361) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockBack, player.whoAmI, 2f, 0f); } return false; } diff --git a/Items/Weapons/Melee/Swordsplosion.png b/Items/Weapons/Melee/Swordsplosion.png index 6714d41334..22b5b123e8 100644 Binary files a/Items/Weapons/Melee/Swordsplosion.png and b/Items/Weapons/Melee/Swordsplosion.png differ diff --git a/Items/Weapons/Melee/TrueCausticEdge.png b/Items/Weapons/Melee/TrueCausticEdge.png index 1c0fb1c10f..be963cd180 100644 Binary files a/Items/Weapons/Melee/TrueCausticEdge.png and b/Items/Weapons/Melee/TrueCausticEdge.png differ diff --git a/Items/Weapons/Melee/TrueTyrantYharimsUltisword.png b/Items/Weapons/Melee/TrueTyrantYharimsUltisword.png index 2de0d2d06e..d13da49497 100644 Binary files a/Items/Weapons/Melee/TrueTyrantYharimsUltisword.png and b/Items/Weapons/Melee/TrueTyrantYharimsUltisword.png differ diff --git a/Items/Weapons/Melee/TyrantYharimsUltisword.png b/Items/Weapons/Melee/TyrantYharimsUltisword.png index 10b1593e0f..e2c52d8f0d 100644 Binary files a/Items/Weapons/Melee/TyrantYharimsUltisword.png and b/Items/Weapons/Melee/TyrantYharimsUltisword.png differ diff --git a/Items/Weapons/Ranged/Arbalest.cs b/Items/Weapons/Ranged/Arbalest.cs index 9d18b141ac..84e4d61ad4 100644 --- a/Items/Weapons/Ranged/Arbalest.cs +++ b/Items/Weapons/Ranged/Arbalest.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Weapons.Ranged { item.damage = 32; item.ranged = true; - item.width = 58; - item.height = 22; + item.width = 82; + item.height = 34; item.useTime = 7; item.reuseDelay = 30; item.useAnimation = 28; diff --git a/Items/Weapons/Ranged/Arbalest.png b/Items/Weapons/Ranged/Arbalest.png index 3948608583..3afdc72789 100644 Binary files a/Items/Weapons/Ranged/Arbalest.png and b/Items/Weapons/Ranged/Arbalest.png differ diff --git a/Items/Weapons/Ranged/ChargedDartRifle.png b/Items/Weapons/Ranged/ChargedDartRifle.png index 4ba1a1833d..7dd38ace60 100644 Binary files a/Items/Weapons/Ranged/ChargedDartRifle.png and b/Items/Weapons/Ranged/ChargedDartRifle.png differ diff --git a/Items/Weapons/Ranged/Hellborn.cs b/Items/Weapons/Ranged/Hellborn.cs index 68bd6c9194..67da8961ed 100644 --- a/Items/Weapons/Ranged/Hellborn.cs +++ b/Items/Weapons/Ranged/Hellborn.cs @@ -19,8 +19,8 @@ namespace CalamityMod.Items.Weapons.Ranged { item.damage = 18; item.ranged = true; - item.width = 50; - item.height = 24; + item.width = 66; + item.height = 34; item.useTime = 9; item.useAnimation = 9; item.useStyle = ItemUseStyleID.HoldingOut; @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override Vector2? HoldoutOffset() { - return new Vector2(-5, 0); + return new Vector2(-10, 0); } 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/Ranged/Hellborn.png b/Items/Weapons/Ranged/Hellborn.png index b64c8d5a53..bcd63a70e0 100644 Binary files a/Items/Weapons/Ranged/Hellborn.png and b/Items/Weapons/Ranged/Hellborn.png differ diff --git a/Items/Weapons/Ranged/PearlGod.cs b/Items/Weapons/Ranged/PearlGod.cs index fc8f48ca30..4b19f9360e 100644 --- a/Items/Weapons/Ranged/PearlGod.cs +++ b/Items/Weapons/Ranged/PearlGod.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Weapons.Ranged { item.damage = 100; item.ranged = true; - item.width = 54; - item.height = 38; + item.width = 80; + item.height = 46; item.useTime = 12; item.useAnimation = 12; item.useStyle = ItemUseStyleID.HoldingOut; diff --git a/Items/Weapons/Ranged/PearlGod.png b/Items/Weapons/Ranged/PearlGod.png index 1dd5590535..f4c5a835b5 100644 Binary files a/Items/Weapons/Ranged/PearlGod.png and b/Items/Weapons/Ranged/PearlGod.png differ diff --git a/Items/Weapons/Ranged/Skullmasher.cs b/Items/Weapons/Ranged/Skullmasher.cs index 01f1155d30..518ec98cc7 100644 --- a/Items/Weapons/Ranged/Skullmasher.cs +++ b/Items/Weapons/Ranged/Skullmasher.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Ranged { item.damage = 924; item.ranged = true; - item.width = 76; - item.height = 30; + item.width = 142; + item.height = 40; item.useTime = 60; item.useAnimation = 60; item.useStyle = ItemUseStyleID.HoldingOut; @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Ranged // Terraria seems to really dislike high crit values in SetDefaults public override void GetWeaponCrit(Player player, ref int crit) => crit += 5; - public override Vector2? HoldoutOffset() => new Vector2(-10, 0); + public override Vector2? HoldoutOffset() => new Vector2(-50, 0); //beeg gun 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/Ranged/Skullmasher.png b/Items/Weapons/Ranged/Skullmasher.png index 81faacaed6..a5ccd98f68 100644 Binary files a/Items/Weapons/Ranged/Skullmasher.png and b/Items/Weapons/Ranged/Skullmasher.png differ diff --git a/Items/Weapons/Rogue/TheReaper.cs b/Items/Weapons/Rogue/TheReaper.cs index f1b7f519e9..38dc4f969b 100644 --- a/Items/Weapons/Rogue/TheReaper.cs +++ b/Items/Weapons/Rogue/TheReaper.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SafeSetDefaults() { - item.width = 80; + item.width = 106; item.damage = 90; item.noMelee = true; item.noUseGraphic = true; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.knockBack = 4f; item.UseSound = SoundID.Item1; item.autoReuse = true; - item.height = 64; + item.height = 104; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.Calamity().rogue = true; diff --git a/Items/Weapons/Rogue/TheReaper.png b/Items/Weapons/Rogue/TheReaper.png index 0714005470..d73efddcc8 100644 Binary files a/Items/Weapons/Rogue/TheReaper.png and b/Items/Weapons/Rogue/TheReaper.png differ diff --git a/Items/Weapons/Rogue/Valediction.png b/Items/Weapons/Rogue/Valediction.png index 1c3cefaf35..bddd62e87f 100644 Binary files a/Items/Weapons/Rogue/Valediction.png and b/Items/Weapons/Rogue/Valediction.png differ diff --git a/Items/Weapons/Typeless/MarkedMagnum.png b/Items/Weapons/Typeless/MarkedMagnum.png index 69b7d5ecb0..9b22e7e3d7 100644 Binary files a/Items/Weapons/Typeless/MarkedMagnum.png and b/Items/Weapons/Typeless/MarkedMagnum.png differ diff --git a/Projectiles/Melee/SwordsplosionBlue.cs b/Projectiles/Melee/SwordsplosionBlue.cs new file mode 100644 index 0000000000..f78f4e2712 --- /dev/null +++ b/Projectiles/Melee/SwordsplosionBlue.cs @@ -0,0 +1,77 @@ +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Projectiles.Melee +{ + public class SwordsplosionBlue : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Blue Sword"); + } + + public override void SetDefaults() + { + projectile.width = 20; + projectile.height = 20; + projectile.aiStyle = 27; + projectile.friendly = true; + projectile.melee = true; + projectile.tileCollide = false; + projectile.penetrate = 3; + projectile.timeLeft = 200; + aiType = ProjectileID.EnchantedBeam; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 10; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.3f / 255f, (255 - projectile.alpha) * 0.4f / 255f, (255 - projectile.alpha) * 1f / 255f); + if (projectile.localAI[1] > 7f) + { + int num308 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 66, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, new Color(Main.DiscoR, 203, 103), 1.2f); + Main.dust[num308].velocity *= 0.1f; + Main.dust[num308].noGravity = true; + } + projectile.rotation = projectile.velocity.ToRotation() + (float)Math.Atan(90); + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(Main.DiscoR, 203, 103, projectile.alpha); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + if (projectile.timeLeft > 195) + return false; + + 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 Kill(int timeLeft) + { + for (int k = 0; k < 7; k++) + { + int num308 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 66, 0f, 0f, 150, new Color(Main.DiscoR, 203, 103), 1.2f); + Main.dust[num308].noGravity = true; + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + } + } +} diff --git a/Projectiles/Melee/SwordsplosionBlue.png b/Projectiles/Melee/SwordsplosionBlue.png new file mode 100644 index 0000000000..45a71e5e5b Binary files /dev/null and b/Projectiles/Melee/SwordsplosionBlue.png differ diff --git a/Projectiles/Melee/SwordsplosionGreen.cs b/Projectiles/Melee/SwordsplosionGreen.cs new file mode 100644 index 0000000000..92c6849d38 --- /dev/null +++ b/Projectiles/Melee/SwordsplosionGreen.cs @@ -0,0 +1,76 @@ +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Projectiles.Melee +{ + public class SwordsplosionGreen : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Green Sword"); + } + + public override void SetDefaults() + { + projectile.width = 20; + projectile.height = 20; + projectile.aiStyle = 27; + projectile.friendly = true; + projectile.melee = true; + projectile.penetrate = 3; + projectile.timeLeft = 300; + aiType = ProjectileID.EnchantedBeam; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 10; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.3f / 255f, (255 - projectile.alpha) * 0.4f / 255f, (255 - projectile.alpha) * 1f / 255f); + if (projectile.localAI[1] > 7f) + { + int num308 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 66, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, new Color(53, Main.DiscoG, 255), 1.2f); + Main.dust[num308].velocity *= 0.1f; + Main.dust[num308].noGravity = true; + } + projectile.rotation = projectile.velocity.ToRotation() + (float)Math.Atan(90); + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(53, Main.DiscoG, 255, projectile.alpha); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + if (projectile.timeLeft > 295) + return false; + + 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 Kill(int timeLeft) + { + for (int k = 0; k < 7; k++) + { + int num308 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 66, 0f, 0f, 150, new Color(53, Main.DiscoG, 255), 1.2f); + Main.dust[num308].noGravity = true; + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + } + } +} diff --git a/Projectiles/Melee/SwordsplosionGreen.png b/Projectiles/Melee/SwordsplosionGreen.png new file mode 100644 index 0000000000..f86e8afa62 Binary files /dev/null and b/Projectiles/Melee/SwordsplosionGreen.png differ diff --git a/Projectiles/Melee/SwordsplosionPurple.cs b/Projectiles/Melee/SwordsplosionPurple.cs new file mode 100644 index 0000000000..b55f40c58f --- /dev/null +++ b/Projectiles/Melee/SwordsplosionPurple.cs @@ -0,0 +1,78 @@ +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Projectiles.Melee +{ + public class SwordsplosionPurple : ModProjectile + { + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Purple Sword"); + } + + public override void SetDefaults() + { + projectile.width = 20; + projectile.height = 20; + projectile.aiStyle = 27; + projectile.friendly = true; + projectile.melee = true; + projectile.penetrate = 3; + projectile.timeLeft = 300; + aiType = ProjectileID.EnchantedBeam; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 10; + } + + public override void AI() + { + + Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.3f / 255f, (255 - projectile.alpha) * 0.4f / 255f, (255 - projectile.alpha) * 1f / 255f); + if (projectile.localAI[1] > 7f) + { + int num308 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 66, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, new Color(Main.DiscoR, 100, 255), 1.2f); + Main.dust[num308].velocity *= 0.1f; + Main.dust[num308].noGravity = true; + } + projectile.rotation = projectile.velocity.ToRotation() + (float)Math.Atan(90); + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(Main.DiscoR, 100, 255, projectile.alpha); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + if (projectile.timeLeft > 295) + return false; + + 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 Kill(int timeLeft) + { + for (int k = 0; k < 7; k++) + { + int num308 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 66, 0f, 0f, 150, new Color(Main.DiscoR, 100, 255), 1.2f); + Main.dust[num308].noGravity = true; + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + } + } +} diff --git a/Projectiles/Melee/SwordsplosionPurple.png b/Projectiles/Melee/SwordsplosionPurple.png new file mode 100644 index 0000000000..39bc1a2b25 Binary files /dev/null and b/Projectiles/Melee/SwordsplosionPurple.png differ diff --git a/Projectiles/Melee/SwordsplosionRed.cs b/Projectiles/Melee/SwordsplosionRed.cs new file mode 100644 index 0000000000..089781fcef --- /dev/null +++ b/Projectiles/Melee/SwordsplosionRed.cs @@ -0,0 +1,77 @@ +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Projectiles.Melee +{ + public class SwordsplosionRed : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Red Sword"); + } + + public override void SetDefaults() + { + projectile.width = 20; + projectile.height = 20; + projectile.aiStyle = 27; + projectile.friendly = true; + projectile.melee = true; + projectile.tileCollide = false; + projectile.penetrate = 3; + projectile.timeLeft = 200; + aiType = ProjectileID.EnchantedBeam; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 10; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.3f / 255f, (255 - projectile.alpha) * 0.4f / 255f, (255 - projectile.alpha) * 1f / 255f); + if (projectile.localAI[1] > 7f) + { + int num308 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 66, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f, 150, new Color(255, Main.DiscoG, 53), 1.2f); + Main.dust[num308].velocity *= 0.1f; + Main.dust[num308].noGravity = true; + } + projectile.rotation = projectile.velocity.ToRotation() + (float)Math.Atan(90); + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(255, Main.DiscoG, 53, projectile.alpha); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + if (projectile.timeLeft > 195) + return false; + + 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 Kill(int timeLeft) + { + for (int k = 0; k < 7; k++) + { + int num308 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 66, 0f, 0f, 150, new Color(255, Main.DiscoG, 53), 1.2f); + Main.dust[num308].noGravity = true; + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); + } + } +} diff --git a/Projectiles/Melee/SwordsplosionRed.png b/Projectiles/Melee/SwordsplosionRed.png new file mode 100644 index 0000000000..322531fe55 Binary files /dev/null and b/Projectiles/Melee/SwordsplosionRed.png differ diff --git a/Tiles/Furniture/CraftingStations/DraedonsForge.cs b/Tiles/Furniture/CraftingStations/DraedonsForge.cs index b80d345cb9..d4519ddab1 100644 --- a/Tiles/Furniture/CraftingStations/DraedonsForge.cs +++ b/Tiles/Furniture/CraftingStations/DraedonsForge.cs @@ -6,25 +6,25 @@ using Terraria.ObjectData; namespace CalamityMod.Tiles.Furniture.CraftingStations { - public class DraedonsForge : ModTile + public class DraedonsForge : ModTile //Legacy names used to avoid fucking over people's placed forges and ensure they are converted properly. { - public override void SetDefaults() + + public override void SetDefaults() { - animationFrameHeight = 36; Main.tileLighted[Type] = true; Main.tileFrameImportant[Type] = true; Main.tileNoAttach[Type] = true; Main.tileLavaDeath[Type] = false; - TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); + TileObjectData.newTile.CopyFrom(TileObjectData.Style4x2); //Changed from 3x2 to 4x2 due to sprite. TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.CoordinateHeights = new int[] { 16, 18 }; TileObjectData.addTile(Type); ModTranslation name = CreateMapEntryName(); - name.SetDefault("Draedon's Forge"); + name.SetDefault("Cosmic Anvil"); AddMapEntry(new Color(0, 255, 0), name); disableSmartCursor = true; - adjTiles = new int[] { TileID.Anvils, TileID.Furnaces, TileID.WorkBenches, TileID.LunarCraftingStation, - TileID.MythrilAnvil, TileID.AdamantiteForge, TileID.Hellforge, TileID.DemonAltar }; + adjTiles = new int[] { TileID.Anvils, TileID.TinkerersWorkbench, TileID.WorkBenches, TileID.LunarCraftingStation, + TileID.MythrilAnvil, TileID.AdamantiteForge, TileID.DemonAltar }; //Specifically not furnaces } public override void KillMultiTile(int i, int j, int frameX, int frameY) @@ -38,19 +38,5 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations g = (float)Main.DiscoG / 255f; b = (float)Main.DiscoB / 255f; } - - public override void AnimateTile(ref int frame, ref int frameCounter) - { - frameCounter++; - if (frameCounter > 12) - { - frameCounter = 0; - frame++; - if (frame > 3) - { - frame = 0; - } - } - } } } diff --git a/Tiles/Furniture/CraftingStations/DraedonsForge.png b/Tiles/Furniture/CraftingStations/DraedonsForge.png index c61bdd80c5..f36dea2aad 100644 Binary files a/Tiles/Furniture/CraftingStations/DraedonsForge.png and b/Tiles/Furniture/CraftingStations/DraedonsForge.png differ