diff --git a/Buffs/Potions/AstralInjectionBuff.png b/Buffs/Potions/AstralInjectionBuff.png index d9a30ea457..4f6075a4fe 100644 Binary files a/Buffs/Potions/AstralInjectionBuff.png and b/Buffs/Potions/AstralInjectionBuff.png differ diff --git a/Buffs/Potions/PhotosynthesisBuff.png b/Buffs/Potions/PhotosynthesisBuff.png index 9ce34e8e9a..6b3afa0129 100644 Binary files a/Buffs/Potions/PhotosynthesisBuff.png and b/Buffs/Potions/PhotosynthesisBuff.png differ diff --git a/Buffs/StatBuffs/AbsorberRegen.png b/Buffs/StatBuffs/AbsorberRegen.png index e0432a84a8..7d645ee1ab 100644 Binary files a/Buffs/StatBuffs/AbsorberRegen.png and b/Buffs/StatBuffs/AbsorberRegen.png differ diff --git a/Buffs/StatBuffs/GreenJellyRegen.png b/Buffs/StatBuffs/GreenJellyRegen.png index b5cd1f4743..069b673358 100644 Binary files a/Buffs/StatBuffs/GreenJellyRegen.png and b/Buffs/StatBuffs/GreenJellyRegen.png differ diff --git a/Buffs/StatBuffs/PinkJellyRegen.png b/Buffs/StatBuffs/PinkJellyRegen.png index 6dd75f8c34..1105ca95c7 100644 Binary files a/Buffs/StatBuffs/PinkJellyRegen.png and b/Buffs/StatBuffs/PinkJellyRegen.png differ diff --git a/Items/Accessories/CleansingJelly.cs b/Items/Accessories/CleansingJelly.cs index 3a1611de7a..108837fd19 100644 --- a/Items/Accessories/CleansingJelly.cs +++ b/Items/Accessories/CleansingJelly.cs @@ -12,8 +12,8 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { - Item.width = 20; - Item.height = 24; + Item.width = 18; + Item.height = 40; Item.value = CalamityGlobalItem.Rarity1BuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; diff --git a/Items/Accessories/CleansingJelly.png b/Items/Accessories/CleansingJelly.png index 8bcaebe54d..9e57bf762a 100644 Binary files a/Items/Accessories/CleansingJelly.png and b/Items/Accessories/CleansingJelly.png differ diff --git a/Items/Accessories/GrandGelatin.cs b/Items/Accessories/GrandGelatin.cs index 2668c59e0d..9672100ed0 100644 --- a/Items/Accessories/GrandGelatin.cs +++ b/Items/Accessories/GrandGelatin.cs @@ -11,8 +11,8 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { - Item.width = 20; - Item.height = 24; + Item.width = 34; + Item.height = 52; Item.value = CalamityGlobalItem.Rarity5BuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; diff --git a/Items/Accessories/GrandGelatin.png b/Items/Accessories/GrandGelatin.png index fc9bbcb868..3bfd95b68d 100644 Binary files a/Items/Accessories/GrandGelatin.png and b/Items/Accessories/GrandGelatin.png differ diff --git a/Items/Accessories/LifeJelly.cs b/Items/Accessories/LifeJelly.cs index 0c4d0719e6..fc53a320f1 100644 --- a/Items/Accessories/LifeJelly.cs +++ b/Items/Accessories/LifeJelly.cs @@ -11,8 +11,8 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { - Item.width = 20; - Item.height = 24; + Item.width = 18; + Item.height = 40; Item.value = CalamityGlobalItem.Rarity1BuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; diff --git a/Items/Accessories/LifeJelly.png b/Items/Accessories/LifeJelly.png index a037663085..67c9364a04 100644 Binary files a/Items/Accessories/LifeJelly.png and b/Items/Accessories/LifeJelly.png differ diff --git a/Items/Accessories/VitalJelly.cs b/Items/Accessories/VitalJelly.cs index 445249fa27..c2b5f086ad 100644 --- a/Items/Accessories/VitalJelly.cs +++ b/Items/Accessories/VitalJelly.cs @@ -9,8 +9,8 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { - Item.width = 20; - Item.height = 24; + Item.width = 18; + Item.height = 40; Item.value = CalamityGlobalItem.Rarity1BuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; diff --git a/Items/Accessories/VitalJelly.png b/Items/Accessories/VitalJelly.png index c8f1e9bd96..c9c23ef423 100644 Binary files a/Items/Accessories/VitalJelly.png and b/Items/Accessories/VitalJelly.png differ diff --git a/Items/Placeables/Furniture/BossRelics/CalamitasCloneRelic.png b/Items/Placeables/Furniture/BossRelics/CalamitasCloneRelic.png index 3f9728e8ff..730e0e9c11 100644 Binary files a/Items/Placeables/Furniture/BossRelics/CalamitasCloneRelic.png and b/Items/Placeables/Furniture/BossRelics/CalamitasCloneRelic.png differ diff --git a/Items/Placeables/Furniture/BossRelics/CryogenRelic.png b/Items/Placeables/Furniture/BossRelics/CryogenRelic.png index 6c5a445cc8..d82e93259b 100644 Binary files a/Items/Placeables/Furniture/BossRelics/CryogenRelic.png and b/Items/Placeables/Furniture/BossRelics/CryogenRelic.png differ diff --git a/Items/Placeables/Furniture/BossRelics/DragonfollyRelic.png b/Items/Placeables/Furniture/BossRelics/DragonfollyRelic.png index addffbaa58..37b87f6286 100644 Binary files a/Items/Placeables/Furniture/BossRelics/DragonfollyRelic.png and b/Items/Placeables/Furniture/BossRelics/DragonfollyRelic.png differ diff --git a/Items/Weapons/Melee/ArkoftheCosmos.cs b/Items/Weapons/Melee/ArkoftheCosmos.cs index 5a37045429..91875cf480 100644 --- a/Items/Weapons/Melee/ArkoftheCosmos.cs +++ b/Items/Weapons/Melee/ArkoftheCosmos.cs @@ -199,13 +199,15 @@ namespace CalamityMod.Items.Weapons.Melee var barFG = Request("CalamityMod/UI/MiscTextures/GenericBarFront").Value; float barScale = 3f; - - Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 8) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f; + Vector2 barOrigin = barBG.Size() * 0.5f; + float xOffset = frame.Width * 0.25f - barBG.Width * 0.5f; + float yOffset = frame.Height * 0.7f - barBG.Height; + Vector2 drawPos = position + Vector2.UnitX * scale * xOffset + Vector2.UnitY * scale * yOffset; Rectangle frameCrop = new Rectangle(0, 0, (int)(Charge / 10f * barFG.Width), barFG.Height); Color color = Main.hslToRgb((Main.GlobalTimeWrappedHourly * 0.6f) % 1, 1, 0.75f + (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f) * 0.1f); - spriteBatch.Draw(barBG, drawPos, null, color, 0f, origin, scale * barScale, 0f, 0f); - spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, origin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barBG, drawPos, null, color, 0f, barOrigin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, barOrigin, scale * barScale, 0f, 0f); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/ArkoftheElements.cs b/Items/Weapons/Melee/ArkoftheElements.cs index 8c24fa7418..a763b8c8bf 100644 --- a/Items/Weapons/Melee/ArkoftheElements.cs +++ b/Items/Weapons/Melee/ArkoftheElements.cs @@ -215,13 +215,15 @@ namespace CalamityMod.Items.Weapons.Melee var barFG = Request("CalamityMod/UI/MiscTextures/GenericBarFront").Value; float barScale = 3.5f; - - Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 10) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f; + Vector2 barOrigin = barBG.Size() * 0.5f; + float xOffset = frame.Width * 0.25f - barBG.Width * 0.5f; + float yOffset = frame.Height * 0.7f - barBG.Height; + Vector2 drawPos = position + Vector2.UnitX * scale * xOffset + Vector2.UnitY * scale * yOffset; Rectangle frameCrop = new Rectangle(0, 0, (int)(Charge / 10f * barFG.Width), barFG.Height); Color color = Main.hslToRgb(((float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.6f) * 0.5f + 0.5f) * 0.15f, 1, 0.85f + (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f) * 0.1f); - spriteBatch.Draw(barBG, drawPos, null, color, 0f, origin, scale * barScale, 0f, 0f); - spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, origin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barBG, drawPos, null, color, 0f, barOrigin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, barOrigin, scale * barScale, 0f, 0f); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/FracturedArk.cs b/Items/Weapons/Melee/FracturedArk.cs index 4b5ffb090f..d3944f779a 100644 --- a/Items/Weapons/Melee/FracturedArk.cs +++ b/Items/Weapons/Melee/FracturedArk.cs @@ -126,12 +126,15 @@ namespace CalamityMod.Items.Weapons.Melee var barBG = Request("CalamityMod/UI/MiscTextures/GenericBarBack").Value; var barFG = Request("CalamityMod/UI/MiscTextures/GenericBarFront").Value; - Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 2) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f; + Vector2 barOrigin = barBG.Size() * 0.5f; + float xOffset = frame.Width * 0.25f - barBG.Width * 0.5f; + float yOffset = frame.Height * 0.8f - barBG.Height; + Vector2 drawPos = position + Vector2.UnitX * scale * xOffset + Vector2.UnitY * scale * yOffset; Rectangle frameCrop = new Rectangle(0, 0, (int)(Charge / 10f * barFG.Width), barFG.Height); Color color = Main.hslToRgb((Main.GlobalTimeWrappedHourly * 0.6f) % 1, 1, 0.85f + (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f) * 0.1f); - spriteBatch.Draw(barBG, drawPos, null, color , 0f, origin, scale * barScale, 0f, 0f); - spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, origin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barBG, drawPos, null, color , 0f, barOrigin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, barOrigin, scale * barScale, 0f, 0f); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/TrueArkoftheAncients.cs b/Items/Weapons/Melee/TrueArkoftheAncients.cs index 8c27ed48dc..21d38eb4e7 100644 --- a/Items/Weapons/Melee/TrueArkoftheAncients.cs +++ b/Items/Weapons/Melee/TrueArkoftheAncients.cs @@ -156,13 +156,15 @@ namespace CalamityMod.Items.Weapons.Melee var barFG = Request("CalamityMod/UI/MiscTextures/GenericBarFront").Value; float barScale = 1.5f; - - Vector2 drawPos = position + Vector2.UnitY * ( frame.Height - 2f ) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f; + Vector2 barOrigin = barBG.Size() * 0.5f; + float xOffset = frame.Width * 0.25f - barBG.Width * 0.5f; + float yOffset = frame.Height * 0.8f - barBG.Height; + Vector2 drawPos = position + Vector2.UnitX * scale * xOffset + Vector2.UnitY * scale * yOffset; Rectangle frameCrop = new Rectangle(0, 0, (int)(Charge / 10f * barFG.Width), barFG.Height); Color color = Main.hslToRgb((Main.GlobalTimeWrappedHourly * 0.6f) % 1, 1, 0.85f + (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f) * 0.1f); - spriteBatch.Draw(barBG, drawPos, null, color, 0f, origin, scale * barScale, 0f, 0f); - spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, origin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barBG, drawPos, null, color, 0f, barOrigin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, barOrigin, scale * barScale, 0f, 0f); } public override void AddRecipes() diff --git a/Items/Weapons/Summon/BlackHawkRemote.cs b/Items/Weapons/Summon/BlackHawkRemote.cs index 057601f3fc..0e2d713056 100644 --- a/Items/Weapons/Summon/BlackHawkRemote.cs +++ b/Items/Weapons/Summon/BlackHawkRemote.cs @@ -14,8 +14,8 @@ namespace CalamityMod.Items.Weapons.Summon { Item.damage = 25; Item.mana = 10; - Item.width = 46; - Item.height = 28; + Item.width = 38; + Item.height = 40; Item.useTime = Item.useAnimation = 24; Item.useStyle = ItemUseStyleID.HoldUp; Item.noMelee = true; diff --git a/Items/Weapons/Summon/BlackHawkRemote.png b/Items/Weapons/Summon/BlackHawkRemote.png index e8010b62be..46c57edda5 100644 Binary files a/Items/Weapons/Summon/BlackHawkRemote.png and b/Items/Weapons/Summon/BlackHawkRemote.png differ diff --git a/Items/Weapons/Summon/DeathstareRod.cs b/Items/Weapons/Summon/DeathstareRod.cs index 57418535a3..786af1ad05 100644 --- a/Items/Weapons/Summon/DeathstareRod.cs +++ b/Items/Weapons/Summon/DeathstareRod.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Summon { Item.damage = 33; Item.mana = 10; - Item.width = Item.height = 42; + Item.width = Item.height = 46; Item.useTime = Item.useAnimation = 35; Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; diff --git a/Items/Weapons/Summon/DeathstareRod.png b/Items/Weapons/Summon/DeathstareRod.png index fdabc4bd48..59272ca7fe 100644 Binary files a/Items/Weapons/Summon/DeathstareRod.png and b/Items/Weapons/Summon/DeathstareRod.png differ diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index 0f2df3541f..2521bf71ef 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -932,7 +932,7 @@ BrimstoneElementalRelic: { CalamitasCloneRelic: { DisplayName: Calamitas Clone Relic - Tooltip: A glimpse into what could have been... + Tooltip: "" } CalamitasRelic: { @@ -957,7 +957,7 @@ CragmawMireRelic: { CryogenRelic: { DisplayName: Cryogen Relic - Tooltip: A glimpse into what could have been... + Tooltip: "" } DesertScourgeRelic: { @@ -977,7 +977,7 @@ DraedonRelic: { DragonfollyRelic: { DisplayName: Dragonfolly Relic - Tooltip: A glimpse into what could have been... + Tooltip: "" } GiantClamRelic: { @@ -4024,4 +4024,4 @@ WaterTurret: { Shoots high-speed water blasts at nearby enemies Cannot attack while a boss is alive ''' -} \ No newline at end of file +} diff --git a/NPCs/NormalNPCs/Stormlion.cs b/NPCs/NormalNPCs/Stormlion.cs index 6e89077e0a..fb02481c3c 100644 --- a/NPCs/NormalNPCs/Stormlion.cs +++ b/NPCs/NormalNPCs/Stormlion.cs @@ -94,7 +94,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(BuffID.Electrified, 120, true); + target.AddBuff(BuffID.Electrified, 30, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/Projectiles/Boss/CirrusBlaster.cs b/Projectiles/Boss/CirrusBlaster.cs index ccb1697fb2..cefe1a51b7 100644 --- a/Projectiles/Boss/CirrusBlaster.cs +++ b/Projectiles/Boss/CirrusBlaster.cs @@ -44,7 +44,8 @@ namespace CalamityMod.Projectiles.Boss else if (Projectile.ai[0] >= 55f) { Projectile.ai[0] = 90f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, storedVelocity, ModContent.ProjectileType(), Projectile.damage, 0f, Projectile.owner, Projectile.ai[1], Projectile.whoAmI); + if (Projectile.owner == Main.myPlayer) + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, storedVelocity, ModContent.ProjectileType(), Projectile.damage, 0f, Projectile.owner, Projectile.ai[1], Projectile.whoAmI); SoundEngine.PlaySound(SANSFire, Projectile.Center); // Funny Gaster Blaster sounds #2 } diff --git a/Projectiles/Boss/RavagerBlaster.cs b/Projectiles/Boss/RavagerBlaster.cs index 7a9e0551f9..5bff5ee0a7 100644 --- a/Projectiles/Boss/RavagerBlaster.cs +++ b/Projectiles/Boss/RavagerBlaster.cs @@ -43,7 +43,8 @@ namespace CalamityMod.Projectiles.Boss else if (Projectile.ai[0] >= 55f) { Projectile.ai[0] = 90f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, storedVelocity, ModContent.ProjectileType(), Projectile.damage, 0f, Projectile.owner, Projectile.ai[1], Projectile.whoAmI); + if (Projectile.owner == Main.myPlayer) + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, storedVelocity, ModContent.ProjectileType(), Projectile.damage, 0f, Projectile.owner, Projectile.ai[1], Projectile.whoAmI); SoundEngine.PlaySound(SANSFire, Projectile.Center); //Funny Gaster Blaster sounds #2 } diff --git a/Projectiles/Rogue/EclipseStealthBoom.cs b/Projectiles/Rogue/EclipseStealthBoom.cs index dc1441f7be..d258de5353 100644 --- a/Projectiles/Rogue/EclipseStealthBoom.cs +++ b/Projectiles/Rogue/EclipseStealthBoom.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Rogue { Texture2D glow = ModContent.Request(Texture + "Glow").Value; Rectangle frame = glow.Frame(1, Main.projFrames[Type], 0, Projectile.frame); - Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, frame, Color.White, Projectile.rotation, frame.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, frame, Color.White, Projectile.rotation, frame.Size() * 0.5f, Projectile.scale, SpriteEffects.None); } } } diff --git a/Projectiles/Rogue/EclipsesFallMain.cs b/Projectiles/Rogue/EclipsesFallMain.cs index c533adb17c..a0914ecccf 100644 --- a/Projectiles/Rogue/EclipsesFallMain.cs +++ b/Projectiles/Rogue/EclipsesFallMain.cs @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Rogue public override void PostDraw(Color lightColor) { Texture2D glow = ModContent.Request(Texture + "Glow").Value; - Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() * 0.5f, Projectile.scale, SpriteEffects.None); } } } diff --git a/Projectiles/Rogue/EclipsesSmol.cs b/Projectiles/Rogue/EclipsesSmol.cs index 1000f9603e..2d15f0772f 100644 --- a/Projectiles/Rogue/EclipsesSmol.cs +++ b/Projectiles/Rogue/EclipsesSmol.cs @@ -29,14 +29,14 @@ namespace CalamityMod.Projectiles.Rogue public override bool PreDraw(ref Color lightColor) { Texture2D tex = ModContent.Request(Texture).Value; - Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() * 0.5f, Projectile.scale, SpriteEffects.None); return false; } public override void PostDraw(Color lightColor) { Texture2D glow = ModContent.Request(Texture + "Glow").Value; - Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() * 0.5f, Projectile.scale, SpriteEffects.None); } } } diff --git a/Projectiles/Rogue/EclipsesStealth.cs b/Projectiles/Rogue/EclipsesStealth.cs index 1b71e7d58d..0586d87a7a 100644 --- a/Projectiles/Rogue/EclipsesStealth.cs +++ b/Projectiles/Rogue/EclipsesStealth.cs @@ -116,7 +116,7 @@ namespace CalamityMod.Projectiles.Rogue public override void PostDraw(Color lightColor) { Texture2D glow = ModContent.Request(Texture + "Glow").Value; - Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() * 0.5f, Projectile.scale, SpriteEffects.None); } public override bool? CanHitNPC(NPC target) => Projectile.ai[0] == 1f ? false : base.CanHitNPC(target); diff --git a/Projectiles/Rogue/UmbraphileBoom.cs b/Projectiles/Rogue/UmbraphileBoom.cs index fb9924cd18..4bdbbd87e0 100644 --- a/Projectiles/Rogue/UmbraphileBoom.cs +++ b/Projectiles/Rogue/UmbraphileBoom.cs @@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Rogue { Texture2D glow = ModContent.Request(Texture + "Glow").Value; Rectangle frame = glow.Frame(1, Main.projFrames[Type], 0, Projectile.frame); - Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, frame, Color.White, Projectile.rotation, frame.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, frame, Color.White, Projectile.rotation, frame.Size() * 0.5f, Projectile.scale, SpriteEffects.None); } } } diff --git a/Projectiles/Summon/BlackHawkGlow.png b/Projectiles/Summon/BlackHawkGlow.png index 24479cb839..0f050a39f9 100644 Binary files a/Projectiles/Summon/BlackHawkGlow.png and b/Projectiles/Summon/BlackHawkGlow.png differ diff --git a/Projectiles/Summon/BlackHawkSummon.cs b/Projectiles/Summon/BlackHawkSummon.cs index c0a0c0901d..0637fce633 100644 --- a/Projectiles/Summon/BlackHawkSummon.cs +++ b/Projectiles/Summon/BlackHawkSummon.cs @@ -18,15 +18,14 @@ namespace CalamityMod.Projectiles.Summon public override void SetStaticDefaults() { - ProjectileID.Sets.MinionSacrificable[Projectile.type] = true; - ProjectileID.Sets.MinionTargettingFeature[Projectile.type] = true; - Main.projFrames[Projectile.type] = 3; + ProjectileID.Sets.MinionSacrificable[Type] = true; + ProjectileID.Sets.MinionTargettingFeature[Type] = true; + Main.projFrames[Type] = 6; } public override void SetDefaults() { - Projectile.width = 36; - Projectile.height = 36; + Projectile.width = Projectile.height = 32; Projectile.netImportant = true; Projectile.friendly = true; Projectile.ignoreWater = true; @@ -95,7 +94,7 @@ namespace CalamityMod.Projectiles.Summon Projectile.frame++; Projectile.frameCounter = 0; } - if (Projectile.frame >= Main.projFrames[Projectile.type]) + if (Projectile.frame >= Main.projFrames[Type]) { Projectile.frame = 0; } @@ -306,13 +305,10 @@ namespace CalamityMod.Projectiles.Summon public override bool PreDraw(ref Color lightColor) { Texture2D texture = ModContent.Request(Texture).Value; - int frameHeight = texture.Height / Main.projFrames[Projectile.type]; - int y6 = frameHeight * Projectile.frame; - SpriteEffects spriteEffects = SpriteEffects.None; - if (Projectile.spriteDirection == -1) - spriteEffects = SpriteEffects.FlipHorizontally; + Rectangle frame = texture.Frame(1, Main.projFrames[Type], 0, Projectile.frame); + SpriteEffects spriteEffects = Projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None; - Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture.Width, frameHeight)), Projectile.GetAlpha(lightColor), Projectile.rotation, new Vector2(texture.Width / 2f, frameHeight / 2f), Projectile.scale, spriteEffects, 0); + Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation, frame.Size() * 0.5f, Projectile.scale, spriteEffects); return false; } @@ -320,13 +316,10 @@ namespace CalamityMod.Projectiles.Summon public override void PostDraw(Color lightColor) { Texture2D texture = ModContent.Request("CalamityMod/Projectiles/Summon/BlackHawkGlow").Value; - int frameHeight = texture.Height / Main.projFrames[Projectile.type]; - int y6 = frameHeight * Projectile.frame; - SpriteEffects spriteEffects = SpriteEffects.None; - if (Projectile.spriteDirection == -1) - spriteEffects = SpriteEffects.FlipHorizontally; + Rectangle frame = texture.Frame(1, Main.projFrames[Type], 0, Projectile.frame); + SpriteEffects spriteEffects = Projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None; - Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture.Width, frameHeight)), Color.White, Projectile.rotation, new Vector2(texture.Width / 2f, frameHeight / 2f), Projectile.scale, spriteEffects, 0); + Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, frame, Color.White, Projectile.rotation, frame.Size() * 0.5f, Projectile.scale, spriteEffects); } } } diff --git a/Projectiles/Summon/BlackHawkSummon.png b/Projectiles/Summon/BlackHawkSummon.png index 0567fd7c2d..ddb588f9b1 100644 Binary files a/Projectiles/Summon/BlackHawkSummon.png and b/Projectiles/Summon/BlackHawkSummon.png differ diff --git a/Projectiles/Summon/DeathstareEyePupil.png b/Projectiles/Summon/DeathstareEyePupil.png index ea9db1fb5d..487e286d6a 100644 Binary files a/Projectiles/Summon/DeathstareEyePupil.png and b/Projectiles/Summon/DeathstareEyePupil.png differ diff --git a/Projectiles/Summon/DeathstareEyeball.cs b/Projectiles/Summon/DeathstareEyeball.cs index cb96b98350..e634522270 100644 --- a/Projectiles/Summon/DeathstareEyeball.cs +++ b/Projectiles/Summon/DeathstareEyeball.cs @@ -23,15 +23,15 @@ namespace CalamityMod.Projectiles.Summon public override void SetStaticDefaults() { - Main.projFrames[Projectile.type] = 4; - ProjectileID.Sets.NeedsUUID[Projectile.type] = true; - ProjectileID.Sets.MinionSacrificable[Projectile.type] = true; - ProjectileID.Sets.MinionTargettingFeature[Projectile.type] = true; + Main.projFrames[Type] = 6; + ProjectileID.Sets.NeedsUUID[Type] = true; + ProjectileID.Sets.MinionSacrificable[Type] = true; + ProjectileID.Sets.MinionTargettingFeature[Type] = true; } public override void SetDefaults() { - Projectile.width = Projectile.height = 16; + Projectile.width = Projectile.height = 22; Projectile.netImportant = true; Projectile.friendly = true; Projectile.ignoreWater = true; @@ -159,16 +159,15 @@ namespace CalamityMod.Projectiles.Summon public override bool PreDraw(ref Color lightColor) { Texture2D eyeTexture = ModContent.Request(Texture).Value; - Rectangle frame = eyeTexture.Frame(1, 4, 0, Projectile.frame); - Vector2 origin = frame.Size() * 0.5f; + Rectangle frame = eyeTexture.Frame(1, Main.projFrames[Type], 0, Projectile.frame); SpriteEffects spriteEffects = Owner.gravDir == 1 ? SpriteEffects.None : SpriteEffects.FlipVertically; - Main.EntitySpriteDraw(eyeTexture, Projectile.Center - Main.screenPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(eyeTexture, Projectile.Center - Main.screenPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation, frame.Size() * 0.5f, Projectile.scale, SpriteEffects.None); // Pupil drawing. Texture2D pupilTexture = ModContent.Request("CalamityMod/Projectiles/Summon/DeathstareEyePupil").Value; Vector2 pupilDrawPosition = Projectile.Center - Main.screenPosition + PupilAngle.ToRotationVector2() * PupilOutwardness; - pupilDrawPosition -= Vector2.UnitY * 4f; - Main.EntitySpriteDraw(pupilTexture, pupilDrawPosition, null, Projectile.GetAlpha(lightColor), PupilAngle, pupilTexture.Size() * 0.5f, PupilScale, SpriteEffects.None, 0); + pupilDrawPosition -= Vector2.UnitY * 6f; + Main.EntitySpriteDraw(pupilTexture, pupilDrawPosition, null, Projectile.GetAlpha(lightColor), PupilAngle, pupilTexture.Size() * 0.5f, PupilScale, SpriteEffects.None); return false; } diff --git a/Projectiles/Summon/DeathstareEyeball.png b/Projectiles/Summon/DeathstareEyeball.png index 6825c3c664..6e6ab72a1b 100644 Binary files a/Projectiles/Summon/DeathstareEyeball.png and b/Projectiles/Summon/DeathstareEyeball.png differ diff --git a/Tiles/Furniture/BossRelics/CalamitasCloneRelic.png b/Tiles/Furniture/BossRelics/CalamitasCloneRelic.png index e53d4d05a3..65aba51865 100644 Binary files a/Tiles/Furniture/BossRelics/CalamitasCloneRelic.png and b/Tiles/Furniture/BossRelics/CalamitasCloneRelic.png differ diff --git a/Tiles/Furniture/BossRelics/CryogenRelic.png b/Tiles/Furniture/BossRelics/CryogenRelic.png index 50dc7a9f14..26aded2fc8 100644 Binary files a/Tiles/Furniture/BossRelics/CryogenRelic.png and b/Tiles/Furniture/BossRelics/CryogenRelic.png differ diff --git a/Tiles/Furniture/BossRelics/DragonfollyRelic.png b/Tiles/Furniture/BossRelics/DragonfollyRelic.png index 921f989445..179a47924f 100644 Binary files a/Tiles/Furniture/BossRelics/DragonfollyRelic.png and b/Tiles/Furniture/BossRelics/DragonfollyRelic.png differ