diff --git a/Buffs/StatBuffs/SilvaRevival.png b/Buffs/StatBuffs/SilvaRevival.png index 66805fbf1a..5ee34afc5c 100644 Binary files a/Buffs/StatBuffs/SilvaRevival.png and b/Buffs/StatBuffs/SilvaRevival.png differ diff --git a/Buffs/StatDebuffs/SilvaStun.png b/Buffs/StatDebuffs/SilvaStun.png index 3eff49329b..cc9520f3e2 100644 Binary files a/Buffs/StatDebuffs/SilvaStun.png and b/Buffs/StatDebuffs/SilvaStun.png differ diff --git a/Buffs/Summon/SilvaSummonSetBuff.png b/Buffs/Summon/SilvaSummonSetBuff.png index 1f3176397c..ec40151b76 100644 Binary files a/Buffs/Summon/SilvaSummonSetBuff.png and b/Buffs/Summon/SilvaSummonSetBuff.png differ diff --git a/Gores/CeaselessVoid.png b/Gores/CeaselessVoid.png index 1bde2ba6b0..e26e475987 100644 Binary files a/Gores/CeaselessVoid.png and b/Gores/CeaselessVoid.png differ diff --git a/Gores/CeaselessVoid2.png b/Gores/CeaselessVoid2.png index 04ab5206aa..886a98058c 100644 Binary files a/Gores/CeaselessVoid2.png and b/Gores/CeaselessVoid2.png differ diff --git a/Gores/CeaselessVoid3.png b/Gores/CeaselessVoid3.png index 254a4bf9d0..b48f7be827 100644 Binary files a/Gores/CeaselessVoid3.png and b/Gores/CeaselessVoid3.png differ diff --git a/Gores/CeaselessVoid4.png b/Gores/CeaselessVoid4.png deleted file mode 100644 index 95a61e7665..0000000000 Binary files a/Gores/CeaselessVoid4.png and /dev/null differ diff --git a/Gores/CeaselessVoid5.png b/Gores/CeaselessVoid5.png deleted file mode 100644 index 877a2dd894..0000000000 Binary files a/Gores/CeaselessVoid5.png and /dev/null differ diff --git a/Gores/SWArmor.png b/Gores/SWArmor.png deleted file mode 100644 index b0c93ce836..0000000000 Binary files a/Gores/SWArmor.png and /dev/null differ diff --git a/Gores/SWArmor2.png b/Gores/SWArmor2.png deleted file mode 100644 index d8c80c5da3..0000000000 Binary files a/Gores/SWArmor2.png and /dev/null differ diff --git a/Gores/SWArmor3.png b/Gores/SWArmor3.png deleted file mode 100644 index e5180b4086..0000000000 Binary files a/Gores/SWArmor3.png and /dev/null differ diff --git a/Gores/SWArmor4.png b/Gores/SWArmor4.png deleted file mode 100644 index 33fff6bf81..0000000000 Binary files a/Gores/SWArmor4.png and /dev/null differ diff --git a/Gores/SWArmor5.png b/Gores/SWArmor5.png deleted file mode 100644 index 2a745c93d8..0000000000 Binary files a/Gores/SWArmor5.png and /dev/null differ diff --git a/Gores/SWArmorBody1.png b/Gores/SWArmorBody1.png new file mode 100644 index 0000000000..3ef818f7f5 Binary files /dev/null and b/Gores/SWArmorBody1.png differ diff --git a/Gores/SWArmorBody2.png b/Gores/SWArmorBody2.png new file mode 100644 index 0000000000..8261a0320b Binary files /dev/null and b/Gores/SWArmorBody2.png differ diff --git a/Gores/SWArmorBody3.png b/Gores/SWArmorBody3.png new file mode 100644 index 0000000000..6b3457b226 Binary files /dev/null and b/Gores/SWArmorBody3.png differ diff --git a/Gores/SWArmorHead1.png b/Gores/SWArmorHead1.png new file mode 100644 index 0000000000..78ca8f974f Binary files /dev/null and b/Gores/SWArmorHead1.png differ diff --git a/Gores/SWArmorTail1.png b/Gores/SWArmorTail1.png new file mode 100644 index 0000000000..01a90c16d2 Binary files /dev/null and b/Gores/SWArmorTail1.png differ diff --git a/Gores/SWArmorTail2.png b/Gores/SWArmorTail2.png new file mode 100644 index 0000000000..20bc737a12 Binary files /dev/null and b/Gores/SWArmorTail2.png differ diff --git a/Gores/SWNude.png b/Gores/SWNude.png deleted file mode 100644 index 4529134f6c..0000000000 Binary files a/Gores/SWNude.png and /dev/null differ diff --git a/Gores/SWNude2.png b/Gores/SWNude2.png deleted file mode 100644 index e6df2fa593..0000000000 Binary files a/Gores/SWNude2.png and /dev/null differ diff --git a/Gores/SWNude3.png b/Gores/SWNude3.png deleted file mode 100644 index 6798db66c8..0000000000 Binary files a/Gores/SWNude3.png and /dev/null differ diff --git a/Gores/SWNude4.png b/Gores/SWNude4.png deleted file mode 100644 index 466f39086f..0000000000 Binary files a/Gores/SWNude4.png and /dev/null differ diff --git a/Gores/SWNude5.png b/Gores/SWNude5.png deleted file mode 100644 index 45759858ff..0000000000 Binary files a/Gores/SWNude5.png and /dev/null differ diff --git a/Gores/SWNudeBody1.png b/Gores/SWNudeBody1.png new file mode 100644 index 0000000000..574994611d Binary files /dev/null and b/Gores/SWNudeBody1.png differ diff --git a/Gores/SWNudeBody2.png b/Gores/SWNudeBody2.png new file mode 100644 index 0000000000..c8f6ea95bb Binary files /dev/null and b/Gores/SWNudeBody2.png differ diff --git a/Gores/SWNudeBody3.png b/Gores/SWNudeBody3.png new file mode 100644 index 0000000000..5515c9818b Binary files /dev/null and b/Gores/SWNudeBody3.png differ diff --git a/Gores/SWNudeHead1.png b/Gores/SWNudeHead1.png new file mode 100644 index 0000000000..3c643e0c8d Binary files /dev/null and b/Gores/SWNudeHead1.png differ diff --git a/Gores/SWNudeHead2.png b/Gores/SWNudeHead2.png new file mode 100644 index 0000000000..1c8b4286cc Binary files /dev/null and b/Gores/SWNudeHead2.png differ diff --git a/Gores/SWNudeTail1.png b/Gores/SWNudeTail1.png new file mode 100644 index 0000000000..679b3017ea Binary files /dev/null and b/Gores/SWNudeTail1.png differ diff --git a/Gores/SWNudeTail2.png b/Gores/SWNudeTail2.png new file mode 100644 index 0000000000..596c28fc04 Binary files /dev/null and b/Gores/SWNudeTail2.png differ diff --git a/Gores/StasisProbe1.png b/Gores/StasisProbe1.png new file mode 100644 index 0000000000..5ea916d95b Binary files /dev/null and b/Gores/StasisProbe1.png differ diff --git a/Gores/StasisProbeNaked1.png b/Gores/StasisProbeNaked1.png new file mode 100644 index 0000000000..c60d12338b Binary files /dev/null and b/Gores/StasisProbeNaked1.png differ diff --git a/Items/Accessories/CrawCarapace.cs b/Items/Accessories/CrawCarapace.cs index 8162cb00a6..d21d4806b9 100644 --- a/Items/Accessories/CrawCarapace.cs +++ b/Items/Accessories/CrawCarapace.cs @@ -15,8 +15,8 @@ namespace CalamityMod.Items.Accessories public override void SetDefaults() { item.defense = 3; - item.width = 20; - item.height = 24; + item.width = 28; + item.height = 28; item.value = Item.buyPrice(0, 3, 0, 0); item.rare = 1; item.accessory = true; diff --git a/Items/Accessories/CrawCarapace.png b/Items/Accessories/CrawCarapace.png index 03e8927f35..e62aa0c89b 100644 Binary files a/Items/Accessories/CrawCarapace.png and b/Items/Accessories/CrawCarapace.png differ diff --git a/Items/Accessories/Nanotech.cs b/Items/Accessories/Nanotech.cs index 35d9514dd9..9a5de3067b 100644 --- a/Items/Accessories/Nanotech.cs +++ b/Items/Accessories/Nanotech.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Accessories "Stealth strikes summon lunar flares and sparks on enemy hits\n" + "Stealth strikes have +30 armor penetration, deal 10% more damage, and heal for 1 HP\n" + "Rogue weapons have a chance to instantly kill normal enemies\n" + - "10% increased rogue damage, 5% increased rogue crit chance, and 15% increased rogue velocity\n" + + "5% increased rogue damage, 5% increased rogue crit chance, and 15% increased rogue velocity\n" + "Whenever you crit an enemy with a rogue weapon your rogue damage increases\n" + "This effect can stack up to 250 times\n" + "Max rogue damage boost is 25%\n" + @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Accessories modPlayer.moonCrown = true; modPlayer.raiderTalisman = true; modPlayer.electricianGlove = true; - player.Calamity().throwingDamage += 0.1f; + player.Calamity().throwingDamage += 0.05f; player.Calamity().throwingCrit += 5; player.Calamity().throwingVelocity += 0.15f; } diff --git a/Items/Ammo/FlashBullet.cs b/Items/Ammo/FlashBullet.cs index 3bf8fa628b..9e1f1b4403 100644 --- a/Items/Ammo/FlashBullet.cs +++ b/Items/Ammo/FlashBullet.cs @@ -15,8 +15,8 @@ namespace CalamityMod.Items.Ammo { item.damage = 7; item.ranged = true; - item.width = 8; - item.height = 8; + item.width = 12; + item.height = 18; item.maxStack = 999; item.consumable = true; item.knockBack = 1.15f; diff --git a/Items/Ammo/FlashBullet.png b/Items/Ammo/FlashBullet.png index ab535b10d8..2d709bf58f 100644 Binary files a/Items/Ammo/FlashBullet.png and b/Items/Ammo/FlashBullet.png differ diff --git a/Items/Ammo/HolyFireBullet.cs b/Items/Ammo/HolyFireBullet.cs index c4767d9219..c49dd159e0 100644 --- a/Items/Ammo/HolyFireBullet.cs +++ b/Items/Ammo/HolyFireBullet.cs @@ -16,8 +16,8 @@ namespace CalamityMod.Items.Ammo { item.damage = 27; item.ranged = true; - item.width = 8; - item.height = 8; + item.width = 22; + item.height = 22; item.maxStack = 999; item.consumable = true; item.knockBack = 2f; diff --git a/Items/Ammo/HolyFireBullet.png b/Items/Ammo/HolyFireBullet.png index 8b5d628085..ade0ab6783 100644 Binary files a/Items/Ammo/HolyFireBullet.png and b/Items/Ammo/HolyFireBullet.png differ diff --git a/Items/Armor/ShroomiteVisage.cs b/Items/Armor/ShroomiteVisage.cs index 1763766305..ec64249583 100644 --- a/Items/Armor/ShroomiteVisage.cs +++ b/Items/Armor/ShroomiteVisage.cs @@ -16,8 +16,8 @@ namespace CalamityMod.Items.Armor public override void SetDefaults() { - item.width = 18; - item.height = 18; + item.width = 24; + item.height = 20; item.value = Item.buyPrice(0, 30, 0, 0); item.rare = 8; item.defense = 11; //62 diff --git a/Items/Armor/ShroomiteVisage.png b/Items/Armor/ShroomiteVisage.png index 1ad5fe600e..f106b86315 100644 Binary files a/Items/Armor/ShroomiteVisage.png and b/Items/Armor/ShroomiteVisage.png differ diff --git a/Items/Armor/ShroomiteVisage_Head.png b/Items/Armor/ShroomiteVisage_Head.png index 7a6ab7cef8..6e0db831e9 100644 Binary files a/Items/Armor/ShroomiteVisage_Head.png and b/Items/Armor/ShroomiteVisage_Head.png differ diff --git a/Items/Armor/SilvaArmor.cs b/Items/Armor/SilvaArmor.cs index 59373e040f..39c0c4f34b 100644 --- a/Items/Armor/SilvaArmor.cs +++ b/Items/Armor/SilvaArmor.cs @@ -20,8 +20,8 @@ namespace CalamityMod.Items.Armor public override void SetDefaults() { - item.width = 18; - item.height = 18; + item.width = 34; + item.height = 24; item.value = Item.buyPrice(0, 72, 0, 0); item.defense = 44; item.Calamity().postMoonLordRarity = 15; diff --git a/Items/Armor/SilvaArmor.png b/Items/Armor/SilvaArmor.png index 0cd055a933..a12120e2db 100644 Binary files a/Items/Armor/SilvaArmor.png and b/Items/Armor/SilvaArmor.png differ diff --git a/Items/Armor/SilvaArmor_Arms.png b/Items/Armor/SilvaArmor_Arms.png index f029d4c336..4072910795 100644 Binary files a/Items/Armor/SilvaArmor_Arms.png and b/Items/Armor/SilvaArmor_Arms.png differ diff --git a/Items/Armor/SilvaArmor_Body.png b/Items/Armor/SilvaArmor_Body.png index 95a19f3ea3..a496a83c48 100644 Binary files a/Items/Armor/SilvaArmor_Body.png and b/Items/Armor/SilvaArmor_Body.png differ diff --git a/Items/Armor/SilvaArmor_FemaleBody.png b/Items/Armor/SilvaArmor_FemaleBody.png index 6ca78b705d..05f102ce07 100644 Binary files a/Items/Armor/SilvaArmor_FemaleBody.png and b/Items/Armor/SilvaArmor_FemaleBody.png differ diff --git a/Items/Armor/SilvaHelm.cs b/Items/Armor/SilvaHelm.cs index 3d93ca789b..e35a85d533 100644 --- a/Items/Armor/SilvaHelm.cs +++ b/Items/Armor/SilvaHelm.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Armor public override void SetDefaults() { - item.width = 18; - item.height = 18; + item.width = 24; + item.height = 20; item.value = Item.buyPrice(0, 90, 0, 0); item.defense = 52; //110 item.Calamity().postMoonLordRarity = 15; diff --git a/Items/Armor/SilvaHelm.png b/Items/Armor/SilvaHelm.png index 2f20b54283..38348f773a 100644 Binary files a/Items/Armor/SilvaHelm.png and b/Items/Armor/SilvaHelm.png differ diff --git a/Items/Armor/SilvaHelm_Head.png b/Items/Armor/SilvaHelm_Head.png index 24a69fe34d..04821817fe 100644 Binary files a/Items/Armor/SilvaHelm_Head.png and b/Items/Armor/SilvaHelm_Head.png differ diff --git a/Items/Armor/SilvaHelmet.cs b/Items/Armor/SilvaHelmet.cs index 3458a38637..215aeee412 100644 --- a/Items/Armor/SilvaHelmet.cs +++ b/Items/Armor/SilvaHelmet.cs @@ -14,14 +14,14 @@ namespace CalamityMod.Items.Armor { public override void SetStaticDefaults() { - DisplayName.SetDefault("Silva Helmet"); + DisplayName.SetDefault("Silva Horned Hood"); Tooltip.SetDefault("+5 max minions"); } public override void SetDefaults() { - item.width = 18; - item.height = 18; + item.width = 28; + item.height = 24; item.value = Item.buyPrice(0, 90, 0, 0); item.defense = 13; //110 item.Calamity().postMoonLordRarity = 15; diff --git a/Items/Armor/SilvaHelmet.png b/Items/Armor/SilvaHelmet.png index 5670c7839b..8f600bc547 100644 Binary files a/Items/Armor/SilvaHelmet.png and b/Items/Armor/SilvaHelmet.png differ diff --git a/Items/Armor/SilvaHelmet_Head.png b/Items/Armor/SilvaHelmet_Head.png index 451e16e2a1..a063e2546a 100644 Binary files a/Items/Armor/SilvaHelmet_Head.png and b/Items/Armor/SilvaHelmet_Head.png differ diff --git a/Items/Armor/SilvaHornedHelm.cs b/Items/Armor/SilvaHornedHelm.cs index 6ab8329993..0c66100137 100644 --- a/Items/Armor/SilvaHornedHelm.cs +++ b/Items/Armor/SilvaHornedHelm.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Armor public override void SetDefaults() { - item.width = 18; - item.height = 18; + item.width = 26; + item.height = 24; item.value = Item.buyPrice(0, 90, 0, 0); item.defense = 36; //110 item.Calamity().postMoonLordRarity = 15; diff --git a/Items/Armor/SilvaHornedHelm.png b/Items/Armor/SilvaHornedHelm.png index 29cec41391..25f6b92762 100644 Binary files a/Items/Armor/SilvaHornedHelm.png and b/Items/Armor/SilvaHornedHelm.png differ diff --git a/Items/Armor/SilvaHornedHelm_Head.png b/Items/Armor/SilvaHornedHelm_Head.png index 6030b50ab5..c5b5f50f06 100644 Binary files a/Items/Armor/SilvaHornedHelm_Head.png and b/Items/Armor/SilvaHornedHelm_Head.png differ diff --git a/Items/Armor/SilvaLeggings.cs b/Items/Armor/SilvaLeggings.cs index b8e1cbaae9..6edf0e960c 100644 --- a/Items/Armor/SilvaLeggings.cs +++ b/Items/Armor/SilvaLeggings.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Armor public override void SetDefaults() { - item.width = 18; + item.width = 22; item.height = 18; item.value = Item.buyPrice(0, 54, 0, 0); item.defense = 39; diff --git a/Items/Armor/SilvaLeggings.png b/Items/Armor/SilvaLeggings.png index 7878fea27f..4816ceddd4 100644 Binary files a/Items/Armor/SilvaLeggings.png and b/Items/Armor/SilvaLeggings.png differ diff --git a/Items/Armor/SilvaLeggings_Legs.png b/Items/Armor/SilvaLeggings_Legs.png index 9b20c294a0..538fb6df14 100644 Binary files a/Items/Armor/SilvaLeggings_Legs.png and b/Items/Armor/SilvaLeggings_Legs.png differ diff --git a/Items/Armor/SilvaMask.cs b/Items/Armor/SilvaMask.cs index 3ba01d4a07..6032af0834 100644 --- a/Items/Armor/SilvaMask.cs +++ b/Items/Armor/SilvaMask.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Armor public override void SetDefaults() { - item.width = 18; - item.height = 18; + item.width = 24; + item.height = 26; item.value = Item.buyPrice(0, 90, 0, 0); item.defense = 30; //110 item.Calamity().postMoonLordRarity = 15; diff --git a/Items/Armor/SilvaMask.png b/Items/Armor/SilvaMask.png index b53e7539fb..d7a3403aab 100644 Binary files a/Items/Armor/SilvaMask.png and b/Items/Armor/SilvaMask.png differ diff --git a/Items/Armor/SilvaMask_Head.png b/Items/Armor/SilvaMask_Head.png index 6721d7d41e..edb1fba37b 100644 Binary files a/Items/Armor/SilvaMask_Head.png and b/Items/Armor/SilvaMask_Head.png differ diff --git a/Items/Armor/SilvaMaskedCap.cs b/Items/Armor/SilvaMaskedCap.cs index 44699230f2..a254441214 100644 --- a/Items/Armor/SilvaMaskedCap.cs +++ b/Items/Armor/SilvaMaskedCap.cs @@ -19,8 +19,8 @@ namespace CalamityMod.Items.Armor public override void SetDefaults() { - item.width = 18; - item.height = 18; + item.width = 24; + item.height = 22; item.value = Item.buyPrice(0, 90, 0, 0); item.defense = 21; //110 item.Calamity().postMoonLordRarity = 15; diff --git a/Items/Armor/SilvaMaskedCap.png b/Items/Armor/SilvaMaskedCap.png index 6309811b86..7aaa3da121 100644 Binary files a/Items/Armor/SilvaMaskedCap.png and b/Items/Armor/SilvaMaskedCap.png differ diff --git a/Items/Armor/SilvaMaskedCap_Head.png b/Items/Armor/SilvaMaskedCap_Head.png index dcab255b58..e7bfbc299d 100644 Binary files a/Items/Armor/SilvaMaskedCap_Head.png and b/Items/Armor/SilvaMaskedCap_Head.png differ diff --git a/Items/Armor/StatigelMask_Head.png b/Items/Armor/StatigelMask_Head.png index f1a7d5f7ab..59809ad134 100644 Binary files a/Items/Armor/StatigelMask_Head.png and b/Items/Armor/StatigelMask_Head.png differ diff --git a/Items/Materials/ArmoredShell.cs b/Items/Materials/ArmoredShell.cs index 7c759fd20d..96a45e3390 100644 --- a/Items/Materials/ArmoredShell.cs +++ b/Items/Materials/ArmoredShell.cs @@ -12,8 +12,8 @@ namespace CalamityMod.Items.Materials public override void SetDefaults() { - item.width = 24; - item.height = 30; + item.width = 46; + item.height = 34; item.maxStack = 999; item.value = Item.buyPrice(0, 7, 0, 0); item.Calamity().postMoonLordRarity = 13; diff --git a/Items/Materials/ArmoredShell.png b/Items/Materials/ArmoredShell.png index 0ccc8967b3..df499755a2 100644 Binary files a/Items/Materials/ArmoredShell.png and b/Items/Materials/ArmoredShell.png differ diff --git a/Items/Materials/AuricBar.cs b/Items/Materials/AuricBar.cs index b31036eeac..43b2e10220 100644 --- a/Items/Materials/AuricBar.cs +++ b/Items/Materials/AuricBar.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Materials { DisplayName.SetDefault("Auric Tesla Bar"); Tooltip.SetDefault("It radiates godly energy"); - Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 15)); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 16)); } public override void SetDefaults() @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Materials public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) { - CalamityUtils.DrawItemGlowmask(item, spriteBatch, 15, rotation, ModContent.GetTexture("CalamityMod/Items/Materials/AuricBarGlow")); + CalamityUtils.DrawItemGlowmask(item, spriteBatch, 16, rotation, ModContent.GetTexture("CalamityMod/Items/Materials/AuricBarGlow")); } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/Materials/AuricBar.png b/Items/Materials/AuricBar.png index b10e2b8d38..dfc1e70809 100644 Binary files a/Items/Materials/AuricBar.png and b/Items/Materials/AuricBar.png differ diff --git a/Items/Materials/AuricBarGlow.png b/Items/Materials/AuricBarGlow.png index 6e4df4dd86..43b50fde97 100644 Binary files a/Items/Materials/AuricBarGlow.png and b/Items/Materials/AuricBarGlow.png differ diff --git a/Items/Placeables/Furniture/Trophies/WeaverTrophy.png b/Items/Placeables/Furniture/Trophies/WeaverTrophy.png index 89175a7be1..303dc499b7 100644 Binary files a/Items/Placeables/Furniture/Trophies/WeaverTrophy.png and b/Items/Placeables/Furniture/Trophies/WeaverTrophy.png differ diff --git a/Items/Potions/CalamitasBrew.cs b/Items/Potions/CalamitasBrew.cs index 154ae9d89a..0c3d0afd56 100644 --- a/Items/Potions/CalamitasBrew.cs +++ b/Items/Potions/CalamitasBrew.cs @@ -17,8 +17,8 @@ namespace CalamityMod.Items.Potions public override void SetDefaults() { - item.width = 28; - item.height = 18; + item.width = 30; + item.height = 30; item.useTurn = true; item.maxStack = 999; item.rare = 3; diff --git a/Items/Potions/CalamitasBrew.png b/Items/Potions/CalamitasBrew.png index 45c4fbce88..0b9aab4bdf 100644 Binary files a/Items/Potions/CalamitasBrew.png and b/Items/Potions/CalamitasBrew.png differ diff --git a/Items/Potions/RevivifyPotion.cs b/Items/Potions/RevivifyPotion.cs index 792d296b8c..166c63059b 100644 --- a/Items/Potions/RevivifyPotion.cs +++ b/Items/Potions/RevivifyPotion.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Potions public override void SetDefaults() { item.width = 28; - item.height = 18; + item.height = 36; item.useTurn = true; item.maxStack = 999; item.rare = 3; diff --git a/Items/Potions/RevivifyPotion.png b/Items/Potions/RevivifyPotion.png index 439c9ea7ac..a5dd4a9a35 100644 Binary files a/Items/Potions/RevivifyPotion.png and b/Items/Potions/RevivifyPotion.png differ diff --git a/Items/Potions/TitanScalePotion.cs b/Items/Potions/TitanScalePotion.cs index 135b253841..edc0b080ea 100644 --- a/Items/Potions/TitanScalePotion.cs +++ b/Items/Potions/TitanScalePotion.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Potions public override void SetDefaults() { - item.width = 28; - item.height = 18; + item.width = 24; + item.height = 34; item.useTurn = true; item.maxStack = 999; item.rare = 3; diff --git a/Items/Potions/TitanScalePotion.png b/Items/Potions/TitanScalePotion.png index 41dbbd5033..e03b18f14b 100644 Binary files a/Items/Potions/TitanScalePotion.png and b/Items/Potions/TitanScalePotion.png differ diff --git a/Items/SummonItems/Starcore.cs b/Items/SummonItems/Starcore.cs index 362c1dc8cd..426f2b1657 100644 --- a/Items/SummonItems/Starcore.cs +++ b/Items/SummonItems/Starcore.cs @@ -20,8 +20,8 @@ namespace CalamityMod.Items.SummonItems public override void SetDefaults() { - item.width = 28; - item.height = 18; + item.width = 34; + item.height = 40; item.rare = 9; item.useAnimation = 45; item.useTime = 45; diff --git a/Items/SummonItems/Starcore.png b/Items/SummonItems/Starcore.png index 90aac67e93..f8b93e4646 100644 Binary files a/Items/SummonItems/Starcore.png and b/Items/SummonItems/Starcore.png differ diff --git a/Items/Weapons/Magic/DeathValley.cs b/Items/Weapons/Magic/DeathValley.cs index 0891293545..4a97f0bca2 100644 --- a/Items/Weapons/Magic/DeathValley.cs +++ b/Items/Weapons/Magic/DeathValley.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic item.magic = true; item.mana = 9; item.width = 28; - item.height = 30; + item.height = 32; item.useTime = 25; item.useAnimation = 25; item.useStyle = 5; diff --git a/Items/Weapons/Magic/DeathValley.png b/Items/Weapons/Magic/DeathValley.png index 6010147ff4..6f2294b75a 100644 Binary files a/Items/Weapons/Magic/DeathValley.png and b/Items/Weapons/Magic/DeathValley.png differ diff --git a/Items/Weapons/Magic/PrimordialAncient.cs b/Items/Weapons/Magic/PrimordialAncient.cs index 90304d7474..dc9be3ea81 100644 --- a/Items/Weapons/Magic/PrimordialAncient.cs +++ b/Items/Weapons/Magic/PrimordialAncient.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Items.Weapons.Magic item.damage = 385; item.magic = true; item.mana = 20; - item.width = 28; - item.height = 30; + item.width = 36; + item.height = 48; item.useTime = 17; item.useAnimation = 17; item.useStyle = 5; diff --git a/Items/Weapons/Magic/PrimordialAncient.png b/Items/Weapons/Magic/PrimordialAncient.png index 6266debfd4..b7ebeb7ae7 100644 Binary files a/Items/Weapons/Magic/PrimordialAncient.png and b/Items/Weapons/Magic/PrimordialAncient.png differ diff --git a/Items/Weapons/Magic/PrimordialEarth.cs b/Items/Weapons/Magic/PrimordialEarth.cs index 0a7698ab78..248f71c444 100644 --- a/Items/Weapons/Magic/PrimordialEarth.cs +++ b/Items/Weapons/Magic/PrimordialEarth.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Magic item.damage = 85; item.magic = true; item.mana = 19; - item.width = 28; - item.height = 30; + item.width = 30; + item.height = 32; item.useTime = 20; item.useAnimation = 20; item.useStyle = 5; diff --git a/Items/Weapons/Magic/PrimordialEarth.png b/Items/Weapons/Magic/PrimordialEarth.png index 72b36db9b2..5d2bb137d8 100644 Binary files a/Items/Weapons/Magic/PrimordialEarth.png and b/Items/Weapons/Magic/PrimordialEarth.png differ diff --git a/Items/Weapons/Magic/RelicofRuin.cs b/Items/Weapons/Magic/RelicofRuin.cs index 31b6cba13e..a6f315c111 100644 --- a/Items/Weapons/Magic/RelicofRuin.cs +++ b/Items/Weapons/Magic/RelicofRuin.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic item.magic = true; item.mana = 16; item.width = 28; - item.height = 32; + item.height = 30; item.useTime = 35; item.useAnimation = 35; item.useStyle = 5; diff --git a/Items/Weapons/Magic/RelicofRuin.png b/Items/Weapons/Magic/RelicofRuin.png index 63750c1293..cc24105778 100644 Binary files a/Items/Weapons/Magic/RelicofRuin.png and b/Items/Weapons/Magic/RelicofRuin.png differ diff --git a/Items/Weapons/Melee/CosmicDischarge.cs b/Items/Weapons/Melee/CosmicDischarge.cs index b850029b65..3494d933fc 100644 --- a/Items/Weapons/Melee/CosmicDischarge.cs +++ b/Items/Weapons/Melee/CosmicDischarge.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.width = 16; - item.height = 16; + item.width = 50; + item.height = 52; item.damage = 1000; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/CosmicDischarge.png b/Items/Weapons/Melee/CosmicDischarge.png index 61fac5d428..294a66bb6d 100644 Binary files a/Items/Weapons/Melee/CosmicDischarge.png and b/Items/Weapons/Melee/CosmicDischarge.png differ diff --git a/Items/Weapons/Melee/FulgurationHalberd.cs b/Items/Weapons/Melee/FulgurationHalberd.cs index 1b8132d02d..70ee5f3af9 100644 --- a/Items/Weapons/Melee/FulgurationHalberd.cs +++ b/Items/Weapons/Melee/FulgurationHalberd.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 60; + item.height = 64; item.damage = 53; item.melee = true; item.useAnimation = 22; @@ -27,7 +28,6 @@ namespace CalamityMod.Items.Weapons.Melee item.knockBack = 5f; item.UseSound = SoundID.Item1; item.autoReuse = true; - item.height = 62; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; item.shootSpeed = 6f; diff --git a/Items/Weapons/Melee/FulgurationHalberd.png b/Items/Weapons/Melee/FulgurationHalberd.png index 81505f7331..8fac90cc96 100644 Binary files a/Items/Weapons/Melee/FulgurationHalberd.png and b/Items/Weapons/Melee/FulgurationHalberd.png differ diff --git a/Items/Weapons/Ranged/AngelicShotgun.cs b/Items/Weapons/Ranged/AngelicShotgun.cs index 032dca57e4..9bb415b481 100644 --- a/Items/Weapons/Ranged/AngelicShotgun.cs +++ b/Items/Weapons/Ranged/AngelicShotgun.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Ranged { public class AngelicShotgun : ModItem { - private static int BaseDamage = 180; + private static int BaseDamage = 150; private static int NumBullets = 8; private static float BulletSpeed = 13f; @@ -58,15 +58,15 @@ Fighting 'til the war's won"); // Fire a shotgun spread of bullets. for (int i = 0; i < NumBullets; ++i) { - float dx = Main.rand.NextFloat(-1.5f, 1.5f); - float dy = Main.rand.NextFloat(-1.5f, 1.5f); + float dx = Main.rand.NextFloat(-1.3f, 1.3f); + float dy = Main.rand.NextFloat(-1.3f, 1.3f); Vector2 randomVelocity = baseVelocity + new Vector2(dx, dy); Projectile.NewProjectile(position, randomVelocity, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } // Spawn a beam from the sky ala Deathhail Staff or Lunar Flare float laserSpeed = 8f; - int laserDamage = 5 * BaseDamage; + int laserDamage = 4 * BaseDamage; float laserKB = 5f; Vector2 rrp = player.RotatedRelativePoint(player.MountedCenter, true); diff --git a/Items/Weapons/Ranged/AstrealDefeat.cs b/Items/Weapons/Ranged/AstrealDefeat.cs index 4594f83bf0..739a114def 100644 --- a/Items/Weapons/Ranged/AstrealDefeat.cs +++ b/Items/Weapons/Ranged/AstrealDefeat.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Weapons.Ranged { item.damage = 150; item.ranged = true; - item.width = 44; - item.height = 54; + item.width = 40; + item.height = 78; item.useTime = 3; item.useAnimation = 15; item.useStyle = 5; diff --git a/Items/Weapons/Ranged/AstrealDefeat.png b/Items/Weapons/Ranged/AstrealDefeat.png index 2bcf13328e..e5eb443e12 100644 Binary files a/Items/Weapons/Ranged/AstrealDefeat.png and b/Items/Weapons/Ranged/AstrealDefeat.png differ diff --git a/Items/Weapons/Ranged/DaemonsFlame.cs b/Items/Weapons/Ranged/DaemonsFlame.cs index f520d0560f..1a019ea004 100644 --- a/Items/Weapons/Ranged/DaemonsFlame.cs +++ b/Items/Weapons/Ranged/DaemonsFlame.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { DisplayName.SetDefault("Daemon's Flame"); - Tooltip.SetDefault("Shoots daemon flame arrows as well as regular arrows"); + Tooltip.SetDefault("Shoots daemon flame fireballs as well as regular arrows"); } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/Deathwind.cs b/Items/Weapons/Ranged/Deathwind.cs index 0f1160744d..607bd17aa1 100644 --- a/Items/Weapons/Ranged/Deathwind.cs +++ b/Items/Weapons/Ranged/Deathwind.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Ranged { DisplayName.SetDefault("Deathwind"); Tooltip.SetDefault("Fires a spread of arrows\n" + - "Wooden arrows are converted to nebula shots"); + "Wooden arrows are converted to nebula arrows"); } public override void SetDefaults() @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.rare = 10; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = ModContent.ProjectileType(); + item.shoot = ModContent.ProjectileType(); item.shootSpeed = 20f; item.useAmmo = 40; item.Calamity().postMoonLordRarity = 13; @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons.Ranged float SpeedY = speedY + (float)Main.rand.Next(-20, 21) * 0.05f; if (type == ProjectileID.WoodenArrowFriendly) { - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); } else { diff --git a/Items/Weapons/Rogue/Celestus.cs b/Items/Weapons/Rogue/Celestus.cs index 8a162dd099..28f8086e3c 100644 --- a/Items/Weapons/Rogue/Celestus.cs +++ b/Items/Weapons/Rogue/Celestus.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SafeSetDefaults() { item.width = 20; - item.damage = 960; + item.damage = 850; item.noMelee = true; item.noUseGraphic = true; item.autoReuse = true; diff --git a/Items/Weapons/Typeless/Aestheticus.cs b/Items/Weapons/Typeless/Aestheticus.cs index 4382b17111..a76b05e9a9 100644 --- a/Items/Weapons/Typeless/Aestheticus.cs +++ b/Items/Weapons/Typeless/Aestheticus.cs @@ -33,6 +33,7 @@ namespace CalamityMod.Items.Weapons.Typeless item.value = Item.buyPrice(0, 4, 0, 0); item.shoot = ModContent.ProjectileType(); item.shootSpeed = 5f; + item.Calamity().postMoonLordRarity = 21; } public override Vector2? HoldoutOrigin() diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index 4c753aed33..d60891383e 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -1212,8 +1212,8 @@ namespace CalamityMod.NPCs num827 = num828 / num827; num825 *= num827; num826 *= num827; - vector82.X += num825 * 12f; - vector82.Y += num826 * 12f; + vector82.X += num825 * 6f; + vector82.Y += num826 * 6f; Projectile.NewProjectile(vector82.X, vector82.Y, num825, num826, num830, num829 + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); } } diff --git a/NPCs/CeaselessVoid/CeaselessVoid.cs b/NPCs/CeaselessVoid/CeaselessVoid.cs index 01d4ff0244..3c69910979 100644 --- a/NPCs/CeaselessVoid/CeaselessVoid.cs +++ b/NPCs/CeaselessVoid/CeaselessVoid.cs @@ -423,9 +423,9 @@ namespace CalamityMod.NPCs.CeaselessVoid float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid"), 1f); Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid2"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid2"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid3"), 1f); Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid3"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid4"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid5"), 1f); } } } diff --git a/NPCs/DesertScourge/DesertScourgeBodySmall.cs b/NPCs/DesertScourge/DesertScourgeBodySmall.cs index f67b019d88..64af63fbce 100644 --- a/NPCs/DesertScourge/DesertScourgeBodySmall.cs +++ b/NPCs/DesertScourge/DesertScourgeBodySmall.cs @@ -17,8 +17,8 @@ namespace CalamityMod.NPCs.DesertScourge { npc.damage = 10; npc.npcSlots = 5f; - npc.width = 32; - npc.height = 36; + npc.width = 40; + npc.height = 40; npc.defense = 4; npc.lifeMax = 800; if (CalamityWorld.bossRushActive) @@ -38,7 +38,6 @@ namespace CalamityMod.NPCs.DesertScourge npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; npc.dontCountMe = true; - npc.scale = 0.75f; } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) diff --git a/NPCs/DesertScourge/DesertScourgeBodySmall.png b/NPCs/DesertScourge/DesertScourgeBodySmall.png index c7a054844c..b7580b7d2c 100644 Binary files a/NPCs/DesertScourge/DesertScourgeBodySmall.png and b/NPCs/DesertScourge/DesertScourgeBodySmall.png differ diff --git a/NPCs/DesertScourge/DesertScourgeHeadSmall.cs b/NPCs/DesertScourge/DesertScourgeHeadSmall.cs index 604f003653..a1fe1ecd26 100644 --- a/NPCs/DesertScourge/DesertScourgeHeadSmall.cs +++ b/NPCs/DesertScourge/DesertScourgeHeadSmall.cs @@ -24,8 +24,8 @@ namespace CalamityMod.NPCs.DesertScourge { npc.damage = 18; npc.npcSlots = 2f; - npc.width = 32; - npc.height = 80; + npc.width = 60; + npc.height = 60; npc.defense = 0; npc.lifeMax = 800; if (CalamityWorld.bossRushActive) @@ -46,7 +46,6 @@ namespace CalamityMod.NPCs.DesertScourge npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; - npc.scale = 0.75f; } public override void AI() diff --git a/NPCs/DesertScourge/DesertScourgeHeadSmall.png b/NPCs/DesertScourge/DesertScourgeHeadSmall.png index 196d7a6133..b3a6450990 100644 Binary files a/NPCs/DesertScourge/DesertScourgeHeadSmall.png and b/NPCs/DesertScourge/DesertScourgeHeadSmall.png differ diff --git a/NPCs/DesertScourge/DesertScourgeTailSmall.cs b/NPCs/DesertScourge/DesertScourgeTailSmall.cs index d2afa622ad..47c75f8da7 100644 --- a/NPCs/DesertScourge/DesertScourgeTailSmall.cs +++ b/NPCs/DesertScourge/DesertScourgeTailSmall.cs @@ -18,7 +18,7 @@ namespace CalamityMod.NPCs.DesertScourge npc.damage = 8; npc.npcSlots = 5f; npc.width = 32; - npc.height = 48; + npc.height = 32; npc.defense = 7; npc.lifeMax = 800; if (CalamityWorld.bossRushActive) @@ -38,7 +38,6 @@ namespace CalamityMod.NPCs.DesertScourge npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; npc.dontCountMe = true; - npc.scale = 0.75f; } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) diff --git a/NPCs/DesertScourge/DesertScourgeTailSmall.png b/NPCs/DesertScourge/DesertScourgeTailSmall.png index b2ca84df81..0e4c24e099 100644 Binary files a/NPCs/DesertScourge/DesertScourgeTailSmall.png and b/NPCs/DesertScourge/DesertScourgeTailSmall.png differ diff --git a/NPCs/NormalNPCs/CalamityEye.cs b/NPCs/NormalNPCs/CalamityEye.cs index 60cb33ca9b..044c9abbd6 100644 --- a/NPCs/NormalNPCs/CalamityEye.cs +++ b/NPCs/NormalNPCs/CalamityEye.cs @@ -11,7 +11,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void SetStaticDefaults() { DisplayName.SetDefault("Calamity Eye"); - Main.npcFrameCount[npc.type] = 2; + Main.npcFrameCount[npc.type] = 4; } public override void SetDefaults() @@ -20,7 +20,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.aiStyle = 2; npc.damage = 40; npc.width = 30; - npc.height = 32; + npc.height = 30; npc.defense = 12; npc.lifeMax = 140; npc.knockBackResist = 0f; diff --git a/NPCs/NormalNPCs/CalamityEye.png b/NPCs/NormalNPCs/CalamityEye.png index 3a5fdc30c5..0796d298b3 100644 Binary files a/NPCs/NormalNPCs/CalamityEye.png and b/NPCs/NormalNPCs/CalamityEye.png differ diff --git a/NPCs/StormWeaver/StasisProbe.cs b/NPCs/StormWeaver/StasisProbe.cs index a386ae50ac..735c6edbd1 100644 --- a/NPCs/StormWeaver/StasisProbe.cs +++ b/NPCs/StormWeaver/StasisProbe.cs @@ -223,7 +223,7 @@ namespace CalamityMod.NPCs.StormWeaver { Main.dust[num622].scale = 0.5f; Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } + } } for (int num623 = 0; num623 < 10; num623++) { @@ -233,7 +233,8 @@ namespace CalamityMod.NPCs.StormWeaver num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } - for (int num625 = 0; num625 < 3; num625++) + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/StasisProbe1"),1f); + for (int num625 = 0; num625 < 1; num625++) { float scaleFactor10 = 0.33f; if (num625 == 1) diff --git a/NPCs/StormWeaver/StasisProbe.png b/NPCs/StormWeaver/StasisProbe.png index 3eb94d3501..3788722274 100644 Binary files a/NPCs/StormWeaver/StasisProbe.png and b/NPCs/StormWeaver/StasisProbe.png differ diff --git a/NPCs/StormWeaver/StasisProbeNaked.cs b/NPCs/StormWeaver/StasisProbeNaked.cs index ca68500ae3..52160abba8 100644 --- a/NPCs/StormWeaver/StasisProbeNaked.cs +++ b/NPCs/StormWeaver/StasisProbeNaked.cs @@ -233,7 +233,8 @@ namespace CalamityMod.NPCs.StormWeaver num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } - for (int num625 = 0; num625 < 3; num625++) + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/StasisProbeNaked1"), 1f); + for (int num625 = 0; num625 < 1; num625++) { float scaleFactor10 = 0.33f; if (num625 == 1) diff --git a/NPCs/StormWeaver/StasisProbeNaked.png b/NPCs/StormWeaver/StasisProbeNaked.png index c8e00d2e22..2849cf8f50 100644 Binary files a/NPCs/StormWeaver/StasisProbeNaked.png and b/NPCs/StormWeaver/StasisProbeNaked.png differ diff --git a/NPCs/StormWeaver/StormWeaverBody.cs b/NPCs/StormWeaver/StormWeaverBody.cs index 636c076940..f0d04360f9 100644 --- a/NPCs/StormWeaver/StormWeaverBody.cs +++ b/NPCs/StormWeaver/StormWeaverBody.cs @@ -95,19 +95,19 @@ namespace CalamityMod.NPCs.StormWeaver { npc.spriteDirection = 1; } - bool flag = false; + bool flag1 = false; if (npc.ai[1] <= 0f) { - flag = true; + flag1 = true; } - else if (Main.npc[(int)npc.ai[1]].life <= 0) + else if (Main.npc[(int)npc.ai[1]].life <= 0 || npc.life <= 0) { - flag = true; + flag1 = true; } - if (flag) + if (flag1) { npc.life = 0; - npc.HitEffect(0, 10.0); + npc.HitEffect(0, 30.0); npc.checkDead(); } if (Main.npc[(int)npc.ai[1]].alpha < 128) @@ -197,15 +197,16 @@ namespace CalamityMod.NPCs.StormWeaver { projectile.penetrate = 1; } + } public override void HitEffect(int hitDirection, double damage) { if (npc.life <= 0) { - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWArmor2"), 1f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWArmor3"), 1f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWArmor4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWArmorBody1"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWArmorBody2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWArmorBody3"), 1f); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 30; diff --git a/NPCs/StormWeaver/StormWeaverBody.png b/NPCs/StormWeaver/StormWeaverBody.png index 17edfe50cd..ed005ed3ef 100644 Binary files a/NPCs/StormWeaver/StormWeaverBody.png and b/NPCs/StormWeaver/StormWeaverBody.png differ diff --git a/NPCs/StormWeaver/StormWeaverBodyNaked.cs b/NPCs/StormWeaver/StormWeaverBodyNaked.cs index 976bdd10c4..470bba8656 100644 --- a/NPCs/StormWeaver/StormWeaverBodyNaked.cs +++ b/NPCs/StormWeaver/StormWeaverBodyNaked.cs @@ -119,7 +119,7 @@ namespace CalamityMod.NPCs.StormWeaver { flag = true; } - else if (Main.npc[(int)npc.ai[1]].life <= 0) + else if (Main.npc[(int)npc.ai[1]].life <= 0 || npc.life <= 0) { flag = true; } @@ -263,9 +263,9 @@ namespace CalamityMod.NPCs.StormWeaver { if (npc.life <= 0) { - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWNude2"), 1f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWNude3"), 1f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWNude4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWNudeBody1"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWNudeBody2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWNudeBody3"), 1f); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 30; @@ -312,5 +312,6 @@ namespace CalamityMod.NPCs.StormWeaver npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); npc.damage = (int)(npc.damage * 0.85f); } + } } diff --git a/NPCs/StormWeaver/StormWeaverBodyNaked.png b/NPCs/StormWeaver/StormWeaverBodyNaked.png index 2b23f660e8..963fc74983 100644 Binary files a/NPCs/StormWeaver/StormWeaverBodyNaked.png and b/NPCs/StormWeaver/StormWeaverBodyNaked.png differ diff --git a/NPCs/StormWeaver/StormWeaverHead.cs b/NPCs/StormWeaver/StormWeaverHead.cs index c9644d0636..0714e85584 100644 --- a/NPCs/StormWeaver/StormWeaverHead.cs +++ b/NPCs/StormWeaver/StormWeaverHead.cs @@ -212,7 +212,9 @@ namespace CalamityMod.NPCs.StormWeaver } for (int num957 = 0; num957 < 200; num957++) { - if (Main.npc[num957].aiStyle == npc.aiStyle) + if (Main.npc[num957].active && (Main.npc[num957].type == ModContent.NPCType() + || Main.npc[num957].type == ModContent.NPCType() + || Main.npc[num957].type == ModContent.NPCType())) { Main.npc[num957].active = false; } @@ -231,7 +233,9 @@ namespace CalamityMod.NPCs.StormWeaver } for (int num957 = 0; num957 < 200; num957++) { - if (Main.npc[num957].aiStyle == npc.aiStyle) + if (Main.npc[num957].active && (Main.npc[num957].type == ModContent.NPCType() + || Main.npc[num957].type == ModContent.NPCType() + || Main.npc[num957].type == ModContent.NPCType())) { Main.npc[num957].active = false; } @@ -531,7 +535,7 @@ namespace CalamityMod.NPCs.StormWeaver } if (npc.life <= 0) { - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWArmor"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWArmorHead1"), 1f); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 30; @@ -563,9 +567,10 @@ namespace CalamityMod.NPCs.StormWeaver { for (int num957 = 0; num957 < 200; num957++) { - if (Main.npc[num957].aiStyle == npc.aiStyle) + if (Main.npc[num957].active && (Main.npc[num957].type == ModContent.NPCType() + || Main.npc[num957].type == ModContent.NPCType())) { - Main.npc[num957].active = false; + Main.npc[num957].life = 0; } } if (Main.netMode != NetmodeID.MultiplayerClient) diff --git a/NPCs/StormWeaver/StormWeaverHead.png b/NPCs/StormWeaver/StormWeaverHead.png index 4f86ebc42f..6edf6a8fd7 100644 Binary files a/NPCs/StormWeaver/StormWeaverHead.png and b/NPCs/StormWeaver/StormWeaverHead.png differ diff --git a/NPCs/StormWeaver/StormWeaverHeadNaked.cs b/NPCs/StormWeaver/StormWeaverHeadNaked.cs index 1aadd96bbe..344bfca599 100644 --- a/NPCs/StormWeaver/StormWeaverHeadNaked.cs +++ b/NPCs/StormWeaver/StormWeaverHeadNaked.cs @@ -211,7 +211,7 @@ namespace CalamityMod.NPCs.StormWeaver } } } - if (Main.player[npc.target].dead) + if (Main.player[npc.target].dead && npc.life > 0) { npc.TargetClosest(false); npc.velocity.Y = npc.velocity.Y - 10f; @@ -231,14 +231,16 @@ namespace CalamityMod.NPCs.StormWeaver } for (int num957 = 0; num957 < 200; num957++) { - if (Main.npc[num957].aiStyle == npc.aiStyle) + if ( Main.npc[num957].active && (Main.npc[num957].type == ModContent.NPCType() + || Main.npc[num957].type == ModContent.NPCType() + || Main.npc[num957].type == ModContent.NPCType())) { Main.npc[num957].active = false; } } } } - if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 10000f) + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 10000f && npc.life > 0) { CalamityWorld.DoGSecondStageCountdown = 0; if (Main.netMode == NetmodeID.Server) @@ -250,7 +252,9 @@ namespace CalamityMod.NPCs.StormWeaver } for (int num957 = 0; num957 < 200; num957++) { - if (Main.npc[num957].aiStyle == npc.aiStyle) + if (Main.npc[num957].type == ModContent.NPCType() + || Main.npc[num957].type == ModContent.NPCType() + || Main.npc[num957].type == ModContent.NPCType()) { Main.npc[num957].active = false; } @@ -559,7 +563,8 @@ namespace CalamityMod.NPCs.StormWeaver } if (npc.life <= 0) { - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWNude"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWNudeHead1"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWNudeHead2"), 1f); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 30; @@ -594,7 +599,7 @@ namespace CalamityMod.NPCs.StormWeaver { if (Main.npc[num569].active && (Main.npc[num569].type == ModContent.NPCType() || Main.npc[num569].type == ModContent.NPCType())) { - Main.npc[num569].active = false; + Main.npc[num569].life = 0; } } return true; diff --git a/NPCs/StormWeaver/StormWeaverHeadNaked.png b/NPCs/StormWeaver/StormWeaverHeadNaked.png index 8d23d7b0d5..e58b7bb7bd 100644 Binary files a/NPCs/StormWeaver/StormWeaverHeadNaked.png and b/NPCs/StormWeaver/StormWeaverHeadNaked.png differ diff --git a/NPCs/StormWeaver/StormWeaverHeadNaked_Head_Boss.png b/NPCs/StormWeaver/StormWeaverHeadNaked_Head_Boss.png index 8714adbe55..4655006a73 100644 Binary files a/NPCs/StormWeaver/StormWeaverHeadNaked_Head_Boss.png and b/NPCs/StormWeaver/StormWeaverHeadNaked_Head_Boss.png differ diff --git a/NPCs/StormWeaver/StormWeaverHead_Head_Boss.png b/NPCs/StormWeaver/StormWeaverHead_Head_Boss.png index 8714adbe55..2e4dade822 100644 Binary files a/NPCs/StormWeaver/StormWeaverHead_Head_Boss.png and b/NPCs/StormWeaver/StormWeaverHead_Head_Boss.png differ diff --git a/NPCs/StormWeaver/StormWeaverTail.cs b/NPCs/StormWeaver/StormWeaverTail.cs index 4e3908f19c..efdc4972ac 100644 --- a/NPCs/StormWeaver/StormWeaverTail.cs +++ b/NPCs/StormWeaver/StormWeaverTail.cs @@ -90,7 +90,7 @@ namespace CalamityMod.NPCs.StormWeaver { flag = true; } - else if (Main.npc[(int)npc.ai[1]].life <= 0) + else if (Main.npc[(int)npc.ai[1]].life <= 0 || npc.life <= 0) { flag = true; } @@ -175,7 +175,8 @@ namespace CalamityMod.NPCs.StormWeaver } if (npc.life <= 0) { - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWArmor5"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWArmorTail1"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWArmorTail2"), 1f); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 30; diff --git a/NPCs/StormWeaver/StormWeaverTail.png b/NPCs/StormWeaver/StormWeaverTail.png index 3be96ced3e..9f31e02f6a 100644 Binary files a/NPCs/StormWeaver/StormWeaverTail.png and b/NPCs/StormWeaver/StormWeaverTail.png differ diff --git a/NPCs/StormWeaver/StormWeaverTailNaked.cs b/NPCs/StormWeaver/StormWeaverTailNaked.cs index de1e6ec381..ddfbbc1053 100644 --- a/NPCs/StormWeaver/StormWeaverTailNaked.cs +++ b/NPCs/StormWeaver/StormWeaverTailNaked.cs @@ -117,7 +117,7 @@ namespace CalamityMod.NPCs.StormWeaver { flag = true; } - else if (Main.npc[(int)npc.ai[1]].life <= 0) + else if (Main.npc[(int)npc.ai[1]].life <= 0 || npc.life <= 0) { flag = true; } @@ -255,7 +255,8 @@ namespace CalamityMod.NPCs.StormWeaver } if (npc.life <= 0) { - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWNude5"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWNudeTail1"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SWNudeTail2"), 1f); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 30; diff --git a/NPCs/StormWeaver/StormWeaverTailNaked.png b/NPCs/StormWeaver/StormWeaverTailNaked.png index 276b6fda77..3c7b1ddb4e 100644 Binary files a/NPCs/StormWeaver/StormWeaverTailNaked.png and b/NPCs/StormWeaver/StormWeaverTailNaked.png differ diff --git a/Projectiles/Boss/BrimstoneBall.cs b/Projectiles/Boss/BrimstoneBall.cs index a21edd955f..a8835d2f95 100644 --- a/Projectiles/Boss/BrimstoneBall.cs +++ b/Projectiles/Boss/BrimstoneBall.cs @@ -13,9 +13,10 @@ namespace CalamityMod.Projectiles.Boss public override void SetDefaults() { - projectile.width = 20; - projectile.height = 20; + projectile.width = 16; + projectile.height = 16; projectile.hostile = true; + projectile.scale = 1.2f; projectile.penetrate = 6; projectile.aiStyle = 14; aiType = 277; @@ -24,12 +25,14 @@ namespace CalamityMod.Projectiles.Boss public override void AI() { + projectile.rotation += 0.12f * projectile.direction; Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.25f / 255f, (255 - projectile.alpha) * 0.05f / 255f, (255 - projectile.alpha) * 0.05f / 255f); - for (int num468 = 0; num468 < 5; num468++) + for (int num468 = 0; num468 < 2; num468++) { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 235, 0f, 0f, 100, default, 1f); + Vector2 dspeed = -projectile.velocity * 0.7f; + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 235, 0f, 0f, 150, default, 1.1f); Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; + Main.dust[num469].velocity = dspeed; } } diff --git a/Projectiles/Boss/BrimstoneBall.png b/Projectiles/Boss/BrimstoneBall.png index 6ea4de3903..c73fd9f11e 100644 Binary files a/Projectiles/Boss/BrimstoneBall.png and b/Projectiles/Boss/BrimstoneBall.png differ diff --git a/Projectiles/Boss/BrimstoneHellfireball.cs b/Projectiles/Boss/BrimstoneHellfireball.cs index 4d6f416b9d..f4f8b4f7e9 100644 --- a/Projectiles/Boss/BrimstoneHellfireball.cs +++ b/Projectiles/Boss/BrimstoneHellfireball.cs @@ -1,6 +1,8 @@ using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -9,20 +11,46 @@ namespace CalamityMod.Projectiles.Boss public override void SetStaticDefaults() { DisplayName.SetDefault("Brimstone Hellfireball"); + Main.projFrames[projectile.type] = 6; + ProjectileID.Sets.TrailCacheLength[projectile.type] = 3; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; } public override void SetDefaults() { - projectile.width = 12; - projectile.height = 12; + projectile.width = 34; + projectile.height = 34; projectile.hostile = true; projectile.ignoreWater = true; projectile.penetrate = -1; projectile.timeLeft = 600; + projectile.alpha = 255; } public override void AI() { + //Animation + projectile.frameCounter++; + if (projectile.frameCounter > 9) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 5) + { + projectile.frame = 0; + } + + //Fade in + if (projectile.alpha > 5) + projectile.alpha -= 15; + if (projectile.alpha < 5) + projectile.alpha = 5; + + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) - MathHelper.ToRadians(90) * projectile.direction; + projectile.velocity.Y *= 1.01f; projectile.velocity.X *= 1.01f; Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0.05f / 255f, (255 - projectile.alpha) * 0.05f / 255f); @@ -31,13 +59,12 @@ namespace CalamityMod.Projectiles.Boss Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); projectile.ai[0] += 1f; } - for (int num457 = 0; num457 < 5; num457++) - { - int num458 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 235, 0f, 0f, 100, default, 1.6f); - Main.dust[num458].noGravity = true; - Main.dust[num458].velocity *= 0.5f; - Main.dust[num458].velocity += projectile.velocity * 0.1f; - } + + int num458 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 235, 0f, 0f, 170, default, 1.1f); + Main.dust[num458].noGravity = true; + Main.dust[num458].velocity *= 0.5f; + Main.dust[num458].velocity += projectile.velocity * 0.1f; + } public override void Kill(int timeLeft) @@ -52,5 +79,11 @@ namespace CalamityMod.Projectiles.Boss { target.AddBuff(ModContent.BuffType(), 600); } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; + } } } diff --git a/Projectiles/Boss/BrimstoneHellfireball.png b/Projectiles/Boss/BrimstoneHellfireball.png index 1b1583927e..71720f8c11 100644 Binary files a/Projectiles/Boss/BrimstoneHellfireball.png and b/Projectiles/Boss/BrimstoneHellfireball.png differ diff --git a/Projectiles/Healing/SilvaOrb.cs b/Projectiles/Healing/SilvaOrb.cs index ab2163944a..30b293bc9f 100644 --- a/Projectiles/Healing/SilvaOrb.cs +++ b/Projectiles/Healing/SilvaOrb.cs @@ -13,8 +13,8 @@ namespace CalamityMod.Projectiles.Healing public override void SetDefaults() { - projectile.width = 14; - projectile.height = 14; + projectile.width = 22; + projectile.height = 22; projectile.friendly = true; projectile.alpha = 255; projectile.penetrate = 1; diff --git a/Projectiles/Healing/SilvaOrb.png b/Projectiles/Healing/SilvaOrb.png index f47982519d..37597f4cad 100644 Binary files a/Projectiles/Healing/SilvaOrb.png and b/Projectiles/Healing/SilvaOrb.png differ diff --git a/Projectiles/Magic/ForbiddenAxeBlade.png b/Projectiles/Magic/ForbiddenAxeBlade.png index f252a32853..a5ad98f4cc 100644 Binary files a/Projectiles/Magic/ForbiddenAxeBlade.png and b/Projectiles/Magic/ForbiddenAxeBlade.png differ diff --git a/Projectiles/Melee/CosmicDischargeFlail.cs b/Projectiles/Melee/CosmicDischargeFlail.cs index dedf136d30..1a1129e343 100644 --- a/Projectiles/Melee/CosmicDischargeFlail.cs +++ b/Projectiles/Melee/CosmicDischargeFlail.cs @@ -13,6 +13,8 @@ namespace CalamityMod.Projectiles.Melee { public class CosmicDischargeFlail : ModProjectile { + + public override void SetStaticDefaults() { DisplayName.SetDefault("Cosmic Discharge"); @@ -98,7 +100,7 @@ namespace CalamityMod.Projectiles.Melee { for (int num51 = 0; num51 < 2; num51++) { - Dust dust = Main.dust[Dust.NewDust(projectile.position + projectile.velocity * 2f, projectile.width, projectile.height, 67, 0f, 0f, 100, new Color(150, Main.DiscoG, 255), 2f)]; + Dust dust = Main.dust[Dust.NewDust(projectile.position + projectile.velocity * 2f, projectile.width, projectile.height, 67, 0f, 0f, 100, new Color(150, 255, 255), 1f)]; dust.noGravity = true; dust.velocity *= 2f; dust.velocity += projectile.localAI[0].ToRotationVector2(); @@ -108,10 +110,10 @@ namespace CalamityMod.Projectiles.Melee int num53 = 0; while ((float)num53 < num52) { - if (Main.rand.NextBool(4)) + if (Main.rand.NextBool(6)) { Vector2 position = projectile.position + projectile.velocity + projectile.velocity * ((float)num53 / num52); - Dust dust2 = Main.dust[Dust.NewDust(position, projectile.width, projectile.height, 187, 0f, 0f, 100, new Color(150, Main.DiscoG, 255), 1f)]; + Dust dust2 = Main.dust[Dust.NewDust(position, projectile.width, projectile.height, 187, 0f, 0f, 100, new Color(150, 255, 255), 0.6f)]; dust2.noGravity = true; dust2.fadeIn = 0.5f; dust2.velocity += projectile.localAI[0].ToRotationVector2(); @@ -141,14 +143,14 @@ namespace CalamityMod.Projectiles.Melee float num230 = projectile.velocity.Length() + 16f; bool flag24 = num230 < 100f; Vector2 value28 = Vector2.Normalize(projectile.velocity); - Rectangle rectangle8 = new Rectangle(0, 0, texture2D22.Width, 36); //2 and 40 + Rectangle rectangle8 = new Rectangle(0, 0, texture2D22.Width, 62); //2 and 40 Vector2 value29 = new Vector2(0f, Main.player[projectile.owner].gfxOffY); float rotation24 = projectile.rotation + 3.14159274f; Main.spriteBatch.Draw(texture2D22, projectile.Center.Floor() - Main.screenPosition + value29, new Microsoft.Xna.Framework.Rectangle?(rectangle8), alpha3, rotation24, rectangle8.Size() / 2f - Vector2.UnitY * 4f, projectile.scale, SpriteEffects.None, 0f); num230 -= 40f * projectile.scale; Vector2 vector31 = projectile.Center.Floor(); - vector31 += value28 * projectile.scale * 24f; - rectangle8 = new Rectangle(0, 62, texture2D22.Width, 18); //68 and 18 + vector31 += value28 * projectile.scale * 33f; + rectangle8 = new Rectangle(0, 64, texture2D22.Width, 28); //68 and 18 if (num230 > 0f) { float num231 = 0f; @@ -158,19 +160,19 @@ namespace CalamityMod.Projectiles.Melee { rectangle8.Height = (int)(num230 - num231); } - Main.spriteBatch.Draw(texture2D22, vector31 - Main.screenPosition + value29, new Microsoft.Xna.Framework.Rectangle?(rectangle8), alpha3, rotation24, new Vector2((float)(rectangle8.Width / 2), 0f), projectile.scale, SpriteEffects.None, 0f); + //Main.spriteBatch.Draw(texture2D22, vector31 - Main.screenPosition + value29, new Microsoft.Xna.Framework.Rectangle?(rectangle8), alpha3, rotation24, new Vector2((float)(rectangle8.Width / 2), 0f), projectile.scale, SpriteEffects.None, 0.6f); num231 += (float)rectangle8.Height * projectile.scale; vector31 += value28 * (float)rectangle8.Height * projectile.scale; } } Vector2 value30 = vector31; vector31 = projectile.Center.Floor(); - vector31 += value28 * projectile.scale * 24f; - rectangle8 = new Rectangle(0, 40, texture2D22.Width, 20); //46 and 18 - int num232 = 18; + vector31 += value28 * projectile.scale * 31f; + rectangle8 = new Rectangle(0, 93, texture2D22.Width, 18); //46 and 18 + int num232 = 36; if (flag24) { - num232 = 9; + num232 = 14; } float num233 = num230; if (num230 > 0f) @@ -186,20 +188,56 @@ namespace CalamityMod.Projectiles.Melee { num237 *= 0.75f; } - Main.spriteBatch.Draw(texture2D22, vector31 - Main.screenPosition + value29, new Microsoft.Xna.Framework.Rectangle?(rectangle8), alpha3, rotation24, new Vector2((float)(rectangle8.Width / 2), 0f), projectile.scale, SpriteEffects.None, 0f); + Main.spriteBatch.Draw(texture2D22, vector31 - Main.screenPosition + value29, new Microsoft.Xna.Framework.Rectangle?(rectangle8), alpha3, rotation24, new Vector2((float)(rectangle8.Width / 2), 0f), projectile.scale, SpriteEffects.None, 0.8f); num234 += num237; vector31 += value28 * num237; } } - rectangle8 = new Rectangle(0, 84, texture2D22.Width, 56); //90 and 48 + rectangle8 = new Rectangle(0, 114, texture2D22.Width, 84); //90 and 48 Main.spriteBatch.Draw(texture2D22, value30 - Main.screenPosition + value29, new Microsoft.Xna.Framework.Rectangle?(rectangle8), alpha3, rotation24, texture2D22.Frame(1, 1, 0, 0).Top(), projectile.scale, SpriteEffects.None, 0f); return false; } - public override Color? GetAlpha(Color lightColor) + //All of this wouldnt be here if depthLayer fucking worked, i wanna hit someone - Shucks + public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) + { + Vector2 mountedCenter = Main.player[projectile.owner].MountedCenter; + Color color25 = Lighting.GetColor((int)((double)projectile.position.X + (double)projectile.width * 0.5) / 16, (int)(((double)projectile.position.Y + (double)projectile.height * 0.5) / 16.0)); + if (projectile.hide && !ProjectileID.Sets.DontAttachHideToAlpha[projectile.type]) + { + color25 = Lighting.GetColor((int)mountedCenter.X / 16, (int)(mountedCenter.Y / 16f)); + } + Texture2D texture2D22 = Main.projectileTexture[projectile.type]; + Color alpha3 = projectile.GetAlpha(color25); + float num230 = projectile.velocity.Length() + 16f; + Vector2 value28 = Vector2.Normalize(projectile.velocity); + Rectangle rectangle8 = new Rectangle(0, 64, texture2D22.Width, 28); //68 and 18 + Vector2 value29 = new Vector2(0f, Main.player[projectile.owner].gfxOffY); + float rotation24 = projectile.rotation + 3.14159274f; + num230 -= 40f * projectile.scale; + Vector2 vector31 = projectile.Center.Floor(); + vector31 += value28 * projectile.scale * 33f; + + if (num230 > 0f) + { + float num231 = 0f; + while (num231 + 1f < num230) + { + if (num230 - num231 < (float)rectangle8.Height) + { + rectangle8.Height = (int)(num230 - num231); + } + Main.spriteBatch.Draw(texture2D22, vector31 - Main.screenPosition + value29, new Microsoft.Xna.Framework.Rectangle?(rectangle8), alpha3, rotation24, new Vector2((float)(rectangle8.Width / 2), 0f), projectile.scale, SpriteEffects.None, 0.6f); + num231 += (float)rectangle8.Height * projectile.scale; + vector31 += value28 * (float)rectangle8.Height * projectile.scale; + } + } + } + + /*public override Color? GetAlpha(Color lightColor) { return new Color(150, Main.DiscoG, 255, 200); - } + }*/ public override void CutTiles() { diff --git a/Projectiles/Melee/CosmicDischargeFlail.png b/Projectiles/Melee/CosmicDischargeFlail.png index 83f54ed78d..5750e02c79 100644 Binary files a/Projectiles/Melee/CosmicDischargeFlail.png and b/Projectiles/Melee/CosmicDischargeFlail.png differ diff --git a/Projectiles/Melee/CosmicIceBurst.cs b/Projectiles/Melee/CosmicIceBurst.cs index afc7d590a4..fe4a253bb2 100644 --- a/Projectiles/Melee/CosmicIceBurst.cs +++ b/Projectiles/Melee/CosmicIceBurst.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Cosmic Ice"); - Main.projFrames[projectile.type] = 9; + Main.projFrames[projectile.type] = 6; } public override void SetDefaults() @@ -61,33 +61,33 @@ namespace CalamityMod.Projectiles.Melee projectile.Center = projectile.position; projectile.Damage(); Main.PlaySound(SoundID.Item62, projectile.position); - for (int num1000 = 0; num1000 < 4; num1000++) + for (int num1000 = 0; num1000 < 2; num1000++) { - int num1001 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 187, 0f, 0f, 100, new Color(150, Main.DiscoG, 255), 1.5f); + int num1001 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 187, 0f, 0f, 100, new Color(150, 255, 255), 1f); Main.dust[num1001].position = projectile.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)projectile.width / 2f; } - for (int num1002 = 0; num1002 < 10; num1002++) + for (int num1002 = 0; num1002 < 3; num1002++) { - int num1003 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 67, 0f, 0f, 200, new Color(150, Main.DiscoG, 255), 2.7f); + int num1003 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 67, 0f, 0f, 200, new Color(150, 255, 255), 1f); Main.dust[num1003].position = projectile.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)projectile.width / 2f; Main.dust[num1003].noGravity = true; Main.dust[num1003].velocity *= 3f; - num1003 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 67, 0f, 0f, 100, new Color(150, Main.DiscoG, 255), 1.5f); + num1003 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 67, 0f, 0f, 100, new Color(150, 255, 255), 0.6f); Main.dust[num1003].position = projectile.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)projectile.width / 2f; Main.dust[num1003].velocity *= 2f; Main.dust[num1003].noGravity = true; Main.dust[num1003].fadeIn = 2.5f; } - for (int num1004 = 0; num1004 < 5; num1004++) + for (int num1004 = 0; num1004 < 2; num1004++) { - int num1005 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 67, 0f, 0f, 0, new Color(150, Main.DiscoG, 255), 2.7f); + int num1005 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 67, 0f, 0f, 0, new Color(150, 255, 255), 1f); Main.dust[num1005].position = projectile.Center + Vector2.UnitX.RotatedByRandom(3.1415927410125732).RotatedBy((double)projectile.velocity.ToRotation(), default) * (float)projectile.width / 2f; Main.dust[num1005].noGravity = true; Main.dust[num1005].velocity *= 3f; } - for (int num1006 = 0; num1006 < 10; num1006++) + for (int num1006 = 0; num1006 < 3; num1006++) { - int num1007 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 187, 0f, 0f, 0, new Color(150, Main.DiscoG, 255), 1.5f); + int num1007 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 187, 0f, 0f, 0, new Color(150, 255, 255), 0.6f); Main.dust[num1007].position = projectile.Center + Vector2.UnitX.RotatedByRandom(3.1415927410125732).RotatedBy((double)projectile.velocity.ToRotation(), default) * (float)projectile.width / 2f; Main.dust[num1007].noGravity = true; Main.dust[num1007].velocity *= 3f; @@ -111,10 +111,10 @@ namespace CalamityMod.Projectiles.Melee return true; } - public override Color? GetAlpha(Color lightColor) + /*public override Color? GetAlpha(Color lightColor) { return new Color(150, Main.DiscoG, 255, 127); - } + }*/ public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { diff --git a/Projectiles/Melee/CosmicIceBurst.png b/Projectiles/Melee/CosmicIceBurst.png index c80e2e6b35..0b4776f1d9 100644 Binary files a/Projectiles/Melee/CosmicIceBurst.png and b/Projectiles/Melee/CosmicIceBurst.png differ diff --git a/Projectiles/Melee/MourningstarFlail.cs b/Projectiles/Melee/MourningstarFlail.cs index c8a5a3ecbf..f234422953 100644 --- a/Projectiles/Melee/MourningstarFlail.cs +++ b/Projectiles/Melee/MourningstarFlail.cs @@ -128,13 +128,13 @@ namespace CalamityMod.Projectiles.Melee float num230 = projectile.velocity.Length() + 16f; bool flag24 = num230 < 100f; Vector2 value28 = Vector2.Normalize(projectile.velocity); - Rectangle rectangle8 = new Rectangle(0, 0, texture2D22.Width, 36); //2 and 40 + Rectangle rectangle8 = new Rectangle(0, 0, texture2D22.Width, 32); //2 and 40 Vector2 value29 = new Vector2(0f, Main.player[projectile.owner].gfxOffY); float rotation24 = projectile.rotation + 3.14159274f; Main.spriteBatch.Draw(texture2D22, projectile.Center.Floor() - Main.screenPosition + value29, new Microsoft.Xna.Framework.Rectangle?(rectangle8), lightColor, rotation24, rectangle8.Size() / 2f - Vector2.UnitY * 4f, projectile.scale, SpriteEffects.None, 0f); num230 -= 40f * projectile.scale; Vector2 vector31 = projectile.Center.Floor(); - vector31 += value28 * projectile.scale * 24f; + vector31 += value28 * projectile.scale * 20f; rectangle8 = new Rectangle(0, 62, texture2D22.Width, 18); //68 and 18 if (num230 > 0f) { @@ -152,9 +152,9 @@ namespace CalamityMod.Projectiles.Melee } Vector2 value30 = vector31; vector31 = projectile.Center.Floor(); - vector31 += value28 * projectile.scale * 24f; - rectangle8 = new Rectangle(0, 40, texture2D22.Width, 20); //46 and 18 - int num232 = 18; + vector31 += value28 * projectile.scale * 20f; + rectangle8 = new Rectangle(0, 40, texture2D22.Width, 18); //46 and 18 + int num232 = 22; if (flag24) { num232 = 9; @@ -178,7 +178,7 @@ namespace CalamityMod.Projectiles.Melee vector31 += value28 * num237; } } - rectangle8 = new Rectangle(0, 84, texture2D22.Width, 56); //90 and 48 + rectangle8 = new Rectangle(0, 90, texture2D22.Width, 48); //90 and 48 Main.spriteBatch.Draw(texture2D22, value30 - Main.screenPosition + value29, new Microsoft.Xna.Framework.Rectangle?(rectangle8), lightColor, rotation24, texture2D22.Frame(1, 1, 0, 0).Top(), projectile.scale, SpriteEffects.None, 0f); return false; } diff --git a/Projectiles/Melee/MourningstarFlail.png b/Projectiles/Melee/MourningstarFlail.png index 3f5f4d8eef..9332afa338 100644 Binary files a/Projectiles/Melee/MourningstarFlail.png and b/Projectiles/Melee/MourningstarFlail.png differ diff --git a/Projectiles/Melee/Mourningstar_New.png b/Projectiles/Melee/Mourningstar_New.png deleted file mode 100644 index 9332afa338..0000000000 Binary files a/Projectiles/Melee/Mourningstar_New.png and /dev/null differ diff --git a/Projectiles/Melee/PlagueBeeDust.cs b/Projectiles/Melee/PlagueBeeDust.cs index f3812424bf..20ab9edb41 100644 --- a/Projectiles/Melee/PlagueBeeDust.cs +++ b/Projectiles/Melee/PlagueBeeDust.cs @@ -2,6 +2,8 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; +using Microsoft.Xna.Framework.Graphics; namespace CalamityMod.Projectiles.Melee { @@ -10,6 +12,9 @@ namespace CalamityMod.Projectiles.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Dust"); + Main.projFrames[projectile.type] = 4; + ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; } public override void SetDefaults() @@ -22,45 +27,47 @@ namespace CalamityMod.Projectiles.Melee projectile.melee = true; projectile.penetrate = -1; projectile.extraUpdates = 3; - projectile.timeLeft = 60; + projectile.timeLeft = 150; } public override void AI() { + projectile.ai[1]++; Lighting.AddLight(projectile.Center, 0.05f, 0.4f, 0f); - if (projectile.ai[0] > 7f) + if (projectile.ai[1] < 60f) { - float num296 = 1f; - if (projectile.ai[0] == 8f) - { - num296 = 0.25f; - } - else if (projectile.ai[0] == 9f) - { - num296 = 0.5f; - } - else if (projectile.ai[0] == 10f) - { - num296 = 0.75f; - } - projectile.ai[0] += 1f; - if (projectile.ai[0] % 2f == 0f) - { - int spawnX = (int)(projectile.width / 2); - int spawnY = (int)(projectile.width / 2); - int bee = Projectile.NewProjectile(projectile.Center.X + (float)Main.rand.Next(-spawnX, spawnX), projectile.Center.Y + (float)Main.rand.Next(-spawnY, spawnY), - projectile.velocity.X, projectile.velocity.Y, Main.player[projectile.owner].beeType(), - Main.player[projectile.owner].beeDamage(projectile.damage / 3), Main.player[projectile.owner].beeKB(0f), projectile.owner, 0f, 0f); - Main.projectile[bee].penetrate = 1; - } - int num297 = 89; - for (int num298 = 0; num298 < 2; num298++) + if (projectile.ai[0] > 7f) { + float num296 = 1f; + if (projectile.ai[0] == 8f) + { + num296 = 0.25f; + } + else if (projectile.ai[0] == 9f) + { + num296 = 0.5f; + } + else if (projectile.ai[0] == 10f) + { + num296 = 0.75f; + } + projectile.ai[0] += 1f; + if (projectile.ai[0] % 2f == 0f) + { + int spawnX = (int)(projectile.width / 2); + int spawnY = (int)(projectile.width / 2); + int bee = Projectile.NewProjectile(projectile.Center.X + (float)Main.rand.Next(-spawnX, spawnX), projectile.Center.Y + (float)Main.rand.Next(-spawnY, spawnY), + projectile.velocity.X, projectile.velocity.Y, Main.player[projectile.owner].beeType(), + Main.player[projectile.owner].beeDamage(projectile.damage / 3), Main.player[projectile.owner].beeKB(0f), projectile.owner, 0f, 0f); + Main.projectile[bee].penetrate = 1; + } + int num297 = 89; + //Dust int num299 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, num297, projectile.velocity.X * 0.2f, projectile.velocity.Y * 0.2f, 100, default, 1f); if (Main.rand.NextBool(3)) { Main.dust[num299].noGravity = true; - Main.dust[num299].scale *= 2.5f; + Main.dust[num299].scale *= 1.8f; Dust expr_DBEF_cp_0 = Main.dust[num299]; expr_DBEF_cp_0.velocity.X *= 2f; Dust expr_DC0F_cp_0 = Main.dust[num299]; @@ -68,26 +75,60 @@ namespace CalamityMod.Projectiles.Melee } else { - Main.dust[num299].scale *= 2f; + Main.dust[num299].scale *= 1.3f; } Dust expr_DC74_cp_0 = Main.dust[num299]; expr_DC74_cp_0.velocity.X *= 1.2f; Dust expr_DC94_cp_0 = Main.dust[num299]; expr_DC94_cp_0.velocity.Y *= 1.2f; Main.dust[num299].scale *= num296; + + } + else + { + projectile.ai[0] += 1f; } } else { - projectile.ai[0] += 1f; + projectile.damage = 0; + projectile.velocity *= 0.99f; + //Fade out + if (projectile.alpha < 255) + projectile.alpha += 5; + if (projectile.alpha > 255) + projectile.alpha = 255; + if (projectile.ai[1] >= 150) + projectile.Kill(); } - projectile.rotation += 0.3f * (float)projectile.direction; - } + + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi); + + //Animation + projectile.frameCounter++; + if (projectile.frameCounter > 8) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 5; target.AddBuff(ModContent.BuffType(), 180); } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; + } } } diff --git a/Projectiles/Melee/PlagueBeeDust.png b/Projectiles/Melee/PlagueBeeDust.png index 77e7330592..c92fc1e1e3 100644 Binary files a/Projectiles/Melee/PlagueBeeDust.png and b/Projectiles/Melee/PlagueBeeDust.png differ diff --git a/Projectiles/Melee/PlagueDust.cs b/Projectiles/Melee/PlagueDust.cs index 8c10ce65d6..61a84cf089 100644 --- a/Projectiles/Melee/PlagueDust.cs +++ b/Projectiles/Melee/PlagueDust.cs @@ -1,6 +1,8 @@ using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -9,6 +11,9 @@ namespace CalamityMod.Projectiles.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Dust"); + Main.projFrames[projectile.type] = 4; + ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; } public override void SetDefaults() @@ -21,36 +26,38 @@ namespace CalamityMod.Projectiles.Melee projectile.melee = true; projectile.penetrate = -1; projectile.extraUpdates = 3; - projectile.timeLeft = 60; + projectile.timeLeft = 150; } public override void AI() { + projectile.ai[1]++; Lighting.AddLight(projectile.Center, 0.05f, 0.4f, 0f); - if (projectile.ai[0] > 7f) + if (projectile.ai[1] < 60) { - float num296 = 1f; - if (projectile.ai[0] == 8f) - { - num296 = 0.25f; - } - else if (projectile.ai[0] == 9f) - { - num296 = 0.5f; - } - else if (projectile.ai[0] == 10f) - { - num296 = 0.75f; - } - projectile.ai[0] += 1f; - int num297 = 89; - for (int num298 = 0; num298 < 2; num298++) + if (projectile.ai[0] > 7f) { + float num296 = 1f; + if (projectile.ai[0] == 8f) + { + num296 = 0.25f; + } + else if (projectile.ai[0] == 9f) + { + num296 = 0.5f; + } + else if (projectile.ai[0] == 10f) + { + num296 = 0.75f; + } + projectile.ai[0] += 1f; + int num297 = 89; + //Dust int num299 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, num297, projectile.velocity.X * 0.2f, projectile.velocity.Y * 0.2f, 100, default, 1f); if (Main.rand.NextBool(3)) { Main.dust[num299].noGravity = true; - Main.dust[num299].scale *= 2.5f; + Main.dust[num299].scale *= 1.8f; Dust expr_DBEF_cp_0 = Main.dust[num299]; expr_DBEF_cp_0.velocity.X *= 2f; Dust expr_DC0F_cp_0 = Main.dust[num299]; @@ -58,7 +65,7 @@ namespace CalamityMod.Projectiles.Melee } else { - Main.dust[num299].scale *= 2f; + Main.dust[num299].scale *= 1.3f; } Dust expr_DC74_cp_0 = Main.dust[num299]; expr_DC74_cp_0.velocity.X *= 1.2f; @@ -66,12 +73,38 @@ namespace CalamityMod.Projectiles.Melee expr_DC94_cp_0.velocity.Y *= 1.2f; Main.dust[num299].scale *= num296; } + else + { + projectile.ai[0] += 1f; + } } else { - projectile.ai[0] += 1f; + projectile.damage = 0; + projectile.velocity *= 0.99f; + //Fade out + if (projectile.alpha < 255) + projectile.alpha += 5; + if (projectile.alpha > 255) + projectile.alpha = 255; + if (projectile.ai[1] >= 150) + projectile.Kill(); + } + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi); + + //Animation + projectile.frameCounter++; + if (projectile.frameCounter > 8) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; } - projectile.rotation += 0.3f * (float)projectile.direction; } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) @@ -79,5 +112,11 @@ namespace CalamityMod.Projectiles.Melee target.immune[projectile.owner] = 5; target.AddBuff(ModContent.BuffType(), 120); } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; + } } } diff --git a/Projectiles/Melee/PlagueDust.png b/Projectiles/Melee/PlagueDust.png index 77e7330592..c92fc1e1e3 100644 Binary files a/Projectiles/Melee/PlagueDust.png and b/Projectiles/Melee/PlagueDust.png differ diff --git a/Projectiles/Melee/Spears/FulgurationHalberdProj.cs b/Projectiles/Melee/Spears/FulgurationHalberdProj.cs index f875340a8c..f5afacc966 100644 --- a/Projectiles/Melee/Spears/FulgurationHalberdProj.cs +++ b/Projectiles/Melee/Spears/FulgurationHalberdProj.cs @@ -13,11 +13,11 @@ namespace CalamityMod.Projectiles.Melee.Spears public override void SetDefaults() { - projectile.width = 40; //The width of the .png file in pixels divided by 2. + projectile.width = 35; //The width of the .png file in pixels divided by 2. projectile.aiStyle = 19; projectile.melee = true; //Dictates whether projectile is a melee-class weapon. projectile.timeLeft = 90; - projectile.height = 40; //The height of the .png file in pixels divided by 2. + projectile.height = 33; //The height of the .png file in pixels divided by 2. projectile.friendly = true; projectile.hostile = false; projectile.tileCollide = false; diff --git a/Projectiles/Melee/Spears/FulgurationHalberdProj.png b/Projectiles/Melee/Spears/FulgurationHalberdProj.png index 551b268497..76cccf4f69 100644 Binary files a/Projectiles/Melee/Spears/FulgurationHalberdProj.png and b/Projectiles/Melee/Spears/FulgurationHalberdProj.png differ diff --git a/Projectiles/Ranged/AquaBlast.cs b/Projectiles/Ranged/AquaBlast.cs index a570b078eb..b62070d64f 100644 --- a/Projectiles/Ranged/AquaBlast.cs +++ b/Projectiles/Ranged/AquaBlast.cs @@ -8,12 +8,13 @@ namespace CalamityMod.Projectiles.Ranged public override void SetStaticDefaults() { DisplayName.SetDefault("Aqua Blast"); + Main.projFrames[projectile.type] = 4; } public override void SetDefaults() { - projectile.width = 8; - projectile.height = 8; + projectile.width = 12; + projectile.height = 12; projectile.friendly = true; projectile.ignoreWater = true; projectile.penetrate = 1; @@ -23,13 +24,30 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { - Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0.75f / 255f); - for (int num457 = 0; num457 < 5; num457++) + //Animation + projectile.frameCounter++; + if (projectile.frameCounter > 5) { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) + MathHelper.ToRadians(90) * projectile.direction; + + + Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0.75f / 255f); + for (int num457 = 0; num457 < 2; num457++) + { + Vector2 dspeed = -projectile.velocity * Main.rand.NextFloat(0.5f * 0.8f); int num458 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 33, 0f, 0f, 100, default, 1f); Main.dust[num458].noGravity = true; - Main.dust[num458].velocity *= 0.5f; - Main.dust[num458].velocity += projectile.velocity * 0.1f; + Main.dust[num458].velocity = dspeed; } } diff --git a/Projectiles/Ranged/AquaBlast.png b/Projectiles/Ranged/AquaBlast.png index 0056fc1e24..91449ac4c5 100644 Binary files a/Projectiles/Ranged/AquaBlast.png and b/Projectiles/Ranged/AquaBlast.png differ diff --git a/Projectiles/Ranged/AquaBlastToxic.cs b/Projectiles/Ranged/AquaBlastToxic.cs index e15b705654..7c3aa71b3d 100644 --- a/Projectiles/Ranged/AquaBlastToxic.cs +++ b/Projectiles/Ranged/AquaBlastToxic.cs @@ -10,12 +10,13 @@ namespace CalamityMod.Projectiles.Ranged public override void SetStaticDefaults() { DisplayName.SetDefault("Aqua Blast Toxic"); + Main.projFrames[projectile.type] = 4; } public override void SetDefaults() { - projectile.width = 8; - projectile.height = 8; + projectile.width = 12; + projectile.height = 12; projectile.friendly = true; projectile.ignoreWater = true; projectile.penetrate = 1; @@ -25,13 +26,29 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { - Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0.35f / 255f, (255 - projectile.alpha) * 0.4f / 255f); - for (int num457 = 0; num457 < 5; num457++) + //Animation + projectile.frameCounter++; + if (projectile.frameCounter > 5) { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) + MathHelper.ToRadians(90) * projectile.direction; + + Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0.35f / 255f, (255 - projectile.alpha) * 0.4f / 255f); + for (int num457 = 0; num457 < 2; num457++) + { + Vector2 dspeed = -projectile.velocity * Main.rand.NextFloat(0.5f * 0.8f); int num458 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 89, 0f, 0f, 100, default, 1f); Main.dust[num458].noGravity = true; - Main.dust[num458].velocity *= 0.5f; - Main.dust[num458].velocity += projectile.velocity * 0.1f; + Main.dust[num458].velocity = dspeed; } } diff --git a/Projectiles/Ranged/AquaBlastToxic.png b/Projectiles/Ranged/AquaBlastToxic.png index 0056fc1e24..db383de083 100644 Binary files a/Projectiles/Ranged/AquaBlastToxic.png and b/Projectiles/Ranged/AquaBlastToxic.png differ diff --git a/Projectiles/Ranged/AstrealArrow.cs b/Projectiles/Ranged/AstrealArrow.cs index 5220532859..8b6e72e815 100644 --- a/Projectiles/Ranged/AstrealArrow.cs +++ b/Projectiles/Ranged/AstrealArrow.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 14; - projectile.height = 14; + projectile.width = 18; + projectile.height = 18; projectile.alpha = 255; projectile.friendly = true; projectile.ranged = true; diff --git a/Projectiles/Ranged/AstrealArrow.png b/Projectiles/Ranged/AstrealArrow.png index d267aab942..e153774cc8 100644 Binary files a/Projectiles/Ranged/AstrealArrow.png and b/Projectiles/Ranged/AstrealArrow.png differ diff --git a/Projectiles/Ranged/AstrealFlame.png b/Projectiles/Ranged/AstrealFlame.png index 2ef4c2dba5..3009ead213 100644 Binary files a/Projectiles/Ranged/AstrealFlame.png and b/Projectiles/Ranged/AstrealFlame.png differ diff --git a/Projectiles/Ranged/BloodClotFriendly.cs b/Projectiles/Ranged/BloodClotFriendly.cs index 4b0b4bc86f..62c65cc515 100644 --- a/Projectiles/Ranged/BloodClotFriendly.cs +++ b/Projectiles/Ranged/BloodClotFriendly.cs @@ -14,8 +14,8 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 6; - projectile.height = 6; + projectile.width = 8; + projectile.height = 8; projectile.friendly = true; projectile.ranged = true; projectile.penetrate = 1; @@ -28,11 +28,11 @@ namespace CalamityMod.Projectiles.Ranged projectile.localAI[0] += 1f; if (projectile.localAI[0] > 4f) { - for (int num468 = 0; num468 < 3; num468++) + for (int num468 = 0; num468 < 2; num468++) { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 5, 0f, 0f, 100, default, 2f); + Vector2 dspeed = -projectile.velocity * 0.7f; + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 5, dspeed.X, dspeed.Y, 100, default, 2f); Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; } } } diff --git a/Projectiles/Ranged/BloodClotFriendly.png b/Projectiles/Ranged/BloodClotFriendly.png index a3192f9461..2fabfdd09a 100644 Binary files a/Projectiles/Ranged/BloodClotFriendly.png and b/Projectiles/Ranged/BloodClotFriendly.png differ diff --git a/Projectiles/Ranged/BrimstoneBallFriendly.cs b/Projectiles/Ranged/BrimstoneBallFriendly.cs index 1b711ce910..f447f1229b 100644 --- a/Projectiles/Ranged/BrimstoneBallFriendly.cs +++ b/Projectiles/Ranged/BrimstoneBallFriendly.cs @@ -13,8 +13,9 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 20; - projectile.height = 20; + projectile.width = 16; + projectile.height = 16; + projectile.scale = 1.2f; projectile.friendly = true; projectile.ranged = true; projectile.penetrate = 6; @@ -24,16 +25,15 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { + projectile.rotation += 0.12f * projectile.direction; Lighting.AddLight(projectile.Center, 0.25f, 0f, 0f); projectile.localAI[0] += 1f; if (projectile.localAI[0] > 4f) { - for (int num468 = 0; num468 < 5; num468++) - { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 235, 0f, 0f, 100, default, 2f); - Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; - } + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 235, 0f, 0f, 150, default, 1.5f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity *= 0f; + } } diff --git a/Projectiles/Ranged/BrimstoneBallFriendly.png b/Projectiles/Ranged/BrimstoneBallFriendly.png index 6ea4de3903..c73fd9f11e 100644 Binary files a/Projectiles/Ranged/BrimstoneBallFriendly.png and b/Projectiles/Ranged/BrimstoneBallFriendly.png differ diff --git a/Projectiles/Ranged/ClamorRifleProj.cs b/Projectiles/Ranged/ClamorRifleProj.cs index ed79b34a52..0b40d9356b 100644 --- a/Projectiles/Ranged/ClamorRifleProj.cs +++ b/Projectiles/Ranged/ClamorRifleProj.cs @@ -14,8 +14,8 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 8; - projectile.height = 8; + projectile.width = 16; + projectile.height = 16; projectile.friendly = true; projectile.ignoreWater = true; projectile.penetrate = 1; @@ -24,14 +24,15 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { + projectile.rotation += 0.15f; projectile.localAI[0] += 1f; if (projectile.localAI[0] > 3f) { - Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0.25f / 255f, (255 - projectile.alpha) * 0.25f / 255f); - for (int num151 = 0; num151 < 3; num151++) + Lighting.AddLight(projectile.Center, new Vector3(44, 191, 232) * (1.3f / 255)); + for (int num151 = 0; num151 < 2; num151++) { int num154 = 14; - int num155 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, 68, 0f, 0f, 100, default, 1f); + int num155 = Dust.NewDust(new Vector2(projectile.Center.X, projectile.Center.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, 68, 0f, 0f, 100, default, 1f); Main.dust[num155].noGravity = true; Main.dust[num155].velocity *= 0.1f; Main.dust[num155].velocity += projectile.velocity * 0.5f; @@ -72,12 +73,12 @@ namespace CalamityMod.Projectiles.Ranged } } - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + /*public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { Texture2D tex = Main.projectileTexture[projectile.type]; spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); return false; - } + }*/ public override void Kill(int timeLeft) { diff --git a/Projectiles/Ranged/ClamorRifleProj.png b/Projectiles/Ranged/ClamorRifleProj.png index 0056fc1e24..1e19c6c77a 100644 Binary files a/Projectiles/Ranged/ClamorRifleProj.png and b/Projectiles/Ranged/ClamorRifleProj.png differ diff --git a/Projectiles/Ranged/ClamorRifleProjSplit.cs b/Projectiles/Ranged/ClamorRifleProjSplit.cs index 13235c8681..8ea656f765 100644 --- a/Projectiles/Ranged/ClamorRifleProjSplit.cs +++ b/Projectiles/Ranged/ClamorRifleProjSplit.cs @@ -13,32 +13,34 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 8; - projectile.height = 8; + projectile.width = 16; + projectile.height = 16; projectile.friendly = true; projectile.ignoreWater = true; + projectile.scale = 0.9f; projectile.penetrate = 1; projectile.ranged = true; } public override void AI() { - Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0.25f / 255f, (255 - projectile.alpha) * 0.25f / 255f); - for (int num151 = 0; num151 < 3; num151++) + projectile.rotation += 0.15f; + Lighting.AddLight(projectile.Center, new Vector3(44, 191, 232) * (1.3f/255)); + for (int num151 = 0; num151 < 2; num151++) { int num154 = 14; - int num155 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, 68, 0f, 0f, 100, default, 1f); + int num155 = Dust.NewDust(new Vector2(projectile.Center.X, projectile.Center.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, 68, 0f, 0f, 100, default, 1f); Main.dust[num155].noGravity = true; Main.dust[num155].velocity *= 0.1f; Main.dust[num155].velocity += projectile.velocity * 0.5f; } } - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + /* override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { Texture2D tex = Main.projectileTexture[projectile.type]; spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); return false; - } + }*/ } } diff --git a/Projectiles/Ranged/ClamorRifleProjSplit.png b/Projectiles/Ranged/ClamorRifleProjSplit.png index 0056fc1e24..1e19c6c77a 100644 Binary files a/Projectiles/Ranged/ClamorRifleProjSplit.png and b/Projectiles/Ranged/ClamorRifleProjSplit.png differ diff --git a/Projectiles/Ranged/DWArrow.cs b/Projectiles/Ranged/DWArrow.cs new file mode 100644 index 0000000000..afc90e38f8 --- /dev/null +++ b/Projectiles/Ranged/DWArrow.cs @@ -0,0 +1,85 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Ranged +{ + public class DWArrow : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Death's Arrow"); + } + + public override void SetDefaults() + { + projectile.width = 10; + projectile.height = 10; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.ranged = true; + projectile.penetrate = 1; + projectile.extraUpdates = 5; + projectile.timeLeft = 600; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 2; + projectile.arrow = true; + } + + public override void AI() + { + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = (projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi)) + MathHelper.ToRadians(90) *projectile.direction; + + if (projectile.ai[1] == 0f) + { + projectile.ai[1] = 1f; + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 12); + } + + // Force damage type based on AI variable (this is outdated code and the weapons themselves should set the force variables) + if (projectile.ai[0] == 1f) + projectile.Calamity().forceMelee = true; + else if (projectile.ai[0] == 2f) + projectile.Calamity().forceRogue = true; + + Lighting.AddLight(projectile.Center, 0.4f, 0.2f, 0.4f); + for (int num121 = 0; num121 < 2; num121++) + { + Dust dust4 = Main.dust[Dust.NewDust(projectile.position, projectile.width, projectile.height, Main.rand.NextBool(3) ? 56 : 242, projectile.velocity.X, projectile.velocity.Y, 100, default, 1f)]; + dust4.velocity = Vector2.Zero; + dust4.position -= projectile.velocity / 5f * (float)num121; + dust4.noGravity = true; + dust4.scale = 0.8f; + dust4.noLight = true; + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(BuffID.OnFire, 600); + target.AddBuff(BuffID.Frostburn, 600); + } + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D texture; + if (projectile.localAI[1] == 0f) + projectile.localAI[1] = Main.rand.Next(1, 3); + switch (projectile.localAI[1]) + { + + case 2f: + texture = ModContent.GetTexture("CalamityMod/Projectiles/Ranged/DWArrow2"); + break; + default: + texture = ModContent.GetTexture("CalamityMod/Projectiles/Ranged/DWArrow"); + break; + } + Main.spriteBatch.Draw(texture, projectile.Center - Main.screenPosition, new Rectangle?(new Rectangle(0, 0, texture.Width, texture.Height)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2(texture.Width / 2f, texture.Height / 2f), projectile.scale, SpriteEffects.None, 0f); + return false; + } + } +} diff --git a/Projectiles/Ranged/DWArrow.png b/Projectiles/Ranged/DWArrow.png new file mode 100644 index 0000000000..187c297c92 Binary files /dev/null and b/Projectiles/Ranged/DWArrow.png differ diff --git a/Projectiles/Ranged/DWArrow2.png b/Projectiles/Ranged/DWArrow2.png new file mode 100644 index 0000000000..1e189d0434 Binary files /dev/null and b/Projectiles/Ranged/DWArrow2.png differ diff --git a/Projectiles/Ranged/DaemonsFlameArrow.cs b/Projectiles/Ranged/DaemonsFlameArrow.cs index c94ad2d87c..f8889ecaa9 100644 --- a/Projectiles/Ranged/DaemonsFlameArrow.cs +++ b/Projectiles/Ranged/DaemonsFlameArrow.cs @@ -15,13 +15,12 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 8; - projectile.height = 8; + projectile.width = 16; + projectile.height = 16; projectile.friendly = true; projectile.penetrate = 5; projectile.tileCollide = false; projectile.timeLeft = 300; - projectile.alpha = 255; projectile.ranged = true; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 1; @@ -29,24 +28,26 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { + projectile.rotation += 0.15f; + Lighting.AddLight(projectile.Center, new Vector3(245, 124, 110) * (1.7f / 255)); x++; projectile.localAI[0] += 1f; if (projectile.localAI[0] > 30f) { projectile.velocity.Y = (float)(((double)projectile.ai[1]) * Math.Sin(x / 4)); } - for (int num151 = 0; num151 < 3; num151++) + for (int num151 = 0; num151 < 2; num151++) { int num154 = 14; - int num155 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, 60, 0f, 0f, 100, default, 3f); + int num155 = Dust.NewDust(new Vector2(projectile.Center.X, projectile.Center.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, 60, 0f, 0f, 100, default, 1.6f); Main.dust[num155].noGravity = true; Main.dust[num155].velocity *= 0.1f; Main.dust[num155].velocity += projectile.velocity * 0.5f; } - if (Main.rand.NextBool(8)) + if (Main.rand.NextBool(13)) { int num156 = 16; - int num157 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num156 * 2, projectile.height - num156 * 2, 60, 0f, 0f, 100, default, 2.25f); + int num157 = Dust.NewDust(new Vector2(projectile.Center.X, projectile.Center.Y), projectile.width - num156 * 2, projectile.height - num156 * 2, 60, 0f, 0f, 100, default, 1f); Main.dust[num157].velocity *= 0.25f; Main.dust[num157].velocity += projectile.velocity * 0.5f; } diff --git a/Projectiles/Ranged/DaemonsFlameArrow.png b/Projectiles/Ranged/DaemonsFlameArrow.png index 0056fc1e24..d9f9a1724d 100644 Binary files a/Projectiles/Ranged/DaemonsFlameArrow.png and b/Projectiles/Ranged/DaemonsFlameArrow.png differ diff --git a/Projectiles/Ranged/DragonBurst.cs b/Projectiles/Ranged/DragonBurst.cs index 9e4f712b62..e91627031a 100644 --- a/Projectiles/Ranged/DragonBurst.cs +++ b/Projectiles/Ranged/DragonBurst.cs @@ -1,5 +1,6 @@ using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -11,15 +12,16 @@ namespace CalamityMod.Projectiles.Ranged public override void SetStaticDefaults() { DisplayName.SetDefault("Burst"); + ProjectileID.Sets.TrailCacheLength[projectile.type] = 10; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; } public override void SetDefaults() { - projectile.width = 6; - projectile.height = 6; + projectile.width = 8; + projectile.height = 8; projectile.friendly = true; projectile.extraUpdates = 10; - projectile.alpha = 255; projectile.penetrate = 1; projectile.timeLeft = 180; projectile.ranged = true; @@ -27,24 +29,26 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) +MathHelper.ToRadians(90) * projectile.direction; projectile.localAI[0] += 1f; if (projectile.localAI[0] > 4f) { - for (int num92 = 0; num92 < 2; num92++) - { - float num93 = projectile.velocity.X / 3f * (float)num92; - float num94 = projectile.velocity.Y / 3f * (float)num92; - int num95 = 4; - int num96 = Dust.NewDust(new Vector2(projectile.position.X + (float)num95, projectile.position.Y + (float)num95), projectile.width - num95 * 2, projectile.height - num95 * 2, 127, 0f, 0f, 100, default, 2f); - Main.dust[num96].noGravity = true; - Main.dust[num96].velocity *= 0.1f; - Main.dust[num96].velocity += projectile.velocity * 0.1f; - Dust expr_47FA_cp_0 = Main.dust[num96]; - expr_47FA_cp_0.position.X -= num93; - Dust expr_4815_cp_0 = Main.dust[num96]; - expr_4815_cp_0.position.Y -= num94; - } - if (Main.rand.NextBool(10)) + + float num93 = projectile.velocity.X / 3f; + float num94 = projectile.velocity.Y / 3f; + int num95 = 4; + int num96 = Dust.NewDust(new Vector2(projectile.position.X + (float)num95, projectile.position.Y + (float)num95), projectile.width - num95 * 2, projectile.height - num95 * 2, 127, 0f, 0f, 100, default, 2f); + Main.dust[num96].noGravity = true; + Main.dust[num96].velocity *= 0.1f; + Main.dust[num96].velocity += projectile.velocity * 0.1f; + Dust expr_47FA_cp_0 = Main.dust[num96]; + expr_47FA_cp_0.position.X -= num93; + Dust expr_4815_cp_0 = Main.dust[num96]; + expr_4815_cp_0.position.Y -= num94; + + if (Main.rand.NextBool(20)) { int num97 = 4; int num98 = Dust.NewDust(new Vector2(projectile.position.X + (float)num97, projectile.position.Y + (float)num97), projectile.width - num97 * 2, projectile.height - num97 * 2, 127, 0f, 0f, 100, default, 0.6f); @@ -67,5 +71,11 @@ namespace CalamityMod.Projectiles.Ranged { target.AddBuff(BuffID.OnFire, 600); } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; + } } } diff --git a/Projectiles/Ranged/DragonBurst.png b/Projectiles/Ranged/DragonBurst.png index a3192f9461..fe83372aa0 100644 Binary files a/Projectiles/Ranged/DragonBurst.png and b/Projectiles/Ranged/DragonBurst.png differ diff --git a/Projectiles/Ranged/FungiOrb.cs b/Projectiles/Ranged/FungiOrb.cs index 9de2c1d6fe..46e148b538 100644 --- a/Projectiles/Ranged/FungiOrb.cs +++ b/Projectiles/Ranged/FungiOrb.cs @@ -14,8 +14,8 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 6; - projectile.height = 6; + projectile.width = 12; + projectile.height = 12; projectile.friendly = true; projectile.ranged = true; projectile.penetrate = 1; @@ -25,15 +25,20 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) + MathHelper.ToRadians(90) * projectile.direction; + + Lighting.AddLight(projectile.Center, new Vector3(0, 244, 252) * (1.2f / 255)); + projectile.localAI[0] += 1f; if (projectile.localAI[0] > 4f) { - for (int num468 = 0; num468 < 3; num468++) - { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 56, 0f, 0f, 100, default, 1f); - Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; - } + Vector2 dspeed = -projectile.velocity * 0.5f; + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 56, 0f, 0f, 100, default, 1f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity = dspeed; + } } diff --git a/Projectiles/Ranged/FungiOrb.png b/Projectiles/Ranged/FungiOrb.png index a3192f9461..50c3603ed9 100644 Binary files a/Projectiles/Ranged/FungiOrb.png and b/Projectiles/Ranged/FungiOrb.png differ diff --git a/Projectiles/Ranged/FungiOrb2.cs b/Projectiles/Ranged/FungiOrb2.cs index 7874b15e18..f0451f089c 100644 --- a/Projectiles/Ranged/FungiOrb2.cs +++ b/Projectiles/Ranged/FungiOrb2.cs @@ -14,8 +14,8 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 6; - projectile.height = 6; + projectile.width = 12; + projectile.height = 12; projectile.friendly = true; projectile.ranged = true; projectile.penetrate = 1; @@ -25,17 +25,21 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) + MathHelper.ToRadians(90) * projectile.direction; + + Lighting.AddLight(projectile.Center, new Vector3(0, 244, 252) * (1.2f / 255)); + projectile.velocity.Y += 0.1f; projectile.velocity.X *= 0.95f; projectile.localAI[0] += 1f; if (projectile.localAI[0] > 4f) { - for (int num468 = 0; num468 < 3; num468++) - { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 56, 0f, 0f, 100, default, 1f); - Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; - } + Vector2 dspeed = -projectile.velocity * 0.5f; + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 56, 0f, 0f, 100, default, 1f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity = dspeed; } } diff --git a/Projectiles/Ranged/FungiOrb2.png b/Projectiles/Ranged/FungiOrb2.png index a3192f9461..50c3603ed9 100644 Binary files a/Projectiles/Ranged/FungiOrb2.png and b/Projectiles/Ranged/FungiOrb2.png differ diff --git a/Projectiles/Ranged/LunarBolt.cs b/Projectiles/Ranged/LunarBolt.cs index 07b9a60190..9e7608976a 100644 --- a/Projectiles/Ranged/LunarBolt.cs +++ b/Projectiles/Ranged/LunarBolt.cs @@ -12,50 +12,66 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 4; - projectile.height = 4; - projectile.aiStyle = 1; - projectile.scale = 1.25f; + projectile.width = 10; + projectile.height = 10; projectile.friendly = true; projectile.ranged = true; projectile.alpha = 255; projectile.penetrate = 1; projectile.extraUpdates = 1; projectile.timeLeft = 180; - aiType = 357; } public override void AI() { + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi); + if (projectile.alpha < 170) { - for (int num134 = 0; num134 < 10; num134++) + for (int num161 = 0; num161 < 5; num161++) { - float x = projectile.position.X - projectile.velocity.X / 10f * (float)num134; - float y = projectile.position.Y - projectile.velocity.Y / 10f * (float)num134; - int num135 = Dust.NewDust(new Vector2(x, y), 1, 1, 15, 0f, 0f, 0, default, 0.4f); + Vector2 dspeed = -projectile.velocity * 0.5f; + int num162 = Dust.NewDust(projectile.Center, 1, 1, 206, 0f, 0f, 0, default(Color), 1.2f); + Main.dust[num162].alpha = projectile.alpha; + Main.dust[num162].velocity = dspeed; + Main.dust[num162].noGravity = true; + } + for (int num134 = 0; num134 < 5; num134++) + { + Vector2 dspeed2 = -projectile.velocity * 0.5f; + int num135 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 107, 0f, 0f, 0, default, 0.7f); Main.dust[num135].alpha = projectile.alpha; - Main.dust[num135].position.X = x; - Main.dust[num135].position.Y = y; - Main.dust[num135].velocity *= 0f; + Main.dust[num135].velocity = dspeed2; Main.dust[num135].noGravity = true; } } - if (projectile.alpha > 0) + if (projectile.alpha > 50) { projectile.alpha -= 25; } - if (projectile.alpha < 0) + if (projectile.alpha < 50) { - projectile.alpha = 0; + projectile.alpha = 50; } } public override bool OnTileCollide(Vector2 oldVelocity) { - Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + if (projectile.ai[0] == 0f) + { + Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); + Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 10); + projectile.ai[0]++; + } return false; } + + public override Color? GetAlpha(Color lightColor) + { + Color color = new Color(168, 247, 239); + return color; + } } } diff --git a/Projectiles/Ranged/LunarBolt.png b/Projectiles/Ranged/LunarBolt.png index 15e8775737..e72e6b4f11 100644 Binary files a/Projectiles/Ranged/LunarBolt.png and b/Projectiles/Ranged/LunarBolt.png differ diff --git a/Projectiles/Ranged/LunarBolt2.cs b/Projectiles/Ranged/LunarBolt2.cs index 89906497dc..02dbb1826b 100644 --- a/Projectiles/Ranged/LunarBolt2.cs +++ b/Projectiles/Ranged/LunarBolt2.cs @@ -12,50 +12,66 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 4; - projectile.height = 4; - projectile.aiStyle = 1; - projectile.scale = 1.25f; + projectile.width = 10; + projectile.height = 10; projectile.friendly = true; projectile.ranged = true; projectile.alpha = 255; projectile.penetrate = 1; projectile.extraUpdates = 1; projectile.timeLeft = 180; - aiType = 357; } public override void AI() { + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi); + if (projectile.alpha < 170) { - for (int num134 = 0; num134 < 10; num134++) + for (int num161 = 0; num161 < 5; num161++) { - float x = projectile.position.X - projectile.velocity.X / 10f * (float)num134; - float y = projectile.position.Y - projectile.velocity.Y / 10f * (float)num134; - int num135 = Dust.NewDust(new Vector2(x, y), 1, 1, 107, 0f, 0f, 0, default, 0.2f); + Vector2 dspeed = -projectile.velocity * 0.5f; + int num162 = Dust.NewDust(projectile.Center, 1, 1, 206, 0f, 0f, 0, default(Color), 1.2f); + Main.dust[num162].alpha = projectile.alpha; + Main.dust[num162].velocity = dspeed; + Main.dust[num162].noGravity = true; + } + for (int num134 = 0; num134 < 5; num134++) + { + Vector2 dspeed2 = -projectile.velocity * 0.5f; + int num135 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 107, 0f, 0f, 0, default, 0.7f); Main.dust[num135].alpha = projectile.alpha; - Main.dust[num135].position.X = x; - Main.dust[num135].position.Y = y; - Main.dust[num135].velocity *= 0f; + Main.dust[num135].velocity = dspeed2; Main.dust[num135].noGravity = true; } } - if (projectile.alpha > 0) + if (projectile.alpha > 50) { projectile.alpha -= 25; } - if (projectile.alpha < 0) + if (projectile.alpha < 50) { - projectile.alpha = 0; + projectile.alpha = 50; } } public override bool OnTileCollide(Vector2 oldVelocity) { - Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + if (projectile.ai[0] == 0f) + { + Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); + Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 10); + projectile.ai[0]++; + } return false; } + + public override Color? GetAlpha(Color lightColor) + { + Color color = new Color(168, 247, 193); + return color; + } } } diff --git a/Projectiles/Ranged/LunarBolt2.png b/Projectiles/Ranged/LunarBolt2.png index 15e8775737..e72e6b4f11 100644 Binary files a/Projectiles/Ranged/LunarBolt2.png and b/Projectiles/Ranged/LunarBolt2.png differ diff --git a/Projectiles/Ranged/MistArrow.cs b/Projectiles/Ranged/MistArrow.cs index fb0db1f20b..a69dd15880 100644 --- a/Projectiles/Ranged/MistArrow.cs +++ b/Projectiles/Ranged/MistArrow.cs @@ -10,6 +10,7 @@ namespace CalamityMod.Projectiles.Ranged public override void SetStaticDefaults() { DisplayName.SetDefault("Arrow"); + Main.projFrames[projectile.type] = 3; } public override void SetDefaults() @@ -18,6 +19,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.height = 14; projectile.friendly = true; projectile.ranged = true; + projectile.alpha = 255; projectile.penetrate = 1; projectile.aiStyle = 1; projectile.timeLeft = 300; @@ -27,15 +29,35 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { + //Animation + projectile.frameCounter++; + if (projectile.frameCounter > 9) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 2) + { + projectile.frame = 0; + } + + //Fade in + if (projectile.alpha > 5) + projectile.alpha -= 15; + if (projectile.alpha < 5) + projectile.alpha = 5; + + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) + MathHelper.ToRadians(90) * projectile.direction; + projectile.localAI[0] += 1f; if (projectile.localAI[0] > 4f) - { - for (int num468 = 0; num468 < 5; num468++) - { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 67, 0f, 0f, 100, default, 1.5f); - Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; - } + { + Vector2 dspeed = -projectile.velocity * Main.rand.NextFloat(0.3f, 0.6f); + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, new Color(237, 242, 242, 200), 1.2f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity = dspeed; } } @@ -43,7 +65,7 @@ namespace CalamityMod.Projectiles.Ranged { for (int k = 0; k < 5; k++) { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 67, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 31, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f, 100, new Color(237, 242, 242, 200), 1f); } } diff --git a/Projectiles/Ranged/MistArrow.png b/Projectiles/Ranged/MistArrow.png index 9aab0bf1d7..519ebfa17a 100644 Binary files a/Projectiles/Ranged/MistArrow.png and b/Projectiles/Ranged/MistArrow.png differ diff --git a/Projectiles/Ranged/Nanomachine.cs b/Projectiles/Ranged/Nanomachine.cs index 976e560828..d64c90f11b 100644 --- a/Projectiles/Ranged/Nanomachine.cs +++ b/Projectiles/Ranged/Nanomachine.cs @@ -12,19 +12,19 @@ namespace CalamityMod.Projectiles.Ranged public override void SetStaticDefaults() { DisplayName.SetDefault("Bullet"); + Main.projFrames[projectile.type] = 3; ProjectileID.Sets.TrailCacheLength[projectile.type] = 3; ProjectileID.Sets.TrailingMode[projectile.type] = 0; } public override void SetDefaults() { - projectile.width = 8; - projectile.height = 8; + projectile.width = 16; + projectile.height = 16; projectile.aiStyle = 1; projectile.friendly = true; projectile.ranged = true; projectile.penetrate = 1; - projectile.alpha = 255; projectile.timeLeft = 120; projectile.extraUpdates = 1; aiType = ProjectileID.Bullet; @@ -32,29 +32,44 @@ namespace CalamityMod.Projectiles.Ranged public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - Vector2 drawOrigin = new Vector2(Main.projectileTexture[projectile.type].Width * 0.5f, projectile.height * 0.5f); - for (int k = 0; k < projectile.oldPos.Length; k++) - { - Vector2 drawPos = projectile.oldPos[k] - Main.screenPosition + drawOrigin + new Vector2(0f, projectile.gfxOffY); - Color color = projectile.GetAlpha(lightColor) * ((float)(projectile.oldPos.Length - k) / (float)projectile.oldPos.Length); - spriteBatch.Draw(Main.projectileTexture[projectile.type], drawPos, null, color, projectile.rotation, drawOrigin, projectile.scale, SpriteEffects.None, 0f); - } - return true; + if (projectile.localAI[1] == 0) + projectile.localAI[1] = Main.rand.Next(1, 3); + Texture2D texture = ModContent.GetTexture("CalamityMod/Projectiles/Ranged/Nanomachine"); + if (projectile.localAI[1] == 2) + texture = ModContent.GetTexture("CalamityMod/Projectiles/Ranged/Nanomachine2"); + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1, texture); + return false; } public override void AI() { - for (int num136 = 0; num136 < 3; num136++) + //Animation + projectile.frameCounter++; + if (projectile.frameCounter > 4) { - float x2 = projectile.position.X - projectile.velocity.X / 10f * (float)num136; - float y2 = projectile.position.Y - projectile.velocity.Y / 10f * (float)num136; - int num137 = Dust.NewDust(new Vector2(x2, y2), 1, 1, 229, 0f, 0f, 0, default, 0.5f); - Main.dust[num137].alpha = projectile.alpha; - Main.dust[num137].position.X = x2; - Main.dust[num137].position.Y = y2; - Main.dust[num137].velocity *= 0f; - Main.dust[num137].noGravity = true; + projectile.frame++; + projectile.frameCounter = 0; } + if (projectile.frame > 2) + { + projectile.frame = 0; + } + + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) + MathHelper.ToRadians(90) * projectile.direction; + + + Vector2 dspeed = -projectile.velocity * Main.rand.NextFloat(0.5f, 0.8f); + float x2 = projectile.Center.X - projectile.velocity.X / 10f; + float y2 = projectile.Center.Y - projectile.velocity.Y / 10f; + int num137 = Dust.NewDust(new Vector2(x2, y2), 1, 1, 229, 0f, 0f, 0, default, 0.8f); + Main.dust[num137].alpha = projectile.alpha; + Main.dust[num137].position.X = x2; + Main.dust[num137].position.Y = y2; + Main.dust[num137].velocity = dspeed; + Main.dust[num137].noGravity = true; + float num138 = (float)Math.Sqrt((double)(projectile.velocity.X * projectile.velocity.X + projectile.velocity.Y * projectile.velocity.Y)); float num139 = projectile.localAI[0]; if (num139 == 0f) diff --git a/Projectiles/Ranged/Nanomachine.png b/Projectiles/Ranged/Nanomachine.png index 0056fc1e24..24d790cc9c 100644 Binary files a/Projectiles/Ranged/Nanomachine.png and b/Projectiles/Ranged/Nanomachine.png differ diff --git a/Projectiles/Ranged/Nanomachine2.png b/Projectiles/Ranged/Nanomachine2.png new file mode 100644 index 0000000000..68c762e36c Binary files /dev/null and b/Projectiles/Ranged/Nanomachine2.png differ diff --git a/Projectiles/Ranged/Nuke.cs b/Projectiles/Ranged/Nuke.cs index fcb3529511..09b58084f4 100644 --- a/Projectiles/Ranged/Nuke.cs +++ b/Projectiles/Ranged/Nuke.cs @@ -1,7 +1,9 @@ using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -12,12 +14,15 @@ namespace CalamityMod.Projectiles.Ranged public override void SetStaticDefaults() { DisplayName.SetDefault("Nuke"); + Main.projFrames[projectile.type] = 3; + ProjectileID.Sets.TrailCacheLength[projectile.type] = 3; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; } public override void SetDefaults() { - projectile.width = 14; - projectile.height = 14; + projectile.width = 22; + projectile.height = 22; projectile.friendly = true; projectile.penetrate = 1; projectile.timeLeft = 125; @@ -26,6 +31,23 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { + //Animation + projectile.frameCounter++; + if (projectile.frameCounter > 7) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 2) + { + projectile.frame = 0; + } + + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) + MathHelper.ToRadians(90) * projectile.direction; + + flarePowderTimer--; if (flarePowderTimer <= 0) { @@ -52,23 +74,16 @@ namespace CalamityMod.Projectiles.Ranged { if (Math.Abs(projectile.velocity.X) >= 8f || Math.Abs(projectile.velocity.Y) >= 8f) { - for (int num246 = 0; num246 < 4; num246++) - { - float num247 = 0f; - float num248 = 0f; - if (num246 == 1) - { - num247 = projectile.velocity.X * 0.5f; - num248 = projectile.velocity.Y * 0.5f; - } - int num249 = Dust.NewDust(new Vector2(projectile.position.X + 3f + num247, projectile.position.Y + 3f + num248) - projectile.velocity * 0.5f, projectile.width - 8, projectile.height - 8, 244, 0f, 0f, 100, default, 1f); - Main.dust[num249].scale *= 2f + (float)Main.rand.Next(10) * 0.1f; - Main.dust[num249].velocity *= 0.2f; - Main.dust[num249].noGravity = true; - num249 = Dust.NewDust(new Vector2(projectile.position.X + 3f + num247, projectile.position.Y + 3f + num248) - projectile.velocity * 0.5f, projectile.width - 8, projectile.height - 8, 244, 0f, 0f, 100, default, 0.5f); - Main.dust[num249].fadeIn = 1f + (float)Main.rand.Next(5) * 0.1f; - Main.dust[num249].velocity *= 0.05f; - } + float num247 = projectile.velocity.X * 0.5f; + float num248 = projectile.velocity.Y * 0.5f; + int num249 = Dust.NewDust(new Vector2(projectile.position.X + 3f + num247, projectile.position.Y + 3f + num248) - projectile.velocity * 0.5f, projectile.width - 8, projectile.height - 8, 244, 0f, 0f, 100, default, 1f); + Main.dust[num249].scale *= 2f + (float)Main.rand.Next(10) * 0.1f; + Main.dust[num249].velocity *= 0.2f; + Main.dust[num249].noGravity = true; + num249 = Dust.NewDust(new Vector2(projectile.position.X + 3f + num247, projectile.position.Y + 3f + num248) - projectile.velocity * 0.5f, projectile.width - 8, projectile.height - 8, 244, 0f, 0f, 100, default, 0.5f); + Main.dust[num249].fadeIn = 1f + (float)Main.rand.Next(5) * 0.1f; + Main.dust[num249].velocity *= 0.05f; + } } float num472 = projectile.Center.X; @@ -173,5 +188,11 @@ namespace CalamityMod.Projectiles.Ranged expr_13D1F_cp_0.velocity.Y -= 1f; } } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; + } } } diff --git a/Projectiles/Ranged/Nuke.png b/Projectiles/Ranged/Nuke.png index bcafcc1dba..d855762b23 100644 Binary files a/Projectiles/Ranged/Nuke.png and b/Projectiles/Ranged/Nuke.png differ diff --git a/Projectiles/Ranged/ProBolt.cs b/Projectiles/Ranged/ProBolt.cs index d4ba017097..0e6621b814 100644 --- a/Projectiles/Ranged/ProBolt.cs +++ b/Projectiles/Ranged/ProBolt.cs @@ -12,26 +12,31 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 4; - projectile.height = 4; + projectile.width = 8; + projectile.height = 8; projectile.friendly = true; projectile.ranged = true; projectile.penetrate = 3; - projectile.alpha = 255; projectile.timeLeft = 600; } public override void AI() { - for (int num134 = 0; num134 < 10; num134++) + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) + MathHelper.ToRadians(90) *projectile.direction; + + Lighting.AddLight(projectile.Center, new Vector3(158, 240, 240) * (1.5f / 255)); + for (int num134 = 0; num134 < 6; num134++) { - float x = projectile.position.X - projectile.velocity.X / 10f * (float)num134; - float y = projectile.position.Y - projectile.velocity.Y / 10f * (float)num134; + Vector2 dspeed = -projectile.velocity * 0.8f; + float x = projectile.Center.X - projectile.velocity.X / 10f * (float)num134; + float y = projectile.Center.Y - projectile.velocity.Y / 10f * (float)num134; int num135 = Dust.NewDust(new Vector2(x, y), 1, 1, 160, 0f, 0f, 0, default, 1.25f); Main.dust[num135].alpha = projectile.alpha; Main.dust[num135].position.X = x; Main.dust[num135].position.Y = y; - Main.dust[num135].velocity *= 0f; + Main.dust[num135].velocity = dspeed; Main.dust[num135].noGravity = true; } } diff --git a/Projectiles/Ranged/ProBolt.png b/Projectiles/Ranged/ProBolt.png index 15e8775737..dfd2c86305 100644 Binary files a/Projectiles/Ranged/ProBolt.png and b/Projectiles/Ranged/ProBolt.png differ diff --git a/Projectiles/Ranged/RainbowBlast.cs b/Projectiles/Ranged/RainbowBlast.cs index 0ab02a8b54..2ee6f78b07 100644 --- a/Projectiles/Ranged/RainbowBlast.cs +++ b/Projectiles/Ranged/RainbowBlast.cs @@ -1,8 +1,10 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -11,6 +13,8 @@ namespace CalamityMod.Projectiles.Ranged public override void SetStaticDefaults() { DisplayName.SetDefault("Blast"); + ProjectileID.Sets.TrailCacheLength[projectile.type] = 10; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; } public override void SetDefaults() @@ -26,16 +30,21 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { - projectile.localAI[0] += 1f; - if (projectile.localAI[0] > 4f) + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi); + + Lighting.AddLight(projectile.Center, new Vector3(Main.DiscoR, Main.DiscoG, Main.DiscoB) * (1.5f / 255)); + + projectile.localAI[0] ++; + if (projectile.localAI[0] > 5f) { - for (int num468 = 0; num468 < 5; num468++) - { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 66, 0f, 0f, 100, new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB), 1f); - Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; - } + Vector2 dspeed = -projectile.velocity * 0.5f; + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 66, dspeed.X, dspeed.Y, 100, new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB), 1.1f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity = dspeed; } + float num472 = projectile.Center.X; float num473 = projectile.Center.Y; float num474 = 200f; @@ -78,5 +87,17 @@ namespace CalamityMod.Projectiles.Ranged target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(ModContent.BuffType(), 120); } + + public override Color? GetAlpha(Color lightColor) + { + Color color = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); + return color; + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; + } } } diff --git a/Projectiles/Ranged/RainbowBlast.png b/Projectiles/Ranged/RainbowBlast.png index ead80128fa..80909384b5 100644 Binary files a/Projectiles/Ranged/RainbowBlast.png and b/Projectiles/Ranged/RainbowBlast.png differ diff --git a/Projectiles/Ranged/ShockblastRound.cs b/Projectiles/Ranged/ShockblastRound.cs index 18f710adc9..078efb1049 100644 --- a/Projectiles/Ranged/ShockblastRound.cs +++ b/Projectiles/Ranged/ShockblastRound.cs @@ -25,7 +25,6 @@ namespace CalamityMod.Projectiles.Ranged projectile.friendly = true; projectile.ranged = true; projectile.penetrate = 1; - projectile.alpha = 255; projectile.timeLeft = 600; projectile.light = 0.5f; projectile.extraUpdates = 1; @@ -40,14 +39,8 @@ namespace CalamityMod.Projectiles.Ranged public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - Vector2 drawOrigin = new Vector2(Main.projectileTexture[projectile.type].Width * 0.5f, projectile.height * 0.5f); - for (int k = 0; k < projectile.oldPos.Length; k++) - { - Vector2 drawPos = projectile.oldPos[k] - Main.screenPosition + drawOrigin + new Vector2(0f, projectile.gfxOffY); - Color color = projectile.GetAlpha(lightColor) * ((float)(projectile.oldPos.Length - k) / (float)projectile.oldPos.Length); - spriteBatch.Draw(Main.projectileTexture[projectile.type], drawPos, null, color, projectile.rotation, drawOrigin, projectile.scale, SpriteEffects.None, 0f); - } - return true; + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; } public override void AI() @@ -62,15 +55,20 @@ namespace CalamityMod.Projectiles.Ranged public override bool PreAI() { - for (int num136 = 0; num136 < 5; num136++) + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) + MathHelper.ToRadians(90) * projectile.direction; + + for (int num136 = 0; num136 < 2; num136++) { - float x2 = projectile.position.X - projectile.velocity.X / 10f * (float)num136; - float y2 = projectile.position.Y - projectile.velocity.Y / 10f * (float)num136; + Vector2 dspeed = -projectile.velocity * Main.rand.NextFloat(0.5f, 0.7f); + float x2 = projectile.Center.X - projectile.velocity.X / 10f * (float)num136; + float y2 = projectile.Center.Y - projectile.velocity.Y / 10f * (float)num136; int num137 = Dust.NewDust(new Vector2(x2, y2), 1, 1, 185, 0f, 0f, 0, default, 1f); Main.dust[num137].alpha = projectile.alpha; Main.dust[num137].position.X = x2; Main.dust[num137].position.Y = y2; - Main.dust[num137].velocity *= 0f; + Main.dust[num137].velocity = dspeed; Main.dust[num137].noGravity = true; } float num138 = (float)Math.Sqrt((double)(projectile.velocity.X * projectile.velocity.X + projectile.velocity.Y * projectile.velocity.Y)); diff --git a/Projectiles/Ranged/ShockblastRound.png b/Projectiles/Ranged/ShockblastRound.png index d3b0fb3cc9..e586c5fbc9 100644 Binary files a/Projectiles/Ranged/ShockblastRound.png and b/Projectiles/Ranged/ShockblastRound.png differ diff --git a/Projectiles/Ranged/SicknessRound.cs b/Projectiles/Ranged/SicknessRound.cs index 763d2d2522..eb3d9e3d17 100644 --- a/Projectiles/Ranged/SicknessRound.cs +++ b/Projectiles/Ranged/SicknessRound.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Ranged public override void SetStaticDefaults() { DisplayName.SetDefault("Round"); - ProjectileID.Sets.TrailCacheLength[projectile.type] = 3; + ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; ProjectileID.Sets.TrailingMode[projectile.type] = 0; } @@ -24,7 +24,6 @@ namespace CalamityMod.Projectiles.Ranged projectile.friendly = true; projectile.ranged = true; projectile.penetrate = 1; - projectile.alpha = 255; projectile.timeLeft = 600; projectile.light = 0.25f; projectile.extraUpdates = 1; @@ -33,27 +32,22 @@ namespace CalamityMod.Projectiles.Ranged public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - Vector2 drawOrigin = new Vector2(Main.projectileTexture[projectile.type].Width * 0.5f, projectile.height * 0.5f); - for (int k = 0; k < projectile.oldPos.Length; k++) - { - Vector2 drawPos = projectile.oldPos[k] - Main.screenPosition + drawOrigin + new Vector2(0f, projectile.gfxOffY); - Color color = projectile.GetAlpha(lightColor) * ((float)(projectile.oldPos.Length - k) / (float)projectile.oldPos.Length); - spriteBatch.Draw(Main.projectileTexture[projectile.type], drawPos, null, color, projectile.rotation, drawOrigin, projectile.scale, SpriteEffects.None, 0f); - } - return true; + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; } public override bool PreAI() { - for (int num136 = 0; num136 < 7; num136++) + for (int num136 = 0; num136 < 3; num136++) { - float x2 = projectile.position.X - projectile.velocity.X / 10f * (float)num136; - float y2 = projectile.position.Y - projectile.velocity.Y / 10f * (float)num136; - int num137 = Dust.NewDust(new Vector2(x2, y2), 1, 1, 107, 0f, 0f, 0, default, 1f); + Vector2 dspeed = -projectile.velocity * 0.5f; + float x2 = projectile.Center.X - projectile.velocity.X / 10f * (float)num136; + float y2 = projectile.Center.Y - projectile.velocity.Y / 10f * (float)num136; + int num137 = Dust.NewDust(new Vector2(x2, y2), 1, 1, 107, dspeed.X, dspeed.Y, 0, default, 1f); Main.dust[num137].alpha = projectile.alpha; Main.dust[num137].position.X = x2; Main.dust[num137].position.Y = y2; - Main.dust[num137].velocity *= 0f; + Main.dust[num137].velocity = dspeed; Main.dust[num137].noGravity = true; } float num138 = (float)Math.Sqrt((double)(projectile.velocity.X * projectile.velocity.X + projectile.velocity.Y * projectile.velocity.Y)); @@ -62,6 +56,10 @@ namespace CalamityMod.Projectiles.Ranged { projectile.localAI[0] = num138; } + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = (projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi)) + MathHelper.ToRadians(90) * projectile.direction; + return false; } diff --git a/Projectiles/Ranged/SicknessRound.png b/Projectiles/Ranged/SicknessRound.png index d3b0fb3cc9..579b656405 100644 Binary files a/Projectiles/Ranged/SicknessRound.png and b/Projectiles/Ranged/SicknessRound.png differ diff --git a/Projectiles/Ranged/SicknessRound2.cs b/Projectiles/Ranged/SicknessRound2.cs index ff8cf6598c..65ec72388a 100644 --- a/Projectiles/Ranged/SicknessRound2.cs +++ b/Projectiles/Ranged/SicknessRound2.cs @@ -24,7 +24,6 @@ namespace CalamityMod.Projectiles.Ranged projectile.friendly = true; projectile.ranged = true; projectile.penetrate = 1; - projectile.alpha = 255; projectile.timeLeft = 180; projectile.light = 0.15f; projectile.extraUpdates = 1; @@ -33,35 +32,32 @@ namespace CalamityMod.Projectiles.Ranged public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - Vector2 drawOrigin = new Vector2(Main.projectileTexture[projectile.type].Width * 0.5f, projectile.height * 0.5f); - for (int k = 0; k < projectile.oldPos.Length; k++) - { - Vector2 drawPos = projectile.oldPos[k] - Main.screenPosition + drawOrigin + new Vector2(0f, projectile.gfxOffY); - Color color = projectile.GetAlpha(lightColor) * ((float)(projectile.oldPos.Length - k) / (float)projectile.oldPos.Length); - spriteBatch.Draw(Main.projectileTexture[projectile.type], drawPos, null, color, projectile.rotation, drawOrigin, projectile.scale, SpriteEffects.None, 0f); - } - return true; + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; } public override bool PreAI() { - for (int num136 = 0; num136 < 5; num136++) - { - float x2 = projectile.position.X - projectile.velocity.X / 10f * (float)num136; - float y2 = projectile.position.Y - projectile.velocity.Y / 10f * (float)num136; - int num137 = Dust.NewDust(new Vector2(x2, y2), 1, 1, 107, 0f, 0f, 0, default, 1f); - Main.dust[num137].alpha = projectile.alpha; - Main.dust[num137].position.X = x2; - Main.dust[num137].position.Y = y2; - Main.dust[num137].velocity *= 0f; - Main.dust[num137].noGravity = true; - } + Vector2 dspeed = -projectile.velocity * 0.5f; + float x2 = projectile.Center.X - projectile.velocity.X / 10f; + float y2 = projectile.Center.Y - projectile.velocity.Y / 10f; + int num137 = Dust.NewDust(new Vector2(x2, y2), 1, 1, 107, 0f, 0f, 0, default, 1f); + Main.dust[num137].alpha = projectile.alpha; + Main.dust[num137].position.X = x2; + Main.dust[num137].position.Y = y2; + Main.dust[num137].velocity = dspeed; + Main.dust[num137].noGravity = true; + float num138 = (float)Math.Sqrt((double)(projectile.velocity.X * projectile.velocity.X + projectile.velocity.Y * projectile.velocity.Y)); float num139 = projectile.localAI[0]; if (num139 == 0f) { projectile.localAI[0] = num138; } + //Rotation + projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt(); + projectile.rotation = (projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? 0f : MathHelper.Pi)) + MathHelper.ToRadians(90) * projectile.direction; + return false; } diff --git a/Projectiles/Ranged/SicknessRound2.png b/Projectiles/Ranged/SicknessRound2.png index d3b0fb3cc9..579b656405 100644 Binary files a/Projectiles/Ranged/SicknessRound2.png and b/Projectiles/Ranged/SicknessRound2.png differ diff --git a/Projectiles/Ranged/SlagRound.cs b/Projectiles/Ranged/SlagRound.cs index 5d74d23e46..b0e3d42c70 100644 --- a/Projectiles/Ranged/SlagRound.cs +++ b/Projectiles/Ranged/SlagRound.cs @@ -15,8 +15,8 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 6; - projectile.height = 6; + projectile.width = 8; + projectile.height = 8; projectile.friendly = true; projectile.ranged = true; projectile.penetrate = 1; @@ -29,11 +29,12 @@ namespace CalamityMod.Projectiles.Ranged projectile.localAI[0] += 1f; if (projectile.localAI[0] > 2f) { - for (int num468 = 0; num468 < 3; num468++) + for (int num468 = 0; num468 < 2; num468++) { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 32, 0f, 0f, 100, default, 1.25f); + Vector2 dspeed = -projectile.velocity * 0.7f; + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 32, 0f, 0f, 100, default, 1.3f); Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; + Main.dust[num469].velocity = dspeed; } } } diff --git a/Projectiles/Ranged/SlagRound.png b/Projectiles/Ranged/SlagRound.png index a3192f9461..3cba00eccb 100644 Binary files a/Projectiles/Ranged/SlagRound.png and b/Projectiles/Ranged/SlagRound.png differ diff --git a/Projectiles/Ranged/TelluricGlareProj.cs b/Projectiles/Ranged/TelluricGlareProj.cs index e37905bdf1..c6ae8c51a8 100644 --- a/Projectiles/Ranged/TelluricGlareProj.cs +++ b/Projectiles/Ranged/TelluricGlareProj.cs @@ -13,8 +13,8 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 14; - projectile.height = 14; + projectile.width = 10; + projectile.height = 10; projectile.extraUpdates = 30; projectile.friendly = true; projectile.ranged = true; @@ -31,9 +31,9 @@ namespace CalamityMod.Projectiles.Ranged projectile.localAI[0] += 1f; if (projectile.localAI[0] > 4f) { - for (int num468 = 0; num468 < 5; num468++) + for (int num468 = 0; num468 < 2; num468++) { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default, 1.5f); + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default, 1.7f); Main.dust[num469].noGravity = true; Main.dust[num469].velocity *= 0f; } diff --git a/Projectiles/Ranged/TelluricGlareProj.png b/Projectiles/Ranged/TelluricGlareProj.png index 9aab0bf1d7..047aaff7e6 100644 Binary files a/Projectiles/Ranged/TelluricGlareProj.png and b/Projectiles/Ranged/TelluricGlareProj.png differ diff --git a/Projectiles/Rogue/CelestusBoomerang.cs b/Projectiles/Rogue/CelestusBoomerang.cs index dbfab7c22d..bd4476a69a 100644 --- a/Projectiles/Rogue/CelestusBoomerang.cs +++ b/Projectiles/Rogue/CelestusBoomerang.cs @@ -135,8 +135,8 @@ namespace CalamityMod.Projectiles.Rogue for (i = 0; i < 4; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 2f), (float)(Math.Cos(offsetAngle) * 2f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 2f), (float)(-Math.Cos(offsetAngle) * 2f), ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 2f), (float)(Math.Cos(offsetAngle) * 2f), ModContent.ProjectileType(), (int)(projectile.damage* 0.7f), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 2f), (float)(-Math.Cos(offsetAngle) * 2f), ModContent.ProjectileType(), (int)(projectile.damage * 0.7f), projectile.knockBack, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 122); diff --git a/Projectiles/Summon/SilvaCrystal.png b/Projectiles/Summon/SilvaCrystal.png index f38a8b6b6d..cbff435916 100644 Binary files a/Projectiles/Summon/SilvaCrystal.png and b/Projectiles/Summon/SilvaCrystal.png differ diff --git a/Projectiles/Typeless/SerpentsBiteHook.cs b/Projectiles/Typeless/SerpentsBiteHook.cs index c29dd06115..47ed3bc764 100644 --- a/Projectiles/Typeless/SerpentsBiteHook.cs +++ b/Projectiles/Typeless/SerpentsBiteHook.cs @@ -64,5 +64,10 @@ namespace CalamityMod.Projectiles.Typeless CalamityUtils.DrawHook(projectile, GetTexture("CalamityMod/ExtraTextures/Chains/SerpentsBiteChain")); return true; } - } + + public override void AI() + { + projectile.spriteDirection = -projectile.direction; + } + } } diff --git a/Sounds/Custom/Scare.cs b/Sounds/Custom/Scare.cs index 5e89cc3275..bd3e2642b0 100644 --- a/Sounds/Custom/Scare.cs +++ b/Sounds/Custom/Scare.cs @@ -8,6 +8,8 @@ namespace CalamityMod.Sounds.Custom { public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) { + if (soundInstance.State == SoundState.Playing) + soundInstance.Stop(); soundInstance = sound.CreateInstance(); soundInstance.Volume = volume * 1f; soundInstance.Pan = pan; diff --git a/Sounds/Item/PlasmaBolt.cs b/Sounds/Item/PlasmaBolt.cs index 527a3a3301..93f5d801f7 100644 --- a/Sounds/Item/PlasmaBolt.cs +++ b/Sounds/Item/PlasmaBolt.cs @@ -1,4 +1,5 @@ using Microsoft.Xna.Framework.Audio; +using ReLogic.Utilities; using Terraria; using Terraria.ModLoader; @@ -8,8 +9,10 @@ namespace CalamityMod.Sounds.Item { public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) { + if (soundInstance.State == SoundState.Playing) + soundInstance.Stop(); soundInstance = sound.CreateInstance(); - soundInstance.Volume = volume * 1f; + soundInstance.Volume = volume * 0.8f; soundInstance.Pan = pan; Main.PlaySoundInstance(soundInstance); return soundInstance; diff --git a/Tiles/Furniture/BossTrophy.png b/Tiles/Furniture/BossTrophy.png index ab42dcb2cd..3d28027d82 100644 Binary files a/Tiles/Furniture/BossTrophy.png and b/Tiles/Furniture/BossTrophy.png differ