diff --git a/CalPlayer/DrawLayers/HeldItemGlowMaskLayer.cs b/CalPlayer/DrawLayers/HeldItemGlowMaskLayer.cs index cd0b42f630..5258c2edc6 100644 --- a/CalPlayer/DrawLayers/HeldItemGlowMaskLayer.cs +++ b/CalPlayer/DrawLayers/HeldItemGlowMaskLayer.cs @@ -37,30 +37,10 @@ namespace CalamityMod.CalPlayer.DrawLayers // This is ugly and I don't give a fuck. // If you want it to look better, do it yourself. Texture2D glowMask = default; - if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/IridescentExcaliburGlow").Value; - else if (itemType == ModContent.ItemType()) + if (itemType == ModContent.ItemType()) glowMask = ModContent.Request("CalamityMod/Items/Weapons/Magic/AbyssShocker_mask").Value; else if (itemType == ModContent.ItemType()) glowMask = ModContent.Request("CalamityMod/Items/Weapons/Magic/ApotheosisGlow").Value; - else if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Magic/DeathhailStaffGlow").Value; - else if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Magic/FatesRevealGlow").Value; - else if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Magic/SoulPiercerGlow").Value; - else if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Magic/SubsumingVortexGlow").Value; - else if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/EssenceFlayerGlow").Value; - else if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/ExcelsusGlow").Value; - else if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/PrismaticBreakerGlow").Value; - else if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/TerrorBladeGlow").Value; - else if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/TheEnforcerGlow").Value; else if (itemType == ModContent.ItemType()) glowMask = ModContent.Request("CalamityMod/Items/Weapons/Ranged/AuralisGlow").Value; else if (itemType == ModContent.ItemType()) @@ -69,20 +49,44 @@ namespace CalamityMod.CalPlayer.DrawLayers glowMask = ModContent.Request("CalamityMod/Items/Weapons/Ranged/CleansingBlazeGlow").Value; else if (itemType == ModContent.ItemType()) glowMask = ModContent.Request("CalamityMod/Items/Weapons/Ranged/CosmicBolterGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Magic/DeathhailStaffGlow").Value; else if (itemType == ModContent.ItemType()) glowMask = ModContent.Request("CalamityMod/Items/Weapons/Ranged/DeathwindGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/EssenceFlayerGlow").Value; else if (itemType == ModContent.ItemType()) glowMask = ModContent.Request("CalamityMod/Items/Weapons/Summon/EtherealSubjugatorGlow").Value; - else if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/GreatswordofJudgementGlow").Value; - else if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/OrderbringerGlow").Value; - else if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/MajesticGuardGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/ExcelsusGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/IridescentExcaliburGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Magic/FatesRevealGlow").Value; else if (itemType == ModContent.ItemType()) glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/GrandGuardianGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/GreatswordofJudgementGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/MajesticGuardGlow").Value; else if (itemType == ModContent.ItemType()) glowMask = ModContent.Request("CalamityMod/Items/SummonItems/NecroplasmicBeaconGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/OrderbringerGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Summon/PlantationStaffGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/PrismaticBreakerGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Magic/SoulPiercerGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Magic/SubsumingVortexGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Magic/TerraRayGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/TerrorBladeGlow").Value; + else if (itemType == ModContent.ItemType()) + glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/TheEnforcerGlow").Value; if (glowMask == default) return; diff --git a/Items/Ammo/TerraArrow.png b/Items/Ammo/TerraArrow.png index 2fba9fd97b..0b38fd9cb5 100644 Binary files a/Items/Ammo/TerraArrow.png and b/Items/Ammo/TerraArrow.png differ diff --git a/Items/Ammo/TerraBullet.png b/Items/Ammo/TerraBullet.png index 1b78972e17..05f96745e8 100644 Binary files a/Items/Ammo/TerraBullet.png and b/Items/Ammo/TerraBullet.png differ diff --git a/Items/Weapons/Magic/TerraRay.cs b/Items/Weapons/Magic/TerraRay.cs index a8b71ad589..30d90623c4 100644 --- a/Items/Weapons/Magic/TerraRay.cs +++ b/Items/Weapons/Magic/TerraRay.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -18,8 +19,8 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - Item.width = 54; - Item.height = 54; + Item.width = 58; + Item.height = 58; Item.damage = 60; Item.DamageType = DamageClass.Magic; Item.mana = 10; @@ -44,6 +45,11 @@ namespace CalamityMod.Items.Weapons.Magic return false; } + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request("CalamityMod/Items/Weapons/Magic/TerraRayGlow").Value); + } + public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Weapons/Magic/TerraRay.png b/Items/Weapons/Magic/TerraRay.png index ffeae7d03e..8784082b21 100644 Binary files a/Items/Weapons/Magic/TerraRay.png and b/Items/Weapons/Magic/TerraRay.png differ diff --git a/Items/Weapons/Magic/TerraRayGlow.png b/Items/Weapons/Magic/TerraRayGlow.png new file mode 100644 index 0000000000..723f68f930 Binary files /dev/null and b/Items/Weapons/Magic/TerraRayGlow.png differ diff --git a/Items/Weapons/Melee/TerraLance.cs b/Items/Weapons/Melee/TerraLance.cs index 2b0cca945e..a2d0e97dfc 100644 --- a/Items/Weapons/Melee/TerraLance.cs +++ b/Items/Weapons/Melee/TerraLance.cs @@ -1,5 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Spears; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -16,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - Item.width = 44; - Item.height = 44; + Item.width = 112; + Item.height = 112; Item.damage = 88; Item.DamageType = DamageClass.Melee; Item.noMelee = true; @@ -37,6 +39,11 @@ namespace CalamityMod.Items.Weapons.Melee public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request("CalamityMod/Items/Weapons/Melee/TerraLanceGlow").Value); + } + public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Weapons/Melee/TerraLance.png b/Items/Weapons/Melee/TerraLance.png index 2ec07315aa..80e33f768e 100644 Binary files a/Items/Weapons/Melee/TerraLance.png and b/Items/Weapons/Melee/TerraLance.png differ diff --git a/Items/Weapons/Melee/TerraLanceGlow.png b/Items/Weapons/Melee/TerraLanceGlow.png new file mode 100644 index 0000000000..89129d2873 Binary files /dev/null and b/Items/Weapons/Melee/TerraLanceGlow.png differ diff --git a/Items/Weapons/Ranged/CosmicBolter.cs b/Items/Weapons/Ranged/CosmicBolter.cs index 4d84616595..1b96a8b0d3 100644 --- a/Items/Weapons/Ranged/CosmicBolter.cs +++ b/Items/Weapons/Ranged/CosmicBolter.cs @@ -14,8 +14,8 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetDefaults() { - Item.width = 50; - Item.height = 112; + Item.width = 68; + Item.height = 94; Item.damage = 48; Item.DamageType = DamageClass.Ranged; Item.useTime = 20; diff --git a/Items/Weapons/Ranged/CosmicBolter.png b/Items/Weapons/Ranged/CosmicBolter.png index c56363cc87..8776adf492 100644 Binary files a/Items/Weapons/Ranged/CosmicBolter.png and b/Items/Weapons/Ranged/CosmicBolter.png differ diff --git a/Items/Weapons/Ranged/CosmicBolterGlow.png b/Items/Weapons/Ranged/CosmicBolterGlow.png index 37d467276c..d7f6ef8efe 100644 Binary files a/Items/Weapons/Ranged/CosmicBolterGlow.png and b/Items/Weapons/Ranged/CosmicBolterGlow.png differ diff --git a/Items/Weapons/Ranged/TerraFlameburster.cs b/Items/Weapons/Ranged/TerraFlameburster.cs index c75a9dbec1..0a7824acad 100644 --- a/Items/Weapons/Ranged/TerraFlameburster.cs +++ b/Items/Weapons/Ranged/TerraFlameburster.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -17,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.width = 68; - Item.height = 22; + Item.width = 114; + Item.height = 58; Item.damage = 78; Item.DamageType = DamageClass.Ranged; Item.useTime = TerraUseTime; @@ -47,6 +48,11 @@ namespace CalamityMod.Items.Weapons.Ranged return false; } + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request("CalamityMod/Items/Weapons/Ranged/TerraFlamebursterGlow").Value); + } + public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Weapons/Ranged/TerraFlameburster.png b/Items/Weapons/Ranged/TerraFlameburster.png index 6dd46e5f7a..e256d3828d 100644 Binary files a/Items/Weapons/Ranged/TerraFlameburster.png and b/Items/Weapons/Ranged/TerraFlameburster.png differ diff --git a/Items/Weapons/Ranged/TerraFlamebursterGlow.png b/Items/Weapons/Ranged/TerraFlamebursterGlow.png new file mode 100644 index 0000000000..7d3ba2d37f Binary files /dev/null and b/Items/Weapons/Ranged/TerraFlamebursterGlow.png differ diff --git a/Items/Weapons/Rogue/TerraDisk.cs b/Items/Weapons/Rogue/TerraDisk.cs index 9d572bc370..15350e648a 100644 --- a/Items/Weapons/Rogue/TerraDisk.cs +++ b/Items/Weapons/Rogue/TerraDisk.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -14,8 +15,8 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetDefaults() { - Item.width = 46; - Item.height = 46; + Item.width = 60; + Item.height = 64; Item.damage = 100; Item.knockBack = 4f; Item.useAnimation = Item.useTime = 30; @@ -46,6 +47,11 @@ namespace CalamityMod.Items.Weapons.Rogue return false; } + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request("CalamityMod/Items/Weapons/Rogue/TerraDiskGlow").Value); + } + public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Weapons/Rogue/TerraDisk.png b/Items/Weapons/Rogue/TerraDisk.png index 32b39a6f1e..a7b123e6f2 100644 Binary files a/Items/Weapons/Rogue/TerraDisk.png and b/Items/Weapons/Rogue/TerraDisk.png differ diff --git a/Items/Weapons/Rogue/TerraDiskGlow.png b/Items/Weapons/Rogue/TerraDiskGlow.png new file mode 100644 index 0000000000..0952f72408 Binary files /dev/null and b/Items/Weapons/Rogue/TerraDiskGlow.png differ diff --git a/Items/Weapons/Summon/PlantationStaff.cs b/Items/Weapons/Summon/PlantationStaff.cs index be0241b999..2fff600df2 100644 --- a/Items/Weapons/Summon/PlantationStaff.cs +++ b/Items/Weapons/Summon/PlantationStaff.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -34,8 +35,8 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - Item.width = 46; - Item.height = 48; + Item.width = 50; + Item.height = 50; Item.damage = 58; Item.DamageType = DamageClass.Summon; Item.shoot = ModContent.ProjectileType(); @@ -58,6 +59,11 @@ namespace CalamityMod.Items.Weapons.Summon return false; } + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request("CalamityMod/Items/Weapons/Summon/PlantationStaffGlow").Value); + } + public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Weapons/Summon/PlantationStaff.png b/Items/Weapons/Summon/PlantationStaff.png index 638749a929..f995f95e8a 100644 Binary files a/Items/Weapons/Summon/PlantationStaff.png and b/Items/Weapons/Summon/PlantationStaff.png differ diff --git a/Items/Weapons/Summon/PlantationStaffGlow.png b/Items/Weapons/Summon/PlantationStaffGlow.png new file mode 100644 index 0000000000..b17834002f Binary files /dev/null and b/Items/Weapons/Summon/PlantationStaffGlow.png differ diff --git a/Projectiles/Melee/Spears/TerraLanceProjectile.png b/Projectiles/Melee/Spears/TerraLanceProjectile.png index e828311256..09fd646880 100644 Binary files a/Projectiles/Melee/Spears/TerraLanceProjectile.png and b/Projectiles/Melee/Spears/TerraLanceProjectile.png differ diff --git a/Projectiles/Ranged/TerraFlamebursterHouldout.cs b/Projectiles/Ranged/TerraFlamebursterHoldout.cs similarity index 91% rename from Projectiles/Ranged/TerraFlamebursterHouldout.cs rename to Projectiles/Ranged/TerraFlamebursterHoldout.cs index 33d3beefda..71f36e2e37 100644 --- a/Projectiles/Ranged/TerraFlamebursterHouldout.cs +++ b/Projectiles/Ranged/TerraFlamebursterHoldout.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Audio; using Terraria.DataStructures; @@ -12,6 +13,8 @@ namespace CalamityMod.Projectiles.Ranged public class TerraFlamebursterHoldout : BaseGunHoldoutProjectile { public override int AssociatedItemID => ModContent.ItemType(); + public override string Texture => "CalamityMod/Projectiles/Ranged/TerraFlamebursterHoldout"; + public override Vector2 GunTipPosition => base.GunTipPosition - Vector2.UnitX.RotatedBy(Projectile.rotation) * 17f - (Vector2.UnitY.RotatedBy(Projectile.rotation) * 7f * Projectile.spriteDirection); public override float MaxOffsetLengthFromArm => 20f; public override float OffsetXUpwards => -5f; public override float BaseOffsetY => -5f; diff --git a/Projectiles/Ranged/TerraFlamebursterHoldout.png b/Projectiles/Ranged/TerraFlamebursterHoldout.png new file mode 100644 index 0000000000..73d499359f Binary files /dev/null and b/Projectiles/Ranged/TerraFlamebursterHoldout.png differ