From 11bdcd6389e90b167d71e03ef85531bee9a86017 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sun, 13 Mar 2022 21:55:06 +0100 Subject: [PATCH 01/15] Added missing local iframes on some projectiles --- Projectiles/Melee/Galaxia_PolarisGazeStar.cs | 3 +++ Projectiles/Melee/MendedBiomeBlade_TrueAridGrandeurShot.cs | 3 +++ Projectiles/Melee/TrueBiomeBlade_SanguineFuryWheel.cs | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/Projectiles/Melee/Galaxia_PolarisGazeStar.cs b/Projectiles/Melee/Galaxia_PolarisGazeStar.cs index 1d57f9f4c5..65daea8576 100644 --- a/Projectiles/Melee/Galaxia_PolarisGazeStar.cs +++ b/Projectiles/Melee/Galaxia_PolarisGazeStar.cs @@ -44,6 +44,9 @@ namespace CalamityMod.Projectiles.Melee projectile.friendly = true; projectile.penetrate = -1; projectile.extraUpdates = 3; + + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 60; } public override bool OnTileCollide(Vector2 oldVelocity) diff --git a/Projectiles/Melee/MendedBiomeBlade_TrueAridGrandeurShot.cs b/Projectiles/Melee/MendedBiomeBlade_TrueAridGrandeurShot.cs index b1ca5d626c..7ede5dd888 100644 --- a/Projectiles/Melee/MendedBiomeBlade_TrueAridGrandeurShot.cs +++ b/Projectiles/Melee/MendedBiomeBlade_TrueAridGrandeurShot.cs @@ -41,6 +41,9 @@ namespace CalamityMod.Projectiles.Melee projectile.friendly = true; projectile.penetrate = -1; projectile.extraUpdates = 1; + + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 30; } public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) diff --git a/Projectiles/Melee/TrueBiomeBlade_SanguineFuryWheel.cs b/Projectiles/Melee/TrueBiomeBlade_SanguineFuryWheel.cs index 3915cde832..60eab4fc40 100644 --- a/Projectiles/Melee/TrueBiomeBlade_SanguineFuryWheel.cs +++ b/Projectiles/Melee/TrueBiomeBlade_SanguineFuryWheel.cs @@ -44,6 +44,10 @@ namespace CalamityMod.Projectiles.Melee projectile.friendly = true; projectile.penetrate = -1; projectile.extraUpdates = 3; + + + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 60; } public override bool OnTileCollide(Vector2 oldVelocity) From 1c320db3f8a5ac5b86997acf43e487b8cb61b700 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sun, 13 Mar 2022 21:59:46 +0100 Subject: [PATCH 02/15] Marine attunement gets a damage boost in water mode --- Items/Weapons/Melee/TrueBiomeBlade.cs | 2 ++ .../Melee/MendedBiomeBlade_GestureForTheDrownedOrb.cs | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Items/Weapons/Melee/TrueBiomeBlade.cs b/Items/Weapons/Melee/TrueBiomeBlade.cs index a0e4d36531..3e1dbd11f0 100644 --- a/Items/Weapons/Melee/TrueBiomeBlade.cs +++ b/Items/Weapons/Melee/TrueBiomeBlade.cs @@ -71,6 +71,8 @@ namespace CalamityMod.Items.Weapons.Melee public static float AstralAttunement_MonolithDamageFalloff = 0.1f; //Damage multiplier for all subsequent hits after the first one. public static int MarineAttunement_BaseDamage = 160; + public static float MarineAttunement_InWaterDamageMultiplier = 2f; + #endregion diff --git a/Projectiles/Melee/MendedBiomeBlade_GestureForTheDrownedOrb.cs b/Projectiles/Melee/MendedBiomeBlade_GestureForTheDrownedOrb.cs index 40a4ae7a46..25adcbcf21 100644 --- a/Projectiles/Melee/MendedBiomeBlade_GestureForTheDrownedOrb.cs +++ b/Projectiles/Melee/MendedBiomeBlade_GestureForTheDrownedOrb.cs @@ -224,6 +224,12 @@ namespace CalamityMod.Projectiles.Melee } } + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + if (WaterMode) + damage = (int)(damage * TrueBiomeBlade.MarineAttunement_InWaterDamageMultiplier); + } + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { if (BounceX) From e920e0d5a8186c1b7ec920efd28693bdf4978b85 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sun, 13 Mar 2022 22:18:50 +0100 Subject: [PATCH 03/15] Adjusted the stats of biome blade --- Items/Weapons/Melee/TrueBiomeBlade.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Items/Weapons/Melee/TrueBiomeBlade.cs b/Items/Weapons/Melee/TrueBiomeBlade.cs index 3e1dbd11f0..f742099a99 100644 --- a/Items/Weapons/Melee/TrueBiomeBlade.cs +++ b/Items/Weapons/Melee/TrueBiomeBlade.cs @@ -39,20 +39,20 @@ namespace CalamityMod.Items.Weapons.Melee public static float EvilAttunement_SlashDamageBoost = 3f; public static int EvilAttunement_SlashIFrames = 60; - public static int ColdAttunement_BaseDamage = 200; + public static int ColdAttunement_BaseDamage = 150; public static float ColdAttunement_SecondSwingBoost = 1.15f; public static float ColdAttunement_ThirdSwingBoost = 1.3f; public static float ColdAttunement_MistDamageReduction = 0.09f; - public static int HotAttunement_BaseDamage = 140; - public static int HotAttunement_FullChargeDamage = 230; + public static int HotAttunement_BaseDamage = 120; + public static int HotAttunement_FullChargeDamage = 160; public static int HotAttunement_ShredIFrames = 8; public static float HotAttunement_ShotDamageBoost = 4.5f; public static int HotAttunement_LocalIFrames = 30; //Be warned its got one extra update so all the iframes should be divided in 2 public static int HotAttunement_LocalIFramesCharged = 16; - public static float HotAttunement_ShredDecayRate = 0.7f; //How much charge is lost per frame. + public static float HotAttunement_ShredDecayRate = 0.65f; //How much charge is lost per frame. - public static int TropicalAttunement_BaseDamage = 115; + public static int TropicalAttunement_BaseDamage = 120; public static float TropicalAttunement_ChainDamageReduction = 0.6f; public static float TropicalAttunement_VineDamageReduction = 0.3f; public static float TropicalAttunement_SweetSpotDamageMultiplier = 1.2f; //It also crits, so be mindful of that @@ -64,14 +64,14 @@ namespace CalamityMod.Items.Weapons.Melee public static float HolyAttunement_ThrowDamageBoost = 3.8f; public static int HolyAttunement_LocalIFrames = 16; //Be warned its got 1 extra update yadda yadda - public static int AstralAttunement_BaseDamage = 500; - public static int AstralAttunement_DashHitIFrames = 30; + public static int AstralAttunement_BaseDamage = 225; + public static int AstralAttunement_DashHitIFrames = 20; public static float AstralAttunement_FullChargeBoost = 2.5f; //The EXTRA damage boost. So putting 1 here will make it deal double damage. Putting 0.5 here will make it deal 1.5x the damage. - public static float AstralAttunement_MonolithDamageBoost = 1f; - public static float AstralAttunement_MonolithDamageFalloff = 0.1f; //Damage multiplier for all subsequent hits after the first one. + public static float AstralAttunement_MonolithDamageBoost = 1.25f; + public static float AstralAttunement_MonolithDamageFalloff = 0.25f; //Damage multiplier for all subsequent hits after the first one. - public static int MarineAttunement_BaseDamage = 160; - public static float MarineAttunement_InWaterDamageMultiplier = 2f; + public static int MarineAttunement_BaseDamage = 300; + public static float MarineAttunement_InWaterDamageMultiplier = 1.5f; #endregion From cd7ebc7ae87f48821f04ca53061066a450433c98 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sun, 13 Mar 2022 22:19:40 +0100 Subject: [PATCH 04/15] Ganked Calamitas' Brew --- Buffs/Potions/AbyssalWeapon.cs | 2 +- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- Items/Potions/CalamitasBrew.cs | 2 +- NPCs/CalamityGlobalNPC.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Buffs/Potions/AbyssalWeapon.cs b/Buffs/Potions/AbyssalWeapon.cs index 4f386c6a7d..33ec746212 100644 --- a/Buffs/Potions/AbyssalWeapon.cs +++ b/Buffs/Potions/AbyssalWeapon.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.Potions public override void SetDefaults() { DisplayName.SetDefault("Abyssal Weapon"); - Description.SetDefault("Melee and rogue weapons inflict abyssal flames, 10% increased movement speed"); + Description.SetDefault("Melee and rogue weapons inflict abyssal flames, 5% increased movement speed"); Main.debuff[Type] = false; Main.pvpBuff[Type] = true; Main.buffNoSave[Type] = false; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 016f9da040..0d66658bbb 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -2714,7 +2714,7 @@ namespace CalamityMod.CalPlayer } if (aWeapon) - player.moveSpeed += 0.1f; + player.moveSpeed += 0.05f; if (molten) player.resistCold = true; diff --git a/Items/Potions/CalamitasBrew.cs b/Items/Potions/CalamitasBrew.cs index 1e17528f0b..5154e47971 100644 --- a/Items/Potions/CalamitasBrew.cs +++ b/Items/Potions/CalamitasBrew.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Potions { DisplayName.SetDefault("Calamitas' Brew"); Tooltip.SetDefault("Adds abyssal flames to your melee and rogue projectiles and melee attacks\n" + - "Increases your movement speed by 10%"); + "Increases your movement speed by 5%"); } public override void SetDefaults() diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index aa65ef000e..dda707e894 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -688,7 +688,7 @@ namespace CalamityMod.NPCs // Abyssal Flames if (aFlames > 0) { - int baseAbyssalFlamesDoTValue = (int)((npc.oiled ? 265 : 125) * heatDamageMult); + int baseAbyssalFlamesDoTValue = (int)((npc.oiled ? 150 : 75) * heatDamageMult); ApplyDPSDebuff(baseAbyssalFlamesDoTValue, baseAbyssalFlamesDoTValue / 5, ref npc.lifeRegen, ref damage); } From 8fc5d4c6f0d3a84b2cf1e5e81a869214bac2a40e Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 14 Mar 2022 04:03:29 +0100 Subject: [PATCH 05/15] "Charged" => "Empowered" --- Items/Weapons/Melee/ArkoftheCosmos.cs | 2 +- Items/Weapons/Melee/ArkoftheElements.cs | 2 +- Items/Weapons/Melee/TrueArkoftheAncients.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Melee/ArkoftheCosmos.cs b/Items/Weapons/Melee/ArkoftheCosmos.cs index deb3436c94..cbe02b9ccc 100644 --- a/Items/Weapons/Melee/ArkoftheCosmos.cs +++ b/Items/Weapons/Melee/ArkoftheCosmos.cs @@ -49,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Melee "You can also parry projectiles and temporarily make them deal 200 less damage\n" + "Parrying will empower the next 10 swings of the sword, letting you use both blades at once"; - const string BlastTooltip = "Using RMB and pressing up while the Ark is charged will throw the blades in front of you to provoke a Big Rip in spacetime, using up all your charges in the process\n" + + const string BlastTooltip = "Using RMB and pressing up while the Ark is empowered will throw the blades in front of you to provoke a Big Rip in spacetime, using up all your charges in the process\n" + "If more than half the charges were used up, you can dash across the rip by keeping the up key pressed down"; diff --git a/Items/Weapons/Melee/ArkoftheElements.cs b/Items/Weapons/Melee/ArkoftheElements.cs index 8219470afc..166cdab8f0 100644 --- a/Items/Weapons/Melee/ArkoftheElements.cs +++ b/Items/Weapons/Melee/ArkoftheElements.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Melee "You can also parry projectiles and temporarily make them deal 200 less damage\n" + "Parrying will empower the next 10 swings of the sword, letting you use both blades at once"; - const string BlastTooltip = "Using RMB and pressing up while the Ark is charged will throw the blades in front of you to provoke a Big Rip in spacetime, using up all your charges in the process"; + const string BlastTooltip = "Using RMB and pressing up while the Ark is empowered will throw the blades in front of you to provoke a Big Rip in spacetime, using up all your charges in the process"; public override void SetStaticDefaults() { diff --git a/Items/Weapons/Melee/TrueArkoftheAncients.cs b/Items/Weapons/Melee/TrueArkoftheAncients.cs index 9bb0427cb4..d2eaf4fb8f 100644 --- a/Items/Weapons/Melee/TrueArkoftheAncients.cs +++ b/Items/Weapons/Melee/TrueArkoftheAncients.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee const string ParryTooltip = "Using RMB will extend the Ark out in front of you. Hitting an enemy with it will parry them, granting you a small window of invulnerability\n" + "You can also parry projectiles and temporarily make them deal 160 less damage\n" + "Parrying will empower the next 10 swings of the sword, boosting their damage and letting them throw stronger projectiles\n" + - "Using RMB and pressing up while the Ark is charged will release all the charges in a powerful burst of energy"; + "Using RMB and pressing up while the Ark is empowered will release all the charges in a powerful burst of energy"; public override void SetStaticDefaults() { From 2228a6db6525f2677de696d678414e7fbdad980f Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 14 Mar 2022 04:03:48 +0100 Subject: [PATCH 06/15] Pixl's galaxia balance testing --- Items/Weapons/Melee/FourSeasonsGalaxia.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Items/Weapons/Melee/FourSeasonsGalaxia.cs b/Items/Weapons/Melee/FourSeasonsGalaxia.cs index a1ca1ce052..b41c5b32d1 100644 --- a/Items/Weapons/Melee/FourSeasonsGalaxia.cs +++ b/Items/Weapons/Melee/FourSeasonsGalaxia.cs @@ -38,8 +38,8 @@ namespace CalamityMod.Items.Weapons.Melee public static int PhoenixAttunement_LocalIFrames = 20; //Remember its got one extra update public static float PhoenixAttunement_BoltDamageReduction = 0.5f; public static float PhoenixAttunement_BoltThrowDamageMultiplier = 1.5f; - public static float PhoenixAttunement_BaseDamageReduction = 0.4f; - public static float PhoenixAttunement_FullChargeDamageBoost = 2f; + public static float PhoenixAttunement_BaseDamageReduction = 0.5f; + public static float PhoenixAttunement_FullChargeDamageBoost = 2.1f; public static float PhoenixAttunement_ThrowDamageBoost = 3.6f; public static int PolarisAttunement_BaseDamage = 1200; @@ -47,19 +47,19 @@ namespace CalamityMod.Items.Weapons.Melee public static int PolarisAttunement_ShredIFrames = 10; public static int PolarisAttunement_LocalIFrames = 30; //Be warned its got one extra update so all the iframes should be divided in 2 public static int PolarisAttunement_LocalIFramesCharged = 16; - public static float PolarisAttunement_SlashDamageBoost = 5f; //Keep in mind the slice always crits + public static float PolarisAttunement_SlashDamageBoost = 13f; //Keep in mind the slice always crits public static int PolarisAttunement_SlashBoltsDamage = 1300; public static int PolarisAttunement_SlashIFrames = 60; public static float PolarisAttunement_ShotDamageBoost = 2f; //The shots fired if the dash connects - public static float PolarisAttunement_ShredChargeupGain = 1f; //How much charge is gainted per second. + public static float PolarisAttunement_ShredChargeupGain = 1.1f; //How much charge is gainted per second. - public static int AndromedaAttunement_BaseDamage = 3500; + public static int AndromedaAttunement_BaseDamage = 2100; public static int AndromedaAttunement_DashHitIFrames = 60; public static float AndromedaAttunement_FullChargeBoost = 5f; //The EXTRA damage boost. So putting 1 here will make it deal double damage. Putting 0.5 here will make it deal 1.5x the damage. - public static float AndromedaAttunement_MonolithDamageBoost = 2f; + public static float AndromedaAttunement_MonolithDamageBoost = 1.75f; public static float AndromedaAttunement_BoltsDamageReduction = 0.2f; //The shots fired as it charges - public static int AriesAttunement_BaseDamage = 1420; + public static int AriesAttunement_BaseDamage = 1100; public static int AriesAttunement_LocalIFrames = 10; public static int AriesAttunement_Reach = 600; public static float AriesAttunement_ChainDamageReduction = 0.2f; From 50ce37d13a308b46c29a62ca35ae1d56983f1a4e Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 14 Mar 2022 04:04:00 +0100 Subject: [PATCH 07/15] Hot attunement on BB gets a slight buff --- Items/Weapons/Melee/TrueBiomeBlade.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Melee/TrueBiomeBlade.cs b/Items/Weapons/Melee/TrueBiomeBlade.cs index f742099a99..53d87fd3ec 100644 --- a/Items/Weapons/Melee/TrueBiomeBlade.cs +++ b/Items/Weapons/Melee/TrueBiomeBlade.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Melee public static float ColdAttunement_ThirdSwingBoost = 1.3f; public static float ColdAttunement_MistDamageReduction = 0.09f; - public static int HotAttunement_BaseDamage = 120; + public static int HotAttunement_BaseDamage = 122; public static int HotAttunement_FullChargeDamage = 160; public static int HotAttunement_ShredIFrames = 8; public static float HotAttunement_ShotDamageBoost = 4.5f; From 1919028b5991aba8180d1bc17decac6722c6234c Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 14 Mar 2022 04:47:44 +0100 Subject: [PATCH 08/15] Lunges use quadratic scaling for their damage boost --- Items/Weapons/Melee/FourSeasonsGalaxia.cs | 2 +- Projectiles/Melee/Galaxia_AndromedasStride.cs | 4 ++-- Projectiles/Melee/MendedBiomeBlade_ExtantAbhorrence.cs | 2 +- Projectiles/Melee/TrueBiomeBlade_MercurialTides.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Melee/FourSeasonsGalaxia.cs b/Items/Weapons/Melee/FourSeasonsGalaxia.cs index b41c5b32d1..0659d286cc 100644 --- a/Items/Weapons/Melee/FourSeasonsGalaxia.cs +++ b/Items/Weapons/Melee/FourSeasonsGalaxia.cs @@ -55,7 +55,7 @@ namespace CalamityMod.Items.Weapons.Melee public static int AndromedaAttunement_BaseDamage = 2100; public static int AndromedaAttunement_DashHitIFrames = 60; - public static float AndromedaAttunement_FullChargeBoost = 5f; //The EXTRA damage boost. So putting 1 here will make it deal double damage. Putting 0.5 here will make it deal 1.5x the damage. + public static float AndromedaAttunement_FullChargeBoost = 4f; //The EXTRA damage boost. So putting 1 here will make it deal double damage. Putting 0.5 here will make it deal 1.5x the damage. public static float AndromedaAttunement_MonolithDamageBoost = 1.75f; public static float AndromedaAttunement_BoltsDamageReduction = 0.2f; //The shots fired as it charges diff --git a/Projectiles/Melee/Galaxia_AndromedasStride.cs b/Projectiles/Melee/Galaxia_AndromedasStride.cs index e77e013927..fa757463dc 100644 --- a/Projectiles/Melee/Galaxia_AndromedasStride.cs +++ b/Projectiles/Melee/Galaxia_AndromedasStride.cs @@ -268,12 +268,12 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - Owner.GiveIFrames(OmegaBiomeBlade.ShockwaveAttunement_DashHitIFrames); + Owner.GiveIFrames(FourSeasonsGalaxia.AndromedaAttunement_DashHitIFrames); } public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - damage = (int)(damage * (1f + OmegaBiomeBlade.ShockwaveAttunement_FullChargeBoost * Charge / MaxCharge)); + damage = (int)(damage * (1f + FourSeasonsGalaxia.AndromedaAttunement_FullChargeBoost * (float)Math.Pow(Charge / MaxCharge, 2))); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Melee/MendedBiomeBlade_ExtantAbhorrence.cs b/Projectiles/Melee/MendedBiomeBlade_ExtantAbhorrence.cs index 86ee6241a4..18fff6a022 100644 --- a/Projectiles/Melee/MendedBiomeBlade_ExtantAbhorrence.cs +++ b/Projectiles/Melee/MendedBiomeBlade_ExtantAbhorrence.cs @@ -249,7 +249,7 @@ namespace CalamityMod.Projectiles.Melee public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - damage = (int)(damage * (1f + TrueBiomeBlade.AstralAttunement_FullChargeBoost * Charge / MaxCharge)); + damage = (int)(damage * (1f + TrueBiomeBlade.AstralAttunement_FullChargeBoost * (float)Math.Pow(Charge / MaxCharge, 2))); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Melee/TrueBiomeBlade_MercurialTides.cs b/Projectiles/Melee/TrueBiomeBlade_MercurialTides.cs index 2ce54768e8..86674c717e 100644 --- a/Projectiles/Melee/TrueBiomeBlade_MercurialTides.cs +++ b/Projectiles/Melee/TrueBiomeBlade_MercurialTides.cs @@ -245,7 +245,7 @@ namespace CalamityMod.Projectiles.Melee public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - damage = (int)(damage * (1f + OmegaBiomeBlade.ShockwaveAttunement_FullChargeBoost * Charge / MaxCharge)); + damage = (int)(damage * (1f + OmegaBiomeBlade.ShockwaveAttunement_FullChargeBoost * (float)Math.Pow(Charge / MaxCharge, 2))); if (Owner.HeldItem.modItem is OmegaBiomeBlade sword && Main.rand.NextFloat() <= OmegaBiomeBlade.ShockwaveAttunement_SwordProc) sword.OnHitProc = true; From 6ca162a3c2ec0c7f2298e8e99f9fcc77ef8cb464 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 14 Mar 2022 04:54:53 +0100 Subject: [PATCH 09/15] Superpogo needs more charge to do a throw --- Items/Weapons/Melee/FourSeasonsGalaxia.cs | 2 +- Items/Weapons/Melee/OmegaBiomeBlade.cs | 2 +- Projectiles/Melee/TrueBiomeBlade_SanguineFury.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Melee/FourSeasonsGalaxia.cs b/Items/Weapons/Melee/FourSeasonsGalaxia.cs index 0659d286cc..041161d4df 100644 --- a/Items/Weapons/Melee/FourSeasonsGalaxia.cs +++ b/Items/Weapons/Melee/FourSeasonsGalaxia.cs @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Melee public static float PolarisAttunement_ShredChargeupGain = 1.1f; //How much charge is gainted per second. public static int AndromedaAttunement_BaseDamage = 2100; - public static int AndromedaAttunement_DashHitIFrames = 60; + public static int AndromedaAttunement_DashHitIFrames = 30; public static float AndromedaAttunement_FullChargeBoost = 4f; //The EXTRA damage boost. So putting 1 here will make it deal double damage. Putting 0.5 here will make it deal 1.5x the damage. public static float AndromedaAttunement_MonolithDamageBoost = 1.75f; public static float AndromedaAttunement_BoltsDamageReduction = 0.2f; //The shots fired as it charges diff --git a/Items/Weapons/Melee/OmegaBiomeBlade.cs b/Items/Weapons/Melee/OmegaBiomeBlade.cs index 7f7d1fb22a..bf1d74ae69 100644 --- a/Items/Weapons/Melee/OmegaBiomeBlade.cs +++ b/Items/Weapons/Melee/OmegaBiomeBlade.cs @@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons.Melee public static int ShockwaveAttunement_BaseDamage = 2500; - public static int ShockwaveAttunement_DashHitIFrames = 60; + public static int ShockwaveAttunement_DashHitIFrames = 30; public static float ShockwaveAttunement_FullChargeBoost = 4f; //The EXTRA damage boost. So putting 1 here will make it deal double damage. Putting 0.5 here will make it deal 1.5x the damage. public static float ShockwaveAttunement_MonolithDamageBoost = 2f; public static float ShockwaveAttunement_MonolithDamageFalloff = 0.1f; //Damage multiplier for all subsequent hits after the first one. diff --git a/Projectiles/Melee/TrueBiomeBlade_SanguineFury.cs b/Projectiles/Melee/TrueBiomeBlade_SanguineFury.cs index 1d038f058b..c8ff5fe3f6 100644 --- a/Projectiles/Melee/TrueBiomeBlade_SanguineFury.cs +++ b/Projectiles/Melee/TrueBiomeBlade_SanguineFury.cs @@ -275,7 +275,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { Main.PlaySound(SoundID.NPCHit43, projectile.Center); - if (ShredRatio > 0.25 && Owner.whoAmI == Main.myPlayer) + if (ShredRatio > 0.8 && Owner.whoAmI == Main.myPlayer) { Projectile.NewProjectile(projectile.Center, direction * 16f, ProjectileType(), (int)(projectile.damage * OmegaBiomeBlade.SuperPogoAttunement_ShotDamageBoost), projectile.knockBack, Owner.whoAmI, Shred); } From ec66a725f879798d944055ced0c9088755e5d340 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 14 Mar 2022 05:12:44 +0100 Subject: [PATCH 10/15] Ark of the Elements gets Nerfed I think this is a kill la kill reference --- Items/Weapons/Melee/ArkoftheElements.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Melee/ArkoftheElements.cs b/Items/Weapons/Melee/ArkoftheElements.cs index 166cdab8f0..a5b3c540ee 100644 --- a/Items/Weapons/Melee/ArkoftheElements.cs +++ b/Items/Weapons/Melee/ArkoftheElements.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Weapons.Melee public override bool CloneNewInstances => true; public const float ComboLenght = 4f; //How many regular swings before the long throw happens - public static float snapDamageMultiplier = 1.3f; //Extra damage from making the scissors snap - public static float chargeDamageMultiplier = 1.3f; //Extra damage from charge + public static float snapDamageMultiplier = 1.2f; //Extra damage from making the scissors snap + public static float chargeDamageMultiplier = 1.2f; //Extra damage from charge public static float needleDamageMultiplier = 0.8f; //Damage multiplier for non-homing needle projectile public static float glassStarDamageMultiplier = 0.2f; //Damage multiplier for the homing glass stars (4 glass stars per shot) @@ -72,7 +72,7 @@ namespace CalamityMod.Items.Weapons.Melee { item.width = 112; item.height = 172; - item.damage = 1305; + item.damage = 600; item.melee = true; item.noUseGraphic = true; item.noMelee = true; From edd168b8ace301de61005b92df894af6fc34f945 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 14 Mar 2022 05:52:24 +0100 Subject: [PATCH 11/15] Ares & thanatos resist the aotc throw by 30% --- Balancing/BalancingChangesManager.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 413bd7a7ee..370cc3552c 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -51,6 +51,9 @@ namespace CalamityMod.Balancing bool MushroomSpearFilter(Projectile p) => p.type == ProjectileID.Mushroom && Main.player[p.owner].ActiveItem().type == ItemID.MushroomSpear; + bool AotCThrowCombo(Projectile p) => + p.type == ProjectileType() && (p.ai[0] == 2 || p.ai[0] == 3); + UniversalBalancingChanges = new List() { // Nerf the T3 Monk Staff by 75% due to its strong primary fire buff. @@ -220,6 +223,9 @@ namespace CalamityMod.Balancing // 50% resist to Enforcer projectiles. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); + // 30% resist to the Spin Throw part of the Ark of the Cosmos' combo + NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.7f, AotCThrowCombo)))); + // 20% resist to Eclipse's Fall stealth strike. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType())))); @@ -266,6 +272,9 @@ namespace CalamityMod.Balancing // 40% resist to Yharim's Crystal. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType())))); + // 30% resist to the Spin Throw part of the Ark of the Cosmos' combo + NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.7f, AotCThrowCombo)))); + // 30% resist to Sirius. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType())))); From 280cf0aa3b1cd3cdc1421fd08355a18b8b6c6aba Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 14 Mar 2022 05:55:53 +0100 Subject: [PATCH 12/15] Aotc nerf --- Items/Weapons/Melee/ArkoftheCosmos.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Items/Weapons/Melee/ArkoftheCosmos.cs b/Items/Weapons/Melee/ArkoftheCosmos.cs index cbe02b9ccc..b249584907 100644 --- a/Items/Weapons/Melee/ArkoftheCosmos.cs +++ b/Items/Weapons/Melee/ArkoftheCosmos.cs @@ -23,10 +23,10 @@ namespace CalamityMod.Items.Weapons.Melee public override bool CloneNewInstances => true; public static float NeedleDamageMultiplier = 0.7f; //Damage on the non-homing needle projectile - public static float MaxThrowReach = 620; - public static float snapDamageMultiplier = 1.3f; //Extra damage from making the scissors snap + public static float MaxThrowReach = 650; + public static float snapDamageMultiplier = 1.2f; //Extra damage from making the scissors snap - public static float chargeDamageMultiplier = 1.3f; //Extra damage from charge + public static float chargeDamageMultiplier = 1.2f; //Extra damage from charge public static float chainDamageMultiplier = 0.1f; public static int DashIframes = 10; @@ -37,8 +37,8 @@ namespace CalamityMod.Items.Weapons.Melee public static float blastFalloffSpeed = 0.1f; //How much the blast damage falls off as you hit more and more targets public static float blastFalloffStrenght = 0.75f; //Value between 0 and 1 that determines how much falloff increases affect the damage : Closer to 0 = damage falls off less intensely, closer to 1 : damage falls off way harder - public static float SwirlBoltAmount = 7f; //The amount of cosmic bolts produced during hte swirl attack - public static float SwirlBoltDamageMultiplier = 1.5f; //This is the damage multiplier for ALL THE BOLTS: Aka, said damage multiplier is divided by the amount of bolts in a swirl and the full damage multiplier is gotten if you hit all the bolts + public static float SwirlBoltAmount = 6f; //The amount of cosmic bolts produced during hte swirl attack + public static float SwirlBoltDamageMultiplier = 0.7f; //This is the damage multiplier for ALL THE BOLTS: Aka, said damage multiplier is divided by the amount of bolts in a swirl and the full damage multiplier is gotten if you hit all the bolts const string ComboTooltip = "Performs a combo of swings, alternating between narrow and wide swings and throwing the blade out every 5 swings\n" + "The thrown blade is held in place by constellations and will follow your cursor\n" + @@ -80,7 +80,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = item.height = 136; - item.damage = 2222; + item.damage = 2000; item.melee = true; item.noMelee = true; item.noUseGraphic = true; From 097082da80479f09a1dd4b6678e26ee5bc8b1b6c Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 14 Mar 2022 06:33:29 +0100 Subject: [PATCH 13/15] Pixl's omega biome blade tweaks --- Items/Weapons/Melee/OmegaBiomeBlade.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Items/Weapons/Melee/OmegaBiomeBlade.cs b/Items/Weapons/Melee/OmegaBiomeBlade.cs index bf1d74ae69..83db6105b0 100644 --- a/Items/Weapons/Melee/OmegaBiomeBlade.cs +++ b/Items/Weapons/Melee/OmegaBiomeBlade.cs @@ -31,36 +31,36 @@ namespace CalamityMod.Items.Weapons.Melee #region stats public static int BaseDamage = 400; - public static int WhirlwindAttunement_BaseDamage = 300; + public static int WhirlwindAttunement_BaseDamage = 240; public static int WhirlwindAttunement_LocalIFrames = 20; //Remember its got one extra update public static int WhirlwindAttunement_SigilTime = 1200; public static float WhirlwindAttunement_BeamDamageReduction = 0.5f; public static float WhirlwindAttunement_BaseDamageReduction = 0.4f; - public static float WhirlwindAttunement_FullChargeDamageBoost = 2f; - public static float WhirlwindAttunement_ThrowDamageBoost = 3.8f; + public static float WhirlwindAttunement_FullChargeDamageBoost = 1.5f; + public static float WhirlwindAttunement_ThrowDamageBoost = 4.5f; public static int WhirlwindAttunement_PassiveBaseDamage = 200; - public static int SuperPogoAttunement_BaseDamage = 500; - public static int SuperPogoAttunement_FullChargeDamage = 750; + public static int SuperPogoAttunement_BaseDamage = 300; + public static int SuperPogoAttunement_FullChargeDamage = 600; public static int SuperPogoAttunement_ShredIFrames = 10; public static int SuperPogoAttunement_LocalIFrames = 30; //Be warned its got one extra update so all the iframes should be divided in 2 public static int SuperPogoAttunement_LocalIFramesCharged = 16; - public static float SuperPogoAttunement_SlashDamageBoost = 5f; //Keep in mind the slice always crits + public static float SuperPogoAttunement_SlashDamageBoost = 3f; //Keep in mind the slice always crits public static int SuperPogoAttunementSlashLifesteal = 6; public static int SuperPogoAttunement_SlashIFrames = 60; - public static float SuperPogoAttunement_ShotDamageBoost = 2f; - public static float SuperPogoAttunement_ShredDecayRate = 0.7f;//How much charge is lost per frame. + public static float SuperPogoAttunement_ShotDamageBoost = 4.5f; + public static float SuperPogoAttunement_ShredDecayRate = 0.65f;//How much charge is lost per frame. public static int SuperPogoAttunement_PassiveLifeSteal = 10; - public static int ShockwaveAttunement_BaseDamage = 2500; + public static int ShockwaveAttunement_BaseDamage = 720; public static int ShockwaveAttunement_DashHitIFrames = 30; public static float ShockwaveAttunement_FullChargeBoost = 4f; //The EXTRA damage boost. So putting 1 here will make it deal double damage. Putting 0.5 here will make it deal 1.5x the damage. - public static float ShockwaveAttunement_MonolithDamageBoost = 2f; - public static float ShockwaveAttunement_MonolithDamageFalloff = 0.1f; //Damage multiplier for all subsequent hits after the first one. + public static float ShockwaveAttunement_MonolithDamageBoost = 1.25f; + public static float ShockwaveAttunement_MonolithDamageFalloff = 0.6f; //Damage multiplier for all subsequent hits after the first one. public static float ShockwaveAttunement_BlastDamageReduction = 0.6f; public static int ShockwaveAttunement_PassiveBaseDamage = 200; From 40ed6934057c0da4157537c9034cdf724b472e6d Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 14 Mar 2022 06:37:08 +0100 Subject: [PATCH 14/15] Buffed the glass stars on aota --- Items/Weapons/Melee/TrueArkoftheAncients.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Melee/TrueArkoftheAncients.cs b/Items/Weapons/Melee/TrueArkoftheAncients.cs index d2eaf4fb8f..ae8bd409dc 100644 --- a/Items/Weapons/Melee/TrueArkoftheAncients.cs +++ b/Items/Weapons/Melee/TrueArkoftheAncients.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee public float Charge = 0f; public static float chargeDamageMultiplier = 1.45f; //Extra damage from charge public static float beamDamageMultiplier = 0.8f; //Damage multiplier for the charged shots (remember it applies ontop of the charge damage multiplied - public static float glassStarDamageMultiplier = 0.2f; //Damage multiplier for the glass stars it shoots (Shoots 3x glass stars when not charged, shoots 2x glass stars + one beam when charged) + public static float glassStarDamageMultiplier = 0.4f; //Damage multiplier for the glass stars it shoots (Shoots 3x glass stars when not charged, shoots 2x glass stars + one beam when charged) public static float blastDamageMultiplier = 0.5f; //Damage multiplier applied ontop of the charge damage multiplier mutliplied by the amount of charges consumed. So if you consume 5 charges, the blast will get multiplied by 5 times the damage multiplier public static float blastFalloffSpeed = 0.1f; //How much the blast damage falls off as you hit more and more targets From 350daefebc9bf793561f2891e4489c0b4bb85b26 Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 14 Mar 2022 02:07:02 -0500 Subject: [PATCH 15/15] Fixed weird dye interactions with translucent things --- Effects/Dyes/AstralBlueDyeShader.fx | 4 ++-- Effects/Dyes/AstralBlueDyeShader.xnb | Bin 2388 -> 2416 bytes Effects/Dyes/AstralDyeShader.fx | 4 ++-- Effects/Dyes/AstralDyeShader.xnb | Bin 2776 -> 2804 bytes Effects/Dyes/AstralOrangeDyeShader.fx | 4 ++-- Effects/Dyes/AstralOrangeDyeShader.xnb | Bin 2688 -> 2716 bytes Effects/Dyes/AstralSwirlDyeShader.fx | 4 ++-- Effects/Dyes/AstralSwirlDyeShader.xnb | Bin 4224 -> 4252 bytes Effects/Dyes/AuricDyeShader.fx | 4 ++-- Effects/Dyes/AuricDyeShader.xnb | Bin 3016 -> 3044 bytes Effects/Dyes/BloodflareDyeShader.fx | 4 ++-- Effects/Dyes/BloodflareDyeShader.xnb | Bin 3344 -> 3372 bytes Effects/Dyes/BrimflameDyeShader.fx | 4 ++-- Effects/Dyes/BrimflameDyeShader.xnb | Bin 2840 -> 2868 bytes Effects/Dyes/CalamitousDyeShader.fx | 4 ++-- Effects/Dyes/CalamitousDyeShader.xnb | Bin 3260 -> 3288 bytes Effects/Dyes/CeaselessDyeShader.fx | 4 ++-- Effects/Dyes/CeaselessDyeShader.xnb | Bin 2308 -> 2336 bytes Effects/Dyes/CosmicFlameShader.fx | 4 ++-- Effects/Dyes/CosmicFlameShader.xnb | Bin 4836 -> 4864 bytes Effects/Dyes/CosmiliteDyeShader.fx | 4 ++-- Effects/Dyes/CosmiliteDyeShader.xnb | Bin 3004 -> 3032 bytes Effects/Dyes/CryonicDyeShader.fx | 4 ++-- Effects/Dyes/CryonicDyeShader.xnb | Bin 3252 -> 3280 bytes Effects/Dyes/DefiledFlameDyeShader.fx | 4 ++-- Effects/Dyes/DefiledFlameDyeShader.xnb | Bin 3420 -> 3448 bytes Effects/Dyes/DragonSoulDyeShader.fx | 2 +- Effects/Dyes/DragonSoulDyeShader.xnb | Bin 3128 -> 3128 bytes Effects/Dyes/ElementalDyeShader.fx | 2 +- Effects/Dyes/ElementalDyeShader.xnb | Bin 2972 -> 2972 bytes Effects/Dyes/EndothermicDyeShader.fx | 4 ++-- Effects/Dyes/EndothermicDyeShader.xnb | Bin 2328 -> 2380 bytes Effects/Dyes/ExoDyeShader.fx | 4 ++-- Effects/Dyes/ExoDyeShader.xnb | Bin 3800 -> 3828 bytes Effects/Dyes/NightmareDyeShader.fx | 4 ++-- Effects/Dyes/NightmareDyeShader.xnb | Bin 2792 -> 2844 bytes Effects/Dyes/PhantoplasmDyeShader.fx | 4 ++-- Effects/Dyes/PhantoplasmDyeShader.xnb | Bin 3348 -> 3376 bytes Effects/Dyes/ProfanedFlameDyeShader.fx | 4 ++-- Effects/Dyes/ProfanedFlameDyeShader.xnb | Bin 3240 -> 3268 bytes Effects/Dyes/ProfanedMoonlightDye.fx | 4 ++-- Effects/Dyes/ProfanedMoonlightDye.xnb | Bin 2352 -> 2380 bytes Effects/Dyes/ReaverDyeShader.fx | 4 ++-- Effects/Dyes/ReaverDyeShader.xnb | Bin 2824 -> 2852 bytes Effects/Dyes/ShadowspecDyeShader.fx | 4 ++-- Effects/Dyes/ShadowspecDyeShader.xnb | Bin 3880 -> 3908 bytes Effects/Dyes/SlimeGodDyeShader.fx | 4 ++-- Effects/Dyes/SlimeGodDyeShader.xnb | Bin 3660 -> 3504 bytes Effects/Dyes/StratusDyeShader.fx | 4 ++-- Effects/Dyes/StratusDyeShader.xnb | Bin 3736 -> 3764 bytes 50 files changed, 48 insertions(+), 48 deletions(-) diff --git a/Effects/Dyes/AstralBlueDyeShader.fx b/Effects/Dyes/AstralBlueDyeShader.fx index 3373d2db78..66d49b2645 100644 --- a/Effects/Dyes/AstralBlueDyeShader.fx +++ b/Effects/Dyes/AstralBlueDyeShader.fx @@ -13,12 +13,12 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); float interval = cos(uTime * 7 + coords.x * 4) / 2 + 0.5; float4 returnColor = float4(lerp(uColor, uSecondaryColor, interval), 1); // Fade between two colors depending on the time and x position on the texture in a 0-1 cosine linear interpolation. The color can vary. - return returnColor * color; // And multiply by the original color to give it a blend effect. + return returnColor * color * sampleColor.a; // And multiply by the original color to give it a blend effect. } technique Technique1 { diff --git a/Effects/Dyes/AstralBlueDyeShader.xnb b/Effects/Dyes/AstralBlueDyeShader.xnb index e49d82be14b59f2cf314e33b1d165b2d8307a2e6..79acc37df7c93b59331005198cdb7e095e16d124 100644 GIT binary patch delta 87 zcmca2^g)O{!q2Ikm7!oF`&`Bo6PM0nWSH#0_>GByVX_6&T}H;uV$7Eq8Cy2LWNBq) n;-4@%h2wz&D+2>F0|S2p1H%&_{y%|{fq{vE1H%9RpMe1YnC2OM delta 68 zcmV-K0K5P264Vk0SWZHB1pri$2b}?|k)@geZ<9a)_5uVLlQ;t10RXcW1JVHjXtU`A ag#(j%2-Xk*000622oHb&0OWxG{{R5~#ubDB diff --git a/Effects/Dyes/AstralDyeShader.fx b/Effects/Dyes/AstralDyeShader.fx index df5d38fc28..8b44f7a6f7 100644 --- a/Effects/Dyes/AstralDyeShader.fx +++ b/Effects/Dyes/AstralDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; @@ -35,7 +35,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO // Become notably darker to reinforce the stone aesthetic. stoneColor.rgb *= 0.2 + noiseColor.r * 0.65; - return (stoneColor + flameColor * 0.4) * color.a; + return (stoneColor + flameColor * 0.4) * sampleColor.a * color.a; } technique Technique1 { diff --git a/Effects/Dyes/AstralDyeShader.xnb b/Effects/Dyes/AstralDyeShader.xnb index 2d0d8cd273c6d5cdd7e513df7d7b7e4170e713b6..6d9200374047d807930c41d6be258469ff46722d 100644 GIT binary patch delta 70 zcmV-M0J;Cz74#JcSWZHB1pxGs2b}>-v84n70SJ?-0gM8wpp!TP-2nl!76Z}&0tg1P c>IBdO0uPY0um}(W2mk=&fB*phkdwFyATrVxuK)l5 delta 58 zcmV-A0LB0G71$LASWZHB1pwHQ2b}>hv84n70RWS#0gM6w0FyWZ-2niz76Z}&0_+8| Q>IBdOv&IMp0+ZYd7$0;JlK=n! diff --git a/Effects/Dyes/AstralOrangeDyeShader.fx b/Effects/Dyes/AstralOrangeDyeShader.fx index d818ed01a9..19f6ef4b48 100644 --- a/Effects/Dyes/AstralOrangeDyeShader.fx +++ b/Effects/Dyes/AstralOrangeDyeShader.fx @@ -13,14 +13,14 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float interval = (cos((uTime - 0.5) * 17 + frameY * 8) / 2 + 0.5); float4 returnColor = float4(lerp(uColor, uSecondaryColor, interval), 1); // One again, use a cosine lerp based on position and time, but this time, with the Y position. - return returnColor * color; + return returnColor * color * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/AstralOrangeDyeShader.xnb b/Effects/Dyes/AstralOrangeDyeShader.xnb index 3b3ba572d100124ae48dc44ac1daaa22980fbce5..3b4cb4e269e6ff2256e7b23f4e8f8e8a30247040 100644 GIT binary patch delta 96 zcmZn=og>N~;pbG&$}ndl`&`B^8<(;$GIC8`#n{8dz%bc@shE*r^BN|0M#jv|TbNB4 w88>Wx$vJgz{tSB#K6Jdz`*dN;s1XI1^|Y@7J2{x diff --git a/Effects/Dyes/AstralSwirlDyeShader.fx b/Effects/Dyes/AstralSwirlDyeShader.fx index 47674dfa44..be2adebc44 100644 --- a/Effects/Dyes/AstralSwirlDyeShader.fx +++ b/Effects/Dyes/AstralSwirlDyeShader.fx @@ -18,7 +18,7 @@ float2 RotatedBy(float2 xy, float theta) return float2(xy.x * cos(theta) + xy.y * sin(theta), xy.x * sin(theta) - xy.y * cos(theta)); } -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. @@ -44,7 +44,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO returnColor = lerp(returnColor, uSecondaryColor, (frameY - 0.5) * 3); } - return float4(returnColor, 1) * color * brightness; + return float4(returnColor, 1) * color * sampleColor.a * brightness; } technique Technique1 { diff --git a/Effects/Dyes/AstralSwirlDyeShader.xnb b/Effects/Dyes/AstralSwirlDyeShader.xnb index 8cb8335ce773b2489099e78835a92a24a50a925e..f304aecef7a49e63079f0bf27f292698a0346fd1 100644 GIT binary patch delta 63 zcmV-F0Kor%A)FxxSWZHB1pu6p2b}@*v89m#0s{b(I0AD40JE$DJOTl*v*`pa2?7t0 VvkVSg0tf&Ah{zRNT!q2IkmEp-m_PLBU8<(;$GUew@UdU9KBLf2y0|$iv|33o*00pobWdHyG delta 73 zcmV-P0Ji_+7swX}SWZHB1pvsA2b}>Rv84n70ssJ$s{vmD0J94M3IPKE006TX1JD5h f+_UKf(FC)`3H|{P0RR9300<9&0088G|Nj60^XC+- diff --git a/Effects/Dyes/BloodflareDyeShader.fx b/Effects/Dyes/BloodflareDyeShader.fx index 8feb36ca88..a703037408 100644 --- a/Effects/Dyes/BloodflareDyeShader.fx +++ b/Effects/Dyes/BloodflareDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float4 pixelBelow = tex2D(uImage0, coords); @@ -33,7 +33,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO // Handle red fades based on noise. color = lerp(color, float4(1, 0, 0, 1), pow(noiseColor.r, 3) * 0.3 + verticalFlowMovement * 0.3 + 0.16) * color.a; - return color * (1 + (1 - outlineFade) * 0.25); + return color * (1 + (1 - outlineFade) * 0.25) * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/BloodflareDyeShader.xnb b/Effects/Dyes/BloodflareDyeShader.xnb index 38f007ade221899c5a5feaaaf1b9117ed0c7b75b..69af3ab93a4bca5a349cc8065a218cfd4bb42598 100644 GIT binary patch delta 97 zcmbOrwML3P!q2Ikl|g4B`&`DBjZ0Y=85t(8VoYE(*v!qu#mLOaz%W^Yc{XF}<}J)7 wjEoMOU$VHeF!4{=tipMRS%H;-fti7Uzkz|_2@wCE094Jyzyaa^|Ifex0G+)UIsgCw delta 78 zcmZ1@H9?9!!q2Ikl|f)4`&`D1jZ0Y=8Tlu#VoYFU*v!qu#mHRS#X4Dnc{Y%{h1rCW iQDyT>7FU+dR-BiZ1sE9^m>4+t8yFa#H2nY1zyJUk9~3+Q diff --git a/Effects/Dyes/BrimflameDyeShader.fx b/Effects/Dyes/BrimflameDyeShader.fx index a1ed9c52e5..f418949a58 100644 --- a/Effects/Dyes/BrimflameDyeShader.fx +++ b/Effects/Dyes/BrimflameDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; @@ -29,7 +29,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO float3 flameColor = lerp(alteredColor, alteredSecondaryColor, fadeToRed); flameColor.r = 0.6 + sqrt(fadeToRed) * 0.4; color = lerp(color, float4(flameColor, 1), 0.45) * color.a; - return color * lerp(1.3, 5.4, pow(flameStreakBrightness, 4.44)); + return color * lerp(1.3, 5.4, pow(flameStreakBrightness, 4.44)) * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/BrimflameDyeShader.xnb b/Effects/Dyes/BrimflameDyeShader.xnb index bc24979c8faeb6cec8996338180f1afc8af4d4d7..1333abdce6cd41a8c9b9974223d4200486f8bffc 100644 GIT binary patch delta 91 zcmbOswndCR!q2IkmBC~p`&`DJjZ0G*8A~Q}Gift@Wu0unbeEa&E9+(n<_nCB9-CjX rY-M5MpRjofX9=SMD+2>F0|S2p1H%&_{y%|{fq{vE1H%9RpMe1Y!*m(P delta 72 zcmV-O0Js0N7MKjU{YXZU|?oo;BR1Hcml-#ConQFFfnjI`2YViFaQA8ARTT1 delta 78 zcmca1xkr*c!q2Ikm0{0B_PLBA8<$RGWa?s_Y{68_$S`>glRl8V!(_>v$H1^zg82d? iS|G$8;pbG&%AhcjeJ*3g#-%KbjO>$FG4?PrOg3k_$IQUMuvvon0wbfz=9et( zOsZ$koUsLpF$6L&u(C7oFJR=our-l;+xFF~w5&TjIxIor9Fy0w%QEp#n0$c!08r7B z1ss!GIZ~b28yFa#0P+6`j0_A+j124zYz(UwK-e5$aaINfpoRQkb&No@AUOsO2><_o G1_l70buP^S delta 153 zcmZ1=)FQ+l;pbG&%D^&_eJ*3n#-%Kbj0}@kG4?PrPBv${#~jtgx>D1ApHOT85jVtrz=AM diff --git a/Effects/Dyes/CosmicFlameShader.fx b/Effects/Dyes/CosmicFlameShader.fx index c22f1386bd..e2853e6b6a 100644 --- a/Effects/Dyes/CosmicFlameShader.fx +++ b/Effects/Dyes/CosmicFlameShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float2 swirlOffset = float2(sin(uTime * 0.26 + 1.754) * 0.31, sin(uTime * 0.26) * 0.16) * uSaturation; @@ -38,7 +38,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO // And create stars based on a noise texture that rise upward. color = lerp(color, float4(starColor, 1) * color.a, fadeToNormal * pow(brightnessFactor, 6) * 0.15); - return color * (1 + brightnessFactor); + return color * (1 + brightnessFactor) * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/CosmicFlameShader.xnb b/Effects/Dyes/CosmicFlameShader.xnb index 5855010558c3b2677a040dc302c3e06592b43bdf..6c9512251b6171f1926b499830c68705de680e08 100644 GIT binary patch delta 109 zcmaE&+Mvb};pbG&%D^Bzkz)>H#Kfhu7#SuzFlI6Vsnv|}jCqr}nY5W07$#dV6*IC< zUc;2hn73Js`4S_O2;b&cEK|6c_$O>G;ZI;z0Gh$fz`)GB^VX_5NF(d2bHB6a|jGM)nFEKK{ z+5D2_BnuP&gv~2B6Bz5682&dfF#Mmu%D}+Pz`)YL$iM)`Fg^prDxmzT1{fbC58|@` z6@%1+*z63U3)mS}Er5tI0>v1BV*eMy^f5881I>H_76++eMDQnC;%*nxVUAnAki8<`oNfb}r|)i5xGPF~C{%g8kOAh$RGVN)=j diff --git a/Effects/Dyes/CryonicDyeShader.fx b/Effects/Dyes/CryonicDyeShader.fx index 3a108d42f8..a0d3c17dd1 100644 --- a/Effects/Dyes/CryonicDyeShader.fx +++ b/Effects/Dyes/CryonicDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float4 noiseColor = tex2D(uImage1, float2(frac(coords.x + uTime * 0.1), frameY)); @@ -31,7 +31,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO if (normalizedDistanceFromCenter > 0.7) fadeToSecondaryColor *= saturate(1 - (normalizedDistanceFromCenter - 0.7) / 0.2); float4 endFadeColor = lerp(float4(uColor, 1), float4(uSecondaryColor, 1), 0.5); - return (lerp(color, endFadeColor, 0.3 + fadeToSecondaryColor * 0.6) * color.a) * (1 + brightness); + return (lerp(color, endFadeColor, 0.3 + fadeToSecondaryColor * 0.6) * color.a) * (1 + brightness) * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/CryonicDyeShader.xnb b/Effects/Dyes/CryonicDyeShader.xnb index b86a3506e9985d3f2a09a584ad7d71132254bc65..ab6b903154324d58023bb0eaafdf42fd4b283ac0 100644 GIT binary patch delta 89 zcmdlYc|npr!q2IkmEpof_PLB26PM0nWSH#0c#5ecb21N;783)*W(%ebOpH%9zhrS_ pW#XT(S%IsCNr9Dtfti7Uzkz|_2@wCEz{tSB#J~aJ|Nqax004pa7=Hi& delta 70 zcmV-M0J;Cr8MGM(SWZHB1pu^>2b}>7k)@geVUs`s$^rlYlMDhX0uP|GI0CQ&0m!rI c1VII}HVS$I5CH%H0ssgPfB*pGfdBsh0Oe2=F8}}l diff --git a/Effects/Dyes/DefiledFlameDyeShader.fx b/Effects/Dyes/DefiledFlameDyeShader.fx index 8d7f5639b6..e1e4e657e0 100644 --- a/Effects/Dyes/DefiledFlameDyeShader.fx +++ b/Effects/Dyes/DefiledFlameDyeShader.fx @@ -17,7 +17,7 @@ static float Variance = 0.4f; static float MinBrightness = 1.5f; static float MaxBrightness = 2.5f; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); @@ -33,7 +33,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO colorMap.rgb *= brightness; colorMap.rgb = colorMap.rgb - colorMap.rgb % Variance; // Slice the return color map to make pixels appear less varied and more extreme - return colorMap * color; + return colorMap * color * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/DefiledFlameDyeShader.xnb b/Effects/Dyes/DefiledFlameDyeShader.xnb index 84676f2986b1027b999edc74e3d577a01afaeae3..ec3d8b6fd39748af4fe770dc27a890997561e4f0 100644 GIT binary patch delta 87 zcmca3^+Sq1!q2Ikm7!uH`&`Bg6PM0nWSH#0_#H@EFx_Qj+$_d?iIK5q^GlYmtW5k9 mHecbYU{YXZU|?oo;BR1Hcml-#ConQFFfnjI`2YViFaQ9|hZ<7= delta 68 zcmV-K0K5PA8r&KOSWZHB1pr);2b}@5k)@ge0+T=i_W^*DI0D@P0J9bY(g6W*v*`r& a1+(f3ZUPVi000622oHb&0OWxG{{R3Ue-=>y diff --git a/Effects/Dyes/DragonSoulDyeShader.fx b/Effects/Dyes/DragonSoulDyeShader.fx index 80cb2729fd..fecf17e862 100644 --- a/Effects/Dyes/DragonSoulDyeShader.fx +++ b/Effects/Dyes/DragonSoulDyeShader.fx @@ -21,7 +21,7 @@ static float3 colors[4] = float3(252, 155, 0) / 255.0 }; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); diff --git a/Effects/Dyes/DragonSoulDyeShader.xnb b/Effects/Dyes/DragonSoulDyeShader.xnb index e1c9fcdecd6de80d6b7bfe9b45b04495065463d9..f89475ae0f8655e1cee04724c670f415dfb87cf5 100644 GIT binary patch delta 34 qcmdlXu|r~mJtHH-WCzA?Oiva}wqPn|WSzW*DT|4LVY39Y0w(~(jS0*E delta 34 qcmdlXu|r~mJtHI2WCzA?ObiT@EtrZK878k`%3|tb-7LYZzzG1Vvlh-im1I6z! zSprEh=DCavo3}8VFft}=e#s)r%)~!o^A~mjMjHl({}UJ)7?>Ct*c(_G{x5*AIT}FX ctPBjy3=I50_LBxiFlJz4;DGS||7TzT09l74+W-In delta 96 zcmV-m0H6QN5||PPSWZHB1ppY42b}?Mk)@gefRjK0X#on8ssW7w0FyWZa{&O8tO73q zZhk)@ge5|cmy%K^ZX3<4?wZE%w~0^I`u006TX j1AGDjK(mzv zn_scyurTpY*zCjE!Dz$4@P7g$0|OHy1A7ApL+Anso1+0F&dR{R%)r18WIt(O1Y-s! M1`Y`S|9=Js0E(|35&!@I delta 79 zcmbOu_Ck~+!q2IkmEi@~M2?o3VJZIa3KxXbn>~Bg1A1 y<_nCBE}LJnsIoHgPgu;t#jL=}z`)GFz~8{Y@C1nePhezVU}E5a@c;j3U;qFw@)@@P delta 81 zcmV-X0IvVA8k8CbSWZHB1ppM02b}?Ik)@gefRjK0X#!((ldA!X0RWRX0(1cdldJ-3 n0R^)d1JD5hD6{DVB?Yq@3ibjJ0RR9300<9&0088G|Nj60&v+Lx diff --git a/Effects/Dyes/ProfanedFlameDyeShader.fx b/Effects/Dyes/ProfanedFlameDyeShader.fx index f1964bc244..2d99c9040b 100644 --- a/Effects/Dyes/ProfanedFlameDyeShader.fx +++ b/Effects/Dyes/ProfanedFlameDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float4 color = tex2D(uImage0, coords); @@ -33,7 +33,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO transformColor = lerp(transformColor, float3(206 / 255, 116 / 255, 59 / 255), orangeFade); color.rgb = lerp(color.rgb, transformColor, fadeMapColor.r); opacity *= color.a; - return color * opacity; + return color * opacity * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/ProfanedFlameDyeShader.xnb b/Effects/Dyes/ProfanedFlameDyeShader.xnb index ae8ab62f8a7b8f2a9e0875b7abd745ef800661ee..c03d1fe7b5a0a00df1f154bf97533dfb81fcb294 100644 GIT binary patch delta 84 zcmZ1>c|?*u!q2IkmEp)l_PLBQ6PM0nWZ3M$c$JZv@hj_Q3FZroj5jvFWLe6}#6Mwk k3zrC!0xJUpGXn#E0|UboApSprk%57Ufdj(-|DS;Y05Mz`82|tP delta 65 zcmV-H0KWgk8K@ZtSWZHB1pug#2b}=`k)@geXtO{8)d2$l006TX1JD5hytC;9r3JH^ X3JL-c0RR9300<9&0088G|Nj60h5Qo( diff --git a/Effects/Dyes/ProfanedMoonlightDye.fx b/Effects/Dyes/ProfanedMoonlightDye.fx index 70dc4c8cb9..19b0f1939f 100644 --- a/Effects/Dyes/ProfanedMoonlightDye.fx +++ b/Effects/Dyes/ProfanedMoonlightDye.fx @@ -13,11 +13,11 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 returnColor = tex2D(uImage0, coords); returnColor.rgb *= uColor * ((cos(uTime) * 0.5 + 0.5) * 0.3 + 1.3); - return returnColor; + return returnColor * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/ProfanedMoonlightDye.xnb b/Effects/Dyes/ProfanedMoonlightDye.xnb index fcbbb887b5f38d928bf75b98fa0aa5deb93b7af4..1b76c7f706b0b67513227a3c1675698d9fdef53a 100644 GIT binary patch delta 90 zcmdlWbVi6h!q2IkmBD8s`&`B)8<(asGBGer=3&wTQ5H;hnHU*1i!)zjWK7unl7*9n niGRZ67aSG}tPBjy3=I4Y3=B_z`2Pe(1_mYu4haAMe+C8sA}kjf delta 71 zcmV-N0J#6m60i~nSWZHB1pqLS2b}?kv881J0(5DU3<4?wRe+N?0^I_q+Orn}(E$NO dv*`p01e5*7_OkT|x59Dw&X)~n;O}1dV%gn&Q zuvvon0wbfv=9escnVI+}Y@Wjr!=%8u9(FfuSOF>pZm|Nk>E003~X B8m<5U delta 84 zcmV-a0IUC`7Kj!HSWZHB1po+<2b}?6k)@gefRjK0X#!((ldAz=0Wgyb0xJRl0FyWZ q-2(xN1+y3f&;bD)v*`rA1GBOSQUVYG000622oHb&0OWxG{{R5+02hk@ diff --git a/Effects/Dyes/ShadowspecDyeShader.fx b/Effects/Dyes/ShadowspecDyeShader.fx index dfa0d8c88b..fcc82f9fce 100644 --- a/Effects/Dyes/ShadowspecDyeShader.fx +++ b/Effects/Dyes/ShadowspecDyeShader.fx @@ -17,7 +17,7 @@ float2 RotatedBy(float theta, float x, float y) { return float2(x * cos(theta) + y * sin(theta), x * sin(theta) - y * cos(theta)); } -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float sineTime = sin(uTime); // Saved so that I don't have the compute this multiple times. Shaders have a limited number of mathematical instructions you can use - 64. float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. @@ -36,7 +36,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO color.rgb *= 0.2 + pow(noiseColor.rgb, 3); // Squash the color to the upper and lower bounds and add a bit of lightness to it. color.rgb *= lerp(uColor, uSecondaryColor, interpolationValue); // Blend with the secondary color. color.rgb *= 1.7 + (sineTime * 0.5 + 1.5) * interpolationValue; // Range of 1.7 to 3.7, can cause certain spots to become very bright. - return color; + return color * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/ShadowspecDyeShader.xnb b/Effects/Dyes/ShadowspecDyeShader.xnb index 773d1339abd392b7e73a3259be6424d92f43e13e..78e40361f9c1f8e74a73194764dc0d3edd78eb67 100644 GIT binary patch delta 93 zcmV-j0HXh>9>g98SWZHB1pq{m2b}?&v84n719D?!ldJ)X0`&!xI0D@RRrLk47z5A& z0a&x?1l0!u50JC83}gZz1poj8000kw0s!QI0094x0RR9300<9&0088G|Nj60XILB> delta 74 zcmV-Q0JZ3YFj9Y$>&@s+>05LCJN_2GzATC%U`K<&V01QpID88vDf;f$ ze9k;@Hk}TCY$ZP53He>YOHF=)@8*A68_#;IlIYVs`fQSyT?o#LYxYP?vPoPmRX))0 delta 1078 zcmZWnJB!p%7(Mq+!e)}48BkmmAC1_kwJ72gTZ#x<1h&*d#7?lVOr{Xl!a`E5Y>@@E zh!&B>MiN&D!#}^D+-4%@cen+FN%3-g`s_Mp z<@e=s{(5(J{`F!wX9bj<6yKPgGHWJBpB^Nizr3%m+@Qv-o;|pZ9CFF7E?sbfu4|ht30FtKfIzyl>V;z;(Br| z3mi~H6-x9f`bHpPVVbWW%l8CNxO~h!>*@i#V%!fWKX;Z0?~cC<6B*jh;yze)L?XtO zYx6;2y8uC?(#PDY2%gp=$pKu0l%d{qs%JbmIijXyVq~$#nr1Pg{r(>1nL)dtW%~-K zS?dtf;VvaTa|fO$Tt%|t2#(dT$KiTcy^9Hn`@7|gmOW|KS>hjI!rdt$n+(KW4m2!o zT&z=|#zo*CQDC{E4(z{y;M)AYEwO|nJUOR3D9R#hWarAmny_g?bt0ic4VS$F=-GR_ rd!lO{c)AEXQii0oIuVt->KjO;gFuU_cr>}Rq4zDFpd7!owgvtIeU#A= diff --git a/Effects/Dyes/StratusDyeShader.fx b/Effects/Dyes/StratusDyeShader.fx index db0b8f5dfe..6cda120537 100644 --- a/Effects/Dyes/StratusDyeShader.fx +++ b/Effects/Dyes/StratusDyeShader.fx @@ -14,7 +14,7 @@ float2 uImageSize0; float2 uImageSize1; static float xAdditiveMax = 0.035; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); float sineTime = sin(uTime); // Saved so that I don't have the compute this multiple times. Shaders have a limited number of mathematical instructions you can use - 64. @@ -34,7 +34,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO color.rgb *= 1.6; // Sometimes give light "patches" depending on the swaying noise image. } color.rgb *= 1.6 + (sineTime * 0.5 + 1.5) * ((frameY + coords.x) - 1) * 2; // Brighten the shader over time. - return color; + return color * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/StratusDyeShader.xnb b/Effects/Dyes/StratusDyeShader.xnb index 5cf6bafdf6d1309bcb2fb312cf4ae332f5765f08..f3faf20b7766d1395380e4c55c8a9ae7d00d8e3e 100644 GIT binary patch delta 83 zcmV-Z0IdI*9kd+>SWZHB1pu^>2b}^84w0sr0RXc=0c!yP1+%OIJOTm8v*`rU1_BR| pv#<-;0w4td00RI34}byy