diff --git a/Items/Accessories/WulfrumBattery.cs b/Items/Accessories/WulfrumBattery.cs index efa3e9f2ac..6fa9f06057 100644 --- a/Items/Accessories/WulfrumBattery.cs +++ b/Items/Accessories/WulfrumBattery.cs @@ -65,7 +65,7 @@ namespace CalamityMod.Items.Accessories { public override void AI(Projectile projectile) { - if (!projectile.npcProj && !projectile.trap && projectile.minion && !ProjectileID.Sets.MinionShot[projectile.type] && Main.player[projectile.owner].GetModPlayer().battery) + if (!projectile.npcProj && !projectile.trap && (projectile.minion||projectile.sentry) && !ProjectileID.Sets.MinionShot[projectile.type] && !ProjectileID.Sets.SentryShot[projectile.type] && Main.player[projectile.owner].GetModPlayer().battery) { float lightMult = 1f; if (Lighting.UpdateEveryFrame) //The light loks wayyy too bright in retro/trippy diff --git a/Items/Materials/AnodizedWulfrumMetal.cs b/Items/Materials/AnodizedWulfrumMetal.cs new file mode 100644 index 0000000000..f15a1658a3 --- /dev/null +++ b/Items/Materials/AnodizedWulfrumMetal.cs @@ -0,0 +1,44 @@ +using CalamityMod.Cooldowns; +using CalamityMod.Items.Accessories; +using CalamityMod.Items.Armor.Wulfrum; +using CalamityMod.NPCs.NormalNPCs; +using Terraria; +using Terraria.Audio; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using static CalamityMod.CalamityUtils; + +namespace CalamityMod.Items.Materials +{ + public class AnodizedWulfrumMetal : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Materials"; + + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 25; + } + + public override void SetDefaults() + { + Item.width = 18; + Item.height = 18; + Item.maxStack = Item.CommonMaxStack; + Item.value = Item.sellPrice(copper: 10); + Item.rare = ItemRarityID.Blue; + Item.ammo = Item.type; + } + public override void AddRecipes() + { + CreateRecipe(1). + AddIngredient(). + AddIngredient(). + AddTile(TileID.WorkBenches). + Register(); + } + //Added to avoid making the recipes really repeditive and nonsensical. It also makes the new metal color make sense. Adds a bit of flavor to the Wulfrum Recipes + //Fun fact the reason used Stormlion Manible is because in order to anodize a metal you must use a current, the other option was a powercell but I feel StormlionMandible needed more uses + //More uses are planned for other blocks and furniture for wulfrum that use this new metal color and gives a bit more depth to the set + } +} diff --git a/Items/Materials/AnodizedWulfrumMetal.png b/Items/Materials/AnodizedWulfrumMetal.png new file mode 100644 index 0000000000..0e901b9399 Binary files /dev/null and b/Items/Materials/AnodizedWulfrumMetal.png differ diff --git a/Items/Placeables/FurnitureWulfrum/WulfrumPlatform.cs b/Items/Placeables/FurnitureWulfrum/WulfrumPlatform.cs new file mode 100644 index 0000000000..ee3cf4904e --- /dev/null +++ b/Items/Placeables/FurnitureWulfrum/WulfrumPlatform.cs @@ -0,0 +1,32 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Tiles.FurnitureWulfrum; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.FurnitureWulfrum +{ + public class WulfrumPlatform : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 200; + } + + public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType()); + + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request("CalamityMod/Items/Placeables/FurnitureWulfrum/WulfrumPlatform_Glow").Value); + } + + public override void AddRecipes() + { + CreateRecipe(2). + AddIngredient(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/WulfrumPlatform.png b/Items/Placeables/FurnitureWulfrum/WulfrumPlatform.png new file mode 100644 index 0000000000..d91c28ed3f Binary files /dev/null and b/Items/Placeables/FurnitureWulfrum/WulfrumPlatform.png differ diff --git a/Items/Placeables/FurnitureWulfrum/WulfrumPlatform_Glow.png b/Items/Placeables/FurnitureWulfrum/WulfrumPlatform_Glow.png new file mode 100644 index 0000000000..9cc33827ee Binary files /dev/null and b/Items/Placeables/FurnitureWulfrum/WulfrumPlatform_Glow.png differ diff --git a/Items/Placeables/FurnitureWulfrum/WulfrumSheets.cs b/Items/Placeables/FurnitureWulfrum/WulfrumSheets.cs new file mode 100644 index 0000000000..c07dcca835 --- /dev/null +++ b/Items/Placeables/FurnitureWulfrum/WulfrumSheets.cs @@ -0,0 +1,32 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Walls; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.FurnitureWulfrum +{ + public class WulfrumSheets : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType()); + + public override void AddRecipes() + { + CreateRecipe(25). + AddRecipeGroup("AnyStoneBlock", 25). + AddIngredient(). + AddTile(TileID.HeavyWorkBench). + Register(); + //CreateRecipe(). + // AddIngredient(4). + // AddTile(TileID.WorkBenches). + // DisableDecraft(). + // Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/WulfrumSheets.png b/Items/Placeables/FurnitureWulfrum/WulfrumSheets.png new file mode 100644 index 0000000000..2d29605930 Binary files /dev/null and b/Items/Placeables/FurnitureWulfrum/WulfrumSheets.png differ diff --git a/Items/Placeables/FurnitureWulfrum/WulfrumSiding.cs b/Items/Placeables/FurnitureWulfrum/WulfrumSiding.cs new file mode 100644 index 0000000000..1569c2ba93 --- /dev/null +++ b/Items/Placeables/FurnitureWulfrum/WulfrumSiding.cs @@ -0,0 +1,33 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Walls; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.FurnitureWulfrum +{ + public class WulfrumSiding : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType()); + + public override void AddRecipes() + { + CreateRecipe(25). + AddRecipeGroup("AnyStoneBlock", 25). + AddIngredient(). + AddIngredient(). + AddTile(TileID.HeavyWorkBench). + Register(); + //CreateRecipe(). + // AddIngredient(4). + // AddTile(TileID.WorkBenches). + // DisableDecraft(). + // Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/WulfrumSiding.png b/Items/Placeables/FurnitureWulfrum/WulfrumSiding.png new file mode 100644 index 0000000000..462a2ce24d Binary files /dev/null and b/Items/Placeables/FurnitureWulfrum/WulfrumSiding.png differ diff --git a/Items/Placeables/Walls/WulfrumPillar.cs b/Items/Placeables/Walls/WulfrumPillar.cs new file mode 100644 index 0000000000..ecca3e570f --- /dev/null +++ b/Items/Placeables/Walls/WulfrumPillar.cs @@ -0,0 +1,28 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.FurnitureWulfrum; +using Terraria.ID; +using Terraria.ModLoader; +using WallTiles = CalamityMod.Walls; + +namespace CalamityMod.Items.Placeables.Walls +{ + public class WulfrumPillar : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 400; + } + + public override void SetDefaults() => Item.DefaultToPlaceableWall(ModContent.WallType()); + + public override void AddRecipes() + { + CreateRecipe(8). + AddIngredient(). + AddIngredient(). + AddTile(TileID.WorkBenches). + Register(); + } + } +} diff --git a/Items/Placeables/Walls/WulfrumPillar.png b/Items/Placeables/Walls/WulfrumPillar.png new file mode 100644 index 0000000000..e4c3444ab3 Binary files /dev/null and b/Items/Placeables/Walls/WulfrumPillar.png differ diff --git a/Items/Weapons/Magic/Apathanull.cs b/Items/Weapons/Magic/Apathanull.cs index da4a586ebb..38ea4e46b0 100644 --- a/Items/Weapons/Magic/Apathanull.cs +++ b/Items/Weapons/Magic/Apathanull.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 28; Item.height = 30; - Item.damage = 54; + Item.damage = 67; Item.DamageType = DamageClass.Magic; Item.mana = 15; Item.useTime = 8; diff --git a/Items/Weapons/Magic/ApoctosisArray.cs b/Items/Weapons/Magic/ApoctosisArray.cs index d1ca9b7beb..32c603bd92 100644 --- a/Items/Weapons/Magic/ApoctosisArray.cs +++ b/Items/Weapons/Magic/ApoctosisArray.cs @@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons.Magic { CreateRecipe(). AddIngredient(). - AddIngredient(ItemID.FragmentSolar, 6). + AddIngredient(ItemID.FragmentSolar, 12). AddTile(TileID.LunarCraftingStation). Register(); } diff --git a/Items/Weapons/Magic/DeathValleyDuster.cs b/Items/Weapons/Magic/DeathValleyDuster.cs index f78e124280..1067e27f81 100644 --- a/Items/Weapons/Magic/DeathValleyDuster.cs +++ b/Items/Weapons/Magic/DeathValleyDuster.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 36; Item.height = 40; - Item.damage = 143; + Item.damage = 159; Item.DamageType = DamageClass.Magic; Item.mana = 38; Item.useTime = 50; diff --git a/Items/Weapons/Magic/FrigidflashBolt.cs b/Items/Weapons/Magic/FrigidflashBolt.cs index 5320497da6..7aaf4eb0c4 100644 --- a/Items/Weapons/Magic/FrigidflashBolt.cs +++ b/Items/Weapons/Magic/FrigidflashBolt.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 38; Item.height = 42; - Item.damage = 72; + Item.damage = 79; Item.DamageType = DamageClass.Magic; Item.mana = 13; Item.useTime = 20; diff --git a/Items/Weapons/Magic/PhantasmalFury.cs b/Items/Weapons/Magic/PhantasmalFury.cs index a3d4564a54..067916b491 100644 --- a/Items/Weapons/Magic/PhantasmalFury.cs +++ b/Items/Weapons/Magic/PhantasmalFury.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 62; Item.height = 60; - Item.damage = 188; + Item.damage = 197; Item.DamageType = DamageClass.Magic; Item.mana = 60; Item.useTime = 3; diff --git a/Items/Weapons/Magic/PrimordialAncient.cs b/Items/Weapons/Magic/PrimordialAncient.cs index b587e34686..adcc961a6c 100644 --- a/Items/Weapons/Magic/PrimordialAncient.cs +++ b/Items/Weapons/Magic/PrimordialAncient.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 40; Item.height = 56; - Item.damage = 2800; + Item.damage = 3900; Item.DamageType = DamageClass.Magic; Item.mana = 85; Item.useTime = 78; diff --git a/Items/Weapons/Magic/PrimordialEarth.cs b/Items/Weapons/Magic/PrimordialEarth.cs index bfda7be735..bfe7b3b5d2 100644 --- a/Items/Weapons/Magic/PrimordialEarth.cs +++ b/Items/Weapons/Magic/PrimordialEarth.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 36; Item.height = 42; - Item.damage = 210; + Item.damage = 300; Item.DamageType = DamageClass.Magic; Item.mana = 48; Item.useTime = 68; diff --git a/Items/Weapons/Magic/ShadowboltStaff.cs b/Items/Weapons/Magic/ShadowboltStaff.cs index d438f5e097..c5073452b4 100644 --- a/Items/Weapons/Magic/ShadowboltStaff.cs +++ b/Items/Weapons/Magic/ShadowboltStaff.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 58; Item.height = 56; - Item.damage = 190; + Item.damage = 260; Item.DamageType = DamageClass.Magic; Item.mana = 10; Item.useTime = 12; diff --git a/Items/Weapons/Melee/CometQuasher.cs b/Items/Weapons/Melee/CometQuasher.cs index 31455c4fe4..8289d33ecb 100644 --- a/Items/Weapons/Melee/CometQuasher.cs +++ b/Items/Weapons/Melee/CometQuasher.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 92; Item.height = 94; - Item.damage = 35; + Item.damage = 48; Item.DamageType = TrueMeleeDamageClass.Instance; Item.useAnimation = Item.useTime = 38; diff --git a/Items/Weapons/Melee/DevilsDevastation.cs b/Items/Weapons/Melee/DevilsDevastation.cs index 8e6627d650..6c18973c06 100644 --- a/Items/Weapons/Melee/DevilsDevastation.cs +++ b/Items/Weapons/Melee/DevilsDevastation.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.width = 118; Item.height = 118; - Item.damage = 235; + Item.damage = 255; Item.useAnimation = Item.useTime = 45; Item.useStyle = ItemUseStyleID.Shoot; @@ -76,7 +76,7 @@ namespace CalamityMod.Items.Weapons.Melee } if (player.Calamity().demonSwordKillMode && player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0 && player.Calamity().killModeCooldown == KillMode.cooldownMax + KillMode.buffMax) { - Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter, Vector2.Zero, ModContent.ProjectileType(), Item.damage * 30, Item.knockBack, player.whoAmI, 0, throwCount); + Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter, Vector2.Zero, ModContent.ProjectileType(), Item.damage * 21, Item.knockBack, player.whoAmI, 0, throwCount); //This used to be 30x damage. } } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) diff --git a/Items/Weapons/Melee/ExaltedOathblade.cs b/Items/Weapons/Melee/ExaltedOathblade.cs index 6dd42db33a..bcfb00fa52 100644 --- a/Items/Weapons/Melee/ExaltedOathblade.cs +++ b/Items/Weapons/Melee/ExaltedOathblade.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 88; Item.height = 88; - Item.damage = 95; + Item.damage = 71; Item.useAnimation = Item.useTime = 45; Item.useStyle = ItemUseStyleID.Shoot; @@ -74,7 +74,7 @@ namespace CalamityMod.Items.Weapons.Melee } if (player.Calamity().demonSwordKillMode && player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0 && player.Calamity().killModeCooldown == KillMode.cooldownMax + KillMode.buffMax) { - Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter, Vector2.Zero, ModContent.ProjectileType(), Item.damage * 23, Item.knockBack, player.whoAmI, 0, throwCount); + Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter, Vector2.Zero, ModContent.ProjectileType(), Item.damage * 15, Item.knockBack, player.whoAmI, 0, throwCount); //This used to be 23x damage. } } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) diff --git a/Items/Weapons/Melee/ForbiddenOathblade.cs b/Items/Weapons/Melee/ForbiddenOathblade.cs index 91545b0bfb..a5a3158ebc 100644 --- a/Items/Weapons/Melee/ForbiddenOathblade.cs +++ b/Items/Weapons/Melee/ForbiddenOathblade.cs @@ -75,7 +75,7 @@ namespace CalamityMod.Items.Weapons.Melee } if (player.Calamity().demonSwordKillMode && player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0 && player.Calamity().killModeCooldown == KillMode.cooldownMax + KillMode.buffMax) { - Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter,Vector2.Zero, ModContent.ProjectileType(), Item.damage * 12, Item.knockBack, player.whoAmI, 0, throwCount); + Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter,Vector2.Zero, ModContent.ProjectileType(), Item.damage * 10, Item.knockBack, player.whoAmI, 0, throwCount); // This used to be 12x damage. } } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) diff --git a/Items/Weapons/Melee/GrandGuardian.cs b/Items/Weapons/Melee/GrandGuardian.cs index 5691d09fe2..6b8dc1e723 100644 --- a/Items/Weapons/Melee/GrandGuardian.cs +++ b/Items/Weapons/Melee/GrandGuardian.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 130; Item.height = 130; - Item.damage = 325; + Item.damage = 515; Item.DamageType = TrueMeleeDamageClass.Instance; Item.useAnimation = 35; Item.useTime = 35; diff --git a/Items/Weapons/Melee/MajesticGuard.cs b/Items/Weapons/Melee/MajesticGuard.cs index f61f948bca..4b09dcf3a6 100644 --- a/Items/Weapons/Melee/MajesticGuard.cs +++ b/Items/Weapons/Melee/MajesticGuard.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 100; Item.height = 100; - Item.damage = 325; + Item.damage = 365; Item.DamageType = TrueMeleeDamageClass.Instance; Item.useAnimation = 50; Item.useTime = 50; diff --git a/Items/Weapons/Melee/Orderbringer.cs b/Items/Weapons/Melee/Orderbringer.cs index d4192e2eda..4672492beb 100644 --- a/Items/Weapons/Melee/Orderbringer.cs +++ b/Items/Weapons/Melee/Orderbringer.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { Item.width = Item.height = 108; - Item.damage = 415; + Item.damage = 445; Item.DamageType = DamageClass.Melee; Item.useAnimation = Item.useTime = useTime; Item.useStyle = ItemUseStyleID.Swing; diff --git a/Items/Weapons/Melee/PrismaticBreaker.cs b/Items/Weapons/Melee/PrismaticBreaker.cs index 20941fbed8..cf8f7e9eba 100644 --- a/Items/Weapons/Melee/PrismaticBreaker.cs +++ b/Items/Weapons/Melee/PrismaticBreaker.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 50; Item.height = 50; - Item.damage = 300; + Item.damage = 490; Item.useStyle = ItemUseStyleID.Shoot; Item.useAnimation = Item.useTime = 13; Item.reuseDelay = 30; diff --git a/Items/Weapons/Melee/StellarStriker.cs b/Items/Weapons/Melee/StellarStriker.cs index 7179fb521f..f8c25997b1 100644 --- a/Items/Weapons/Melee/StellarStriker.cs +++ b/Items/Weapons/Melee/StellarStriker.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 100; Item.height = 118; - Item.damage = 56; + Item.damage = 98; Item.DamageType = TrueMeleeDamageClass.Instance; Item.useAnimation = Item.useTime = 33; diff --git a/Items/Weapons/Ranged/Hellborn.cs b/Items/Weapons/Ranged/Hellborn.cs index 0dedc0af37..c612b84d31 100644 --- a/Items/Weapons/Ranged/Hellborn.cs +++ b/Items/Weapons/Ranged/Hellborn.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 62; Item.height = 34; - Item.damage = 320; + Item.damage = 465; Item.DamageType = DamageClass.Ranged; Item.useAnimation = Item.useTime = 30; Item.useStyle = ItemUseStyleID.Shoot; @@ -51,11 +51,11 @@ namespace CalamityMod.Items.Weapons.Ranged if (player.Calamity().cooldowns.TryGetValue(HellbornShots.ID, out var cooldown)) { - cooldown.timeLeft = 8 - player.Calamity().hellbornShots; + cooldown.timeLeft = 12 - player.Calamity().hellbornShots; } else { - player.AddCooldown(HellbornShots.ID, 8); + player.AddCooldown(HellbornShots.ID, 12); } } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) diff --git a/Items/Weapons/Rogue/ShardofAntumbra.cs b/Items/Weapons/Rogue/ShardofAntumbra.cs index 1b49987a1c..8afe0a8142 100644 --- a/Items/Weapons/Rogue/ShardofAntumbra.cs +++ b/Items/Weapons/Rogue/ShardofAntumbra.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.width = 48; Item.height = 48; - Item.damage = 111; + Item.damage = 144; Item.noMelee = true; Item.noUseGraphic = true; Item.useAnimation = 17; @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.DamageType = RogueDamageClass.Instance; } - public override float StealthDamageMultiplier => 0.5f; + public override float StealthDamageMultiplier => 0.65f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { diff --git a/Items/Weapons/Rogue/StarofDestruction.cs b/Items/Weapons/Rogue/StarofDestruction.cs index 31295b43ed..470fb109e5 100644 --- a/Items/Weapons/Rogue/StarofDestruction.cs +++ b/Items/Weapons/Rogue/StarofDestruction.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetDefaults() { Item.width = Item.height = 94; - Item.damage = 420; + Item.damage = 438; Item.noMelee = true; Item.noUseGraphic = true; Item.useAnimation = Item.useTime = 90; diff --git a/Projectiles/Magic/DeathValleyDusterProjectile.cs b/Projectiles/Magic/DeathValleyDusterProjectile.cs index d7602bf560..0fd107a6bf 100644 --- a/Projectiles/Magic/DeathValleyDusterProjectile.cs +++ b/Projectiles/Magic/DeathValleyDusterProjectile.cs @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Magic if (buffList[playerIndex] == false) { buffList[playerIndex] = true; - player.AddBuff(ModContent.BuffType(), 240); + player.AddBuff(ModContent.BuffType(), 600); int Dusts = 12; float radians = MathHelper.TwoPi / Dusts; diff --git a/Projectiles/Magic/PrimordialAncientProjectile.cs b/Projectiles/Magic/PrimordialAncientProjectile.cs index 42821ea279..6eac8df489 100644 --- a/Projectiles/Magic/PrimordialAncientProjectile.cs +++ b/Projectiles/Magic/PrimordialAncientProjectile.cs @@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Magic if (buffList[playerIndex] == false) { buffList[playerIndex] = true; - player.AddBuff(ModContent.BuffType(), 540); + player.AddBuff(ModContent.BuffType(), 840); int Dusts = 8; float radians = MathHelper.TwoPi / Dusts; diff --git a/Projectiles/Magic/PrimordialEarthProjectile.cs b/Projectiles/Magic/PrimordialEarthProjectile.cs index e7d99309b2..6a5a77c9ef 100644 --- a/Projectiles/Magic/PrimordialEarthProjectile.cs +++ b/Projectiles/Magic/PrimordialEarthProjectile.cs @@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Magic if (buffList[playerIndex] == false) { buffList[playerIndex] = true; - player.AddBuff(ModContent.BuffType(), 360); + player.AddBuff(ModContent.BuffType(), 720); int Dusts = 12; float radians = MathHelper.TwoPi / Dusts; diff --git a/Projectiles/Ranged/HellbornHoldout.cs b/Projectiles/Ranged/HellbornHoldout.cs index c37eb1104c..4658e8af4d 100644 --- a/Projectiles/Ranged/HellbornHoldout.cs +++ b/Projectiles/Ranged/HellbornHoldout.cs @@ -201,8 +201,8 @@ namespace CalamityMod.Projectiles.Ranged } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) { - modifiers.SourceDamage *= 0.1f; - if (Owner.Calamity().hellbornShots < 8) + modifiers.SourceDamage *= 0.115f; + if (Owner.Calamity().hellbornShots < 12) { Owner.Calamity().hellbornShots++; } diff --git a/Projectiles/Rogue/DestructionExplosion.cs b/Projectiles/Rogue/DestructionExplosion.cs index d20d58abca..aeb01ad6f6 100644 --- a/Projectiles/Rogue/DestructionExplosion.cs +++ b/Projectiles/Rogue/DestructionExplosion.cs @@ -27,8 +27,16 @@ namespace CalamityMod.Projectiles.Rogue } public override void AI() { + if (Main.zenithWorld) + { + Projectile.hostile = true; + Projectile.friendly = true; + } + if (Projectile.ai[0] == 1) - ExplosionRadius = 800; + { + ExplosionRadius = 800; + } } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) { diff --git a/Projectiles/Rogue/DestructionStar.cs b/Projectiles/Rogue/DestructionStar.cs index 2f70791b27..23b83e6887 100644 --- a/Projectiles/Rogue/DestructionStar.cs +++ b/Projectiles/Rogue/DestructionStar.cs @@ -44,6 +44,7 @@ namespace CalamityMod.Projectiles.Rogue } public override void AI() { + if (setRot) { rotDirection = Main.rand.NextBool() ? 1 : -1; @@ -151,24 +152,41 @@ namespace CalamityMod.Projectiles.Rogue internal void Explode(bool big) { - float sizeBonus = big ? 2 : 1; - float bigExplosionDamage = 1f; + + + float sizeBonus = big ? Main.zenithWorld ? 6 : 2 : 1; + float bigExplosionDamage = 3f; Player Owner = Main.player[Projectile.owner]; Particle orb = new CustomPulse(Projectile.Center, Vector2.Zero, Color.LightGreen with { A = 0 }, "CalamityMod/Particles/LargeBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0f, 0.82f * sizeBonus, 11); GeneralParticleHandler.SpawnParticle(orb); Particle orb2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.White, "CalamityMod/Particles/LargeBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0f, 0.74f * sizeBonus, 11); GeneralParticleHandler.SpawnParticle(orb2); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * (big ? bigExplosionDamage : Projectile.Calamity().stealthStrike ? 0.25f : 1f)), Projectile.knockBack * 1.5f, Projectile.owner); - SoundStyle explo = new("CalamityMod/Sounds/Item/MeldExplosion"); - SoundEngine.PlaySound(explo with { Volume = 0.9f }, Projectile.Center); + + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * (big ? Main.zenithWorld ? bigExplosionDamage * 4f : bigExplosionDamage : Projectile.Calamity().stealthStrike ? 0.25f : 1f)), Projectile.knockBack * 1.5f, Projectile.owner); + + if (!Main.zenithWorld || !big) + { + SoundStyle explo = new("CalamityMod/Sounds/Item/MeldExplosion"); + SoundEngine.PlaySound(explo with { Volume = 0.9f }, Projectile.Center); + } + else + { + SoundStyle gfbExplosion = new("CalamityMod/Sounds/Custom/ExoMechs/AresGaussNukeExplosion"); + SoundEngine.PlaySound(gfbExplosion with { Volume = 1f, Pitch = -0.5f }, Projectile.Center); + } + if (big) { - SoundStyle explo2 = new("CalamityMod/Sounds/Item/EarthMeteor"); - SoundEngine.PlaySound(explo2 with { Volume = 0.9f, Pitch = -0.2f }, Projectile.Center); + if (!Main.zenithWorld) + { + SoundStyle explo2 = new("CalamityMod/Sounds/Item/EarthMeteor"); + SoundEngine.PlaySound(explo2 with { Volume = 0.9f, Pitch = -0.2f }, Projectile.Center); + + SoundStyle explo3 = new("CalamityMod/Sounds/Item/ExobladeDashImpact"); + SoundEngine.PlaySound(explo3 with { Volume = 0.9f, Pitch = -0.2f }, Projectile.Center); + } - SoundStyle explo3 = new("CalamityMod/Sounds/Item/ExobladeDashImpact"); - SoundEngine.PlaySound(explo3 with { Volume = 0.9f, Pitch = -0.2f }, Projectile.Center); } Particle bolt2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.LightGreen, "CalamityMod/Particles/BloomRing", Vector2.One, Main.rand.NextFloat(-10f, 10f), 0f, 2.56f * 1.3f * sizeBonus, 18); diff --git a/Tiles/FurnitureWulfrum/WulfrumPlatform.cs b/Tiles/FurnitureWulfrum/WulfrumPlatform.cs new file mode 100644 index 0000000000..6eebeafb95 --- /dev/null +++ b/Tiles/FurnitureWulfrum/WulfrumPlatform.cs @@ -0,0 +1,68 @@ +using CalamityMod.Items.Placeables.FurnitureWulfrum; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum +{ + public class WulfrumPlatform : ModTile + { + internal static Texture2D GlowTexture; + + public override void SetStaticDefaults() + { + if (!Main.dedServ) + { + GlowTexture = ModContent.Request("CalamityMod/Tiles/FurnitureWulfrum/WulfrumPlatform_Glow", AssetRequestMode.ImmediateLoad).Value; + } + + this.SetUpPlatform(ModContent.ItemType(), true); + } + + public override bool CanExplode(int i, int j) => false; + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void PostSetDefaults() + { + Main.tileNoSunLight[Type] = false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + // If the cached textures don't exist for some reason, don't bother using them. + if (GlowTexture is null) + return; + + Tile tile = CalamityUtils.ParanoidTileRetrieval(i, j); + if (tile.IsTileActuallyInvisible()) + return; + + int xPos = tile.TileFrameX; + int frameOffset = (i + j) % 6 * AnimationFrameHeight; + int yPos = tile.TileFrameY + frameOffset; + Vector2 drawOffset = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffset; + + if (!tile.IsHalfBlock) + { + spriteBatch.Draw(GlowTexture, drawPosition, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f); + } + else if (tile.IsHalfBlock) + { + spriteBatch.Draw(GlowTexture, drawPosition + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f); + } + } + } +} diff --git a/Tiles/FurnitureWulfrum/WulfrumPlatform.png b/Tiles/FurnitureWulfrum/WulfrumPlatform.png new file mode 100644 index 0000000000..a1b3cf4ee5 Binary files /dev/null and b/Tiles/FurnitureWulfrum/WulfrumPlatform.png differ diff --git a/Tiles/FurnitureWulfrum/WulfrumPlatform_Glow.png b/Tiles/FurnitureWulfrum/WulfrumPlatform_Glow.png new file mode 100644 index 0000000000..c736697170 Binary files /dev/null and b/Tiles/FurnitureWulfrum/WulfrumPlatform_Glow.png differ diff --git a/Tiles/FurnitureWulfrum/WulfrumSheets.cs b/Tiles/FurnitureWulfrum/WulfrumSheets.cs new file mode 100644 index 0000000000..813b8f8191 --- /dev/null +++ b/Tiles/FurnitureWulfrum/WulfrumSheets.cs @@ -0,0 +1,51 @@ +using CalamityMod.Dusts; +using CalamityMod.Systems; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum +{ + public class WulfrumSheets : ModTile + { + public static readonly SoundStyle MinePlatingSound = new("CalamityMod/Sounds/Custom/PlatingMine", 3); + private const short subsheetWidth = 216; + private const short subsheetHeight = 72; + public static int TypeCache; + public override void SetStaticDefaults() + { + TypeCache = Type; + Main.tileSolid[Type] = true; + Main.tileBlockLight[Type] = false; + Main.tileShine2[Type] = true; + + CalamityUtils.MergeWithGeneral(Type); + + HitSound = MinePlatingSound; + AddMapEntry(new Color(164, 150, 125)); + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) + { + TileFramingSystem.CompactFraming(i, j, resetFrame); + return false; + } + + public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset) + { + int xPos = i % 2; + int yPos = j % 2; + frameXOffset = xPos * subsheetWidth; + frameYOffset = yPos * subsheetHeight; + } + } +} diff --git a/Tiles/FurnitureWulfrum/WulfrumSheets.png b/Tiles/FurnitureWulfrum/WulfrumSheets.png new file mode 100644 index 0000000000..509cff2949 Binary files /dev/null and b/Tiles/FurnitureWulfrum/WulfrumSheets.png differ diff --git a/Tiles/FurnitureWulfrum/WulfrumSiding.cs b/Tiles/FurnitureWulfrum/WulfrumSiding.cs new file mode 100644 index 0000000000..6f31a9e0c0 --- /dev/null +++ b/Tiles/FurnitureWulfrum/WulfrumSiding.cs @@ -0,0 +1,38 @@ +using CalamityMod.Dusts; +using CalamityMod.Systems; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum +{ + public class WulfrumSiding : ModTile + { + public static readonly SoundStyle MinePlatingSound = new("CalamityMod/Sounds/Custom/PlatingMine", 3); + + public override void SetStaticDefaults() + { + Main.tileSolid[Type] = true; + Main.tileBlockLight[Type] = true; + + CalamityUtils.MergeWithGeneral(Type); + + HitSound = MinePlatingSound; + AddMapEntry(new Color(164, 150, 125)); + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) + { + return TileFramingSystem.BetterGemsparkFraming(i, j, resetFrame); + } + } +} diff --git a/Tiles/FurnitureWulfrum/WulfrumSiding.png b/Tiles/FurnitureWulfrum/WulfrumSiding.png new file mode 100644 index 0000000000..2a9b30f705 Binary files /dev/null and b/Tiles/FurnitureWulfrum/WulfrumSiding.png differ diff --git a/Utilities/TileUtils.cs b/Utilities/TileUtils.cs index 56e3eb250a..4fd97af360 100644 --- a/Utilities/TileUtils.cs +++ b/Utilities/TileUtils.cs @@ -648,6 +648,7 @@ namespace CalamityMod SetMerge(type, TileType()); SetMerge(type, TileType()); SetMerge(type, TileType()); + SetMerge(type, TileType()); SetMerge(type, TileType()); SetMerge(type, TileType()); } diff --git a/Walls/WulfrumPillar.cs b/Walls/WulfrumPillar.cs new file mode 100644 index 0000000000..ee6324c9da --- /dev/null +++ b/Walls/WulfrumPillar.cs @@ -0,0 +1,24 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Walls +{ + public class WulfrumPillar : ModWall + { + public override void SetStaticDefaults() + { + Main.wallHouse[Type] = true; + AddMapEntry(new Color(82, 109, 80)); + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3; + } +} diff --git a/Walls/WulfrumPillar.png b/Walls/WulfrumPillar.png new file mode 100644 index 0000000000..39fde66e6a Binary files /dev/null and b/Walls/WulfrumPillar.png differ