diff --git a/Items/Placeables/Banners/BabyCannonballJellyfishBanner.cs b/Items/Placeables/Banners/BabyCannonballJellyfishBanner.cs new file mode 100644 index 0000000000..11119e882b --- /dev/null +++ b/Items/Placeables/Banners/BabyCannonballJellyfishBanner.cs @@ -0,0 +1,7 @@ +namespace CalamityMod.Items.Placeables.Banners +{ + public class BabyCannonballJellyfishBanner : BaseBanner + { + public override int BannerTileStyle => 128; + } +} diff --git a/Items/Placeables/Banners/BabyCannonballJellyfishBanner.png b/Items/Placeables/Banners/BabyCannonballJellyfishBanner.png new file mode 100644 index 0000000000..6f46d7ec01 Binary files /dev/null and b/Items/Placeables/Banners/BabyCannonballJellyfishBanner.png differ diff --git a/Items/Placeables/Banners/CannonballJellyfishBanner.cs b/Items/Placeables/Banners/CannonballJellyfishBanner.cs new file mode 100644 index 0000000000..cba2c7e60c --- /dev/null +++ b/Items/Placeables/Banners/CannonballJellyfishBanner.cs @@ -0,0 +1,7 @@ +namespace CalamityMod.Items.Placeables.Banners +{ + public class CannonballJellyfishBanner : BaseBanner + { + public override int BannerTileStyle => 127; + } +} diff --git a/Items/Placeables/Banners/CannonballJellyfishBanner.png b/Items/Placeables/Banners/CannonballJellyfishBanner.png new file mode 100644 index 0000000000..29f93d3ada Binary files /dev/null and b/Items/Placeables/Banners/CannonballJellyfishBanner.png differ diff --git a/Items/Placeables/Banners/InfernalCongealmentBanner.cs b/Items/Placeables/Banners/InfernalCongealmentBanner.cs new file mode 100644 index 0000000000..14f2d76de8 --- /dev/null +++ b/Items/Placeables/Banners/InfernalCongealmentBanner.cs @@ -0,0 +1,10 @@ +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + [LegacyName("CharredSlimeBanner")] + public class InfernalCongealmentBanner : BaseBanner + { + public override int BannerTileStyle => 93; + } +} diff --git a/Items/Placeables/Banners/InfernalCongealmentBanner.png b/Items/Placeables/Banners/InfernalCongealmentBanner.png new file mode 100644 index 0000000000..bcfc7f2aa7 Binary files /dev/null and b/Items/Placeables/Banners/InfernalCongealmentBanner.png differ diff --git a/Items/Placeables/Banners/RenegadeWarlockBanner.cs b/Items/Placeables/Banners/RenegadeWarlockBanner.cs new file mode 100644 index 0000000000..b5f6f2b2a2 --- /dev/null +++ b/Items/Placeables/Banners/RenegadeWarlockBanner.cs @@ -0,0 +1,10 @@ +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + [LegacyName("CultistAssassinBanner")] + public class RenegadeWarlockBanner : BaseBanner + { + public override int BannerTileStyle => 95; + } +} diff --git a/Items/Placeables/Banners/RenegadeWarlockBanner.png b/Items/Placeables/Banners/RenegadeWarlockBanner.png new file mode 100644 index 0000000000..c020feaa27 Binary files /dev/null and b/Items/Placeables/Banners/RenegadeWarlockBanner.png differ diff --git a/Items/Placeables/Banners/SightseerColliderBanner.cs b/Items/Placeables/Banners/SightseerColliderBanner.cs new file mode 100644 index 0000000000..a161f9a719 --- /dev/null +++ b/Items/Placeables/Banners/SightseerColliderBanner.cs @@ -0,0 +1,10 @@ +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + [LegacyName("SmallSightseerBanner")] + public class SightseerColliderBanner : BaseBanner + { + public override int BannerTileStyle => 32; + } +} diff --git a/Items/Placeables/Banners/SightseerColliderBanner.png b/Items/Placeables/Banners/SightseerColliderBanner.png new file mode 100644 index 0000000000..7904588742 Binary files /dev/null and b/Items/Placeables/Banners/SightseerColliderBanner.png differ diff --git a/Items/Placeables/Banners/SightseerSpitterBanner.cs b/Items/Placeables/Banners/SightseerSpitterBanner.cs new file mode 100644 index 0000000000..f2c2182ca7 --- /dev/null +++ b/Items/Placeables/Banners/SightseerSpitterBanner.cs @@ -0,0 +1,10 @@ +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + [LegacyName("BigSightseerBanner")] + public class SightseerSpitterBanner : BaseBanner + { + public override int BannerTileStyle => 33; + } +} diff --git a/Items/Placeables/Banners/SightseerSpitterBanner.png b/Items/Placeables/Banners/SightseerSpitterBanner.png new file mode 100644 index 0000000000..1c38ad07f0 Binary files /dev/null and b/Items/Placeables/Banners/SightseerSpitterBanner.png differ diff --git a/Items/Placeables/Banners/SlabCrabBanner.cs b/Items/Placeables/Banners/SlabCrabBanner.cs new file mode 100644 index 0000000000..55579a31c3 --- /dev/null +++ b/Items/Placeables/Banners/SlabCrabBanner.cs @@ -0,0 +1,7 @@ +namespace CalamityMod.Items.Placeables.Banners +{ + public class SlabCrabBanner : BaseBanner + { + public override int BannerTileStyle => 5; + } +} diff --git a/Items/Placeables/Banners/SlabCrabBanner.png b/Items/Placeables/Banners/SlabCrabBanner.png new file mode 100644 index 0000000000..225fe1fc01 Binary files /dev/null and b/Items/Placeables/Banners/SlabCrabBanner.png differ diff --git a/Items/Placeables/Basalt.cs b/Items/Placeables/Basalt.cs new file mode 100644 index 0000000000..487fd1f7ac --- /dev/null +++ b/Items/Placeables/Basalt.cs @@ -0,0 +1,28 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class Basalt : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + } +} diff --git a/Items/Placeables/Basalt.png b/Items/Placeables/Basalt.png new file mode 100644 index 0000000000..3f4786a23a Binary files /dev/null and b/Items/Placeables/Basalt.png differ diff --git a/Items/Placeables/BaseTiles/BaseBanner.cs b/Items/Placeables/BaseTiles/BaseBanner.cs new file mode 100644 index 0000000000..ad75a29691 --- /dev/null +++ b/Items/Placeables/BaseTiles/BaseBanner.cs @@ -0,0 +1,38 @@ +using CalamityMod.Tiles; +using Terraria; +using Terraria.ID; +using Terraria.Localization; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public abstract class BaseBanner : ModItem, ILocalizedModType + { + // As of now, all Calamity banners are nested into one tile with multiple styles. + // We may decide to change this sooner or later. But for now, the only essential value to override is style for generic enemy banners. + public virtual int BannerTileID => ModContent.TileType(); + public virtual int BannerTileStyle => 0; + public virtual int BannerKillRequirement => ItemID.Sets.DefaultKillsForBannerNeeded; + + // Associated Modded NPC + public virtual int BonusNPCID => MonsterBanner.GetBannerNPC(BannerTileStyle); + + public new string LocalizationCategory => "Items.Placeables"; + // Override these if there are no NPCs attached to the banner. + public virtual LocalizedText NPCName => NPCLoader.GetNPC(BonusNPCID).DisplayName; + public override LocalizedText DisplayName => CalamityUtils.GetText($"{LocalizationCategory}.FormattedBannerName").WithFormatArgs(NPCName.ToString()); + public override LocalizedText Tooltip => CalamityUtils.GetText($"{LocalizationCategory}.FormattedBannerTooltip").WithFormatArgs(NPCName.ToString()); + + public override void SetStaticDefaults() => ItemID.Sets.KillsToBanner[Type] = BannerKillRequirement; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(BannerTileID, BannerTileStyle); + + // Banners usually have these values. + Item.width = 10; + Item.height = 24; + Item.rare = ItemRarityID.Blue; + Item.value = Item.sellPrice(silver: 2); + } + } +} diff --git a/Items/Placeables/BlackPearlPile.cs b/Items/Placeables/BlackPearlPile.cs new file mode 100644 index 0000000000..2f44d3cd68 --- /dev/null +++ b/Items/Placeables/BlackPearlPile.cs @@ -0,0 +1,37 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class BlackPearlPile : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.rare = ItemRarityID.Blue; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(4). + AddIngredient(ItemID.BlackPearl). + AddTile(TileID.HeavyWorkBench). + Register(); + } + } +} diff --git a/Items/Placeables/BlackPearlPile.png b/Items/Placeables/BlackPearlPile.png new file mode 100644 index 0000000000..c35a65ebbc Binary files /dev/null and b/Items/Placeables/BlackPearlPile.png differ diff --git a/Items/Placeables/CyanCoral.cs b/Items/Placeables/CyanCoral.cs new file mode 100644 index 0000000000..b5d7d106bd --- /dev/null +++ b/Items/Placeables/CyanCoral.cs @@ -0,0 +1,37 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class CyanCoral : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.rare = ItemRarityID.Blue; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + //public override void AddRecipes() + //{ + // CreateRecipe(4). + // AddIngredient(ItemID.PinkPearl). + // AddTile(TileID.HeavyWorkBench). + // Register(); + //} + } +} diff --git a/Items/Placeables/CyanCoral.png b/Items/Placeables/CyanCoral.png new file mode 100644 index 0000000000..3f705ee85b Binary files /dev/null and b/Items/Placeables/CyanCoral.png differ diff --git a/Items/Placeables/Driftwood.cs b/Items/Placeables/Driftwood.cs new file mode 100644 index 0000000000..72db8e2f9f --- /dev/null +++ b/Items/Placeables/Driftwood.cs @@ -0,0 +1,42 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class Driftwood : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.Wood; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup) + { + itemGroup = ContentSamples.CreativeHelper.ItemGroup.Wood; + } + + public override void AddRecipes() + { + CreateRecipe(4). + AddIngredient(4). + AddTile(TileID.WorkBenches). + Register(); + } + } +} diff --git a/Items/Placeables/Driftwood.png b/Items/Placeables/Driftwood.png new file mode 100644 index 0000000000..25ff08f299 Binary files /dev/null and b/Items/Placeables/Driftwood.png differ diff --git a/Items/Placeables/EutrophicGlass.cs b/Items/Placeables/EutrophicGlass.cs new file mode 100644 index 0000000000..126ed8ebde --- /dev/null +++ b/Items/Placeables/EutrophicGlass.cs @@ -0,0 +1,37 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class EutrophicGlass : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.createTile = ModContent.TileType(); + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + } + + public override void AddRecipes() + { + CreateRecipe(25). + AddIngredient(2). + AddTile(TileID.Furnaces). + Register(); + } + } +} diff --git a/Items/Placeables/EutrophicGlass.png b/Items/Placeables/EutrophicGlass.png new file mode 100644 index 0000000000..1d38546c13 Binary files /dev/null and b/Items/Placeables/EutrophicGlass.png differ diff --git a/Items/Placeables/Furniture/AstralTorch.cs b/Items/Placeables/Furniture/AstralTorch.cs new file mode 100644 index 0000000000..4a537b11e8 --- /dev/null +++ b/Items/Placeables/Furniture/AstralTorch.cs @@ -0,0 +1,66 @@ +using CalamityMod.Dusts; +using CalamityMod.Items.Materials; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Furniture +{ + public class AstralTorch : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + ItemID.Sets.Torches[Item.type] = true; + ItemID.Sets.SingleUseInGamepad[Type] = true; + ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.ShimmerTorch; + } + + public override void SetDefaults() + { + Item.width = 14; + Item.height = 16; + Item.maxStack = 9999; + Item.holdStyle = 1; + Item.noWet = true; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + Item.flame = true; + Item.value = 500; + } + + public override void HoldItem(Player player) + { + bool killTorch = Collision.DrownCollision(player.position, player.width, player.height, player.gravDir) || Item.wet; + if (!killTorch && Main.rand.NextBool(player.itemAnimation > 0 ? 10 : 20)) + { + Dust.NewDust(new Vector2(player.itemLocation.X + 16f * player.direction, player.itemLocation.Y - 14f * player.gravDir), 4, 4, ModContent.DustType()); + } + Vector2 position = player.RotatedRelativePoint(new Vector2(player.itemLocation.X + 12f * player.direction + player.velocity.X, player.itemLocation.Y - 14f + player.velocity.Y), true); + + if (!killTorch) + Lighting.AddLight(position, 1.6f, 0.6f, 0.3f); + } + + public override void PostUpdate() + { + if (!Item.wet) + Lighting.AddLight((int)((Item.position.X + Item.width / 2) / 16f), (int)((Item.position.Y + Item.height / 2) / 16f), 1.6f, 0.6f, 0.3f); + } + + public override void AddRecipes() + { + CreateRecipe(3). + AddIngredient(ItemID.Torch, 3). + AddIngredient(). + Register(); + } + } +} diff --git a/Items/Placeables/Furniture/AstralTorch.png b/Items/Placeables/Furniture/AstralTorch.png new file mode 100644 index 0000000000..ce1550183a Binary files /dev/null and b/Items/Placeables/Furniture/AstralTorch.png differ diff --git a/Items/Placeables/Furniture/AstralTorch_Flame.png b/Items/Placeables/Furniture/AstralTorch_Flame.png new file mode 100644 index 0000000000..45da8a7bcf Binary files /dev/null and b/Items/Placeables/Furniture/AstralTorch_Flame.png differ diff --git a/Items/Placeables/Furniture/BabyCannonballJellyfishBowl.cs b/Items/Placeables/Furniture/BabyCannonballJellyfishBowl.cs new file mode 100644 index 0000000000..3a0a0c8851 --- /dev/null +++ b/Items/Placeables/Furniture/BabyCannonballJellyfishBowl.cs @@ -0,0 +1,33 @@ +using CalamityMod.Items.Critters; +using CalamityMod.Tiles.Furniture; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Furniture +{ + public class BabyCannonballJellyfishBowl : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 34; + Item.height = 32; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddIngredient(ItemID.BottledWater). + Register(); + } + } +} diff --git a/Items/Placeables/Furniture/BabyCannonballJellyfishBowl.png b/Items/Placeables/Furniture/BabyCannonballJellyfishBowl.png new file mode 100644 index 0000000000..0d0376c841 Binary files /dev/null and b/Items/Placeables/Furniture/BabyCannonballJellyfishBowl.png differ diff --git a/Items/Placeables/Furniture/CirrusCouch.cs b/Items/Placeables/Furniture/CirrusCouch.cs new file mode 100644 index 0000000000..a7c10b5b24 --- /dev/null +++ b/Items/Placeables/Furniture/CirrusCouch.cs @@ -0,0 +1,25 @@ +using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Furniture +{ + public class CirrusCouch : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 28; + Item.height = 20; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.value = 0; + Item.createTile = ModContent.TileType(); + } + } +} diff --git a/Items/Placeables/Furniture/CirrusCouch.png b/Items/Placeables/Furniture/CirrusCouch.png new file mode 100644 index 0000000000..3d0e1a4ba3 Binary files /dev/null and b/Items/Placeables/Furniture/CirrusCouch.png differ diff --git a/Items/Placeables/Furniture/CraftingStations/EffulgentManipulator.cs b/Items/Placeables/Furniture/CraftingStations/EffulgentManipulator.cs new file mode 100644 index 0000000000..d630fca520 --- /dev/null +++ b/Items/Placeables/Furniture/CraftingStations/EffulgentManipulator.cs @@ -0,0 +1,39 @@ +using CalamityMod.Items.Placeables.FurnitureSilva; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Furniture.CraftingStations +{ + [LegacyName("SilvaBasin")] + public class EffulgentManipulator : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 28; + Item.height = 20; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup) + { + itemGroup = ContentSamples.CreativeHelper.ItemGroup.CraftingObjects; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(10). + AddRecipeGroup("AnyGoldBar", 5). + AddTile(TileID.LunarCraftingStation). + Register(); + } + } +} diff --git a/Items/Placeables/Furniture/CraftingStations/EffulgentManipulator.png b/Items/Placeables/Furniture/CraftingStations/EffulgentManipulator.png new file mode 100644 index 0000000000..fe06bed067 Binary files /dev/null and b/Items/Placeables/Furniture/CraftingStations/EffulgentManipulator.png differ diff --git a/Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.cs b/Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.cs new file mode 100644 index 0000000000..7f2295a155 --- /dev/null +++ b/Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.cs @@ -0,0 +1,27 @@ +using CalamityMod.Tiles.Furniture.Fountains; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Furniture.Fountains +{ + public class BrimstoneLavaFountainItem : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 22; + Item.height = 42; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.value = Item.buyPrice(0, 4, 0, 0); + Item.rare = ItemRarityID.Blue; + Item.createTile = ModContent.TileType(); + } + } +} diff --git a/Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.png b/Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.png new file mode 100644 index 0000000000..6e5bbcab48 Binary files /dev/null and b/Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.png differ diff --git a/Items/Placeables/Furniture/Monoliths/AstralProjector.cs b/Items/Placeables/Furniture/Monoliths/AstralProjector.cs new file mode 100644 index 0000000000..f9df9d7b02 --- /dev/null +++ b/Items/Placeables/Furniture/Monoliths/AstralProjector.cs @@ -0,0 +1,49 @@ +using CalamityMod.Tiles.Furniture.Monoliths; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.Furniture.Monoliths +{ + public class AstralProjector : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 24; + Item.height = 28; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + Item.rare = ItemRarityID.LightRed; + Item.accessory = true; + Item.vanity = true; + } + + public override void UpdateEquip(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithAstralShader = 30; + } + } + public override void UpdateVanity(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithAstralShader = 30; + } + } + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(15). + AddTile(TileID.Anvils). + Register(); + } + } +} diff --git a/Items/Placeables/Furniture/Monoliths/AstralProjector.png b/Items/Placeables/Furniture/Monoliths/AstralProjector.png new file mode 100644 index 0000000000..fddbd284a2 Binary files /dev/null and b/Items/Placeables/Furniture/Monoliths/AstralProjector.png differ diff --git a/Items/Placeables/Furniture/Monoliths/BlueDistortedMonolith.cs b/Items/Placeables/Furniture/Monoliths/BlueDistortedMonolith.cs new file mode 100644 index 0000000000..aeffacdc72 --- /dev/null +++ b/Items/Placeables/Furniture/Monoliths/BlueDistortedMonolith.cs @@ -0,0 +1,52 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Rarities; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.Furniture.Monoliths; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.Furniture.Monoliths +{ + public class BlueDistortedMonolith : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 24; + Item.height = 28; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + Item.rare = ModContent.RarityType(); + Item.accessory = true; + Item.vanity = true; + } + + public override void UpdateEquip(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithDevourerBShader = 30; + } + } + public override void UpdateVanity(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithDevourerBShader = 30; + } + } + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(15). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/Furniture/Monoliths/BlueDistortedMonolith.png b/Items/Placeables/Furniture/Monoliths/BlueDistortedMonolith.png new file mode 100644 index 0000000000..d71ec7bed3 Binary files /dev/null and b/Items/Placeables/Furniture/Monoliths/BlueDistortedMonolith.png differ diff --git a/Items/Placeables/Furniture/Monoliths/BossRushMonolith.cs b/Items/Placeables/Furniture/Monoliths/BossRushMonolith.cs new file mode 100644 index 0000000000..1a60e8a7ec --- /dev/null +++ b/Items/Placeables/Furniture/Monoliths/BossRushMonolith.cs @@ -0,0 +1,43 @@ +using CalamityMod.Rarities; +using CalamityMod.Tiles.Furniture.Monoliths; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.Furniture.Monoliths +{ + public class BossRushMonolith : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 24; + Item.height = 28; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + Item.rare = ModContent.RarityType(); + Item.accessory = true; + Item.vanity = true; + } + + public override void UpdateEquip(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithBossRushShader = 30; + } + } + public override void UpdateVanity(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithBossRushShader = 30; + } + } + } +} diff --git a/Items/Placeables/Furniture/Monoliths/BossRushMonolith.png b/Items/Placeables/Furniture/Monoliths/BossRushMonolith.png new file mode 100644 index 0000000000..700f5dca6d Binary files /dev/null and b/Items/Placeables/Furniture/Monoliths/BossRushMonolith.png differ diff --git a/Items/Placeables/Furniture/Monoliths/DeepSeaAnchor.cs b/Items/Placeables/Furniture/Monoliths/DeepSeaAnchor.cs new file mode 100644 index 0000000000..13dce481a5 --- /dev/null +++ b/Items/Placeables/Furniture/Monoliths/DeepSeaAnchor.cs @@ -0,0 +1,43 @@ +using CalamityMod.Rarities; +using CalamityMod.Tiles.Furniture.Monoliths; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.Furniture.Monoliths +{ + public class DeepSeaAnchor : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 24; + Item.height = 28; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + Item.rare = ItemRarityID.Lime; + Item.accessory = true; + Item.vanity = true; + } + + public override void UpdateEquip(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithLeviathanShader = 30; + } + } + public override void UpdateVanity(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithLeviathanShader = 30; + } + } + } +} diff --git a/Items/Placeables/Furniture/Monoliths/DeepSeaAnchor.png b/Items/Placeables/Furniture/Monoliths/DeepSeaAnchor.png new file mode 100644 index 0000000000..e6b2968997 Binary files /dev/null and b/Items/Placeables/Furniture/Monoliths/DeepSeaAnchor.png differ diff --git a/Items/Placeables/Furniture/Monoliths/DraconicIncense.cs b/Items/Placeables/Furniture/Monoliths/DraconicIncense.cs new file mode 100644 index 0000000000..ab3b483412 --- /dev/null +++ b/Items/Placeables/Furniture/Monoliths/DraconicIncense.cs @@ -0,0 +1,52 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Rarities; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.Furniture.Monoliths; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.Furniture.Monoliths +{ + public class DraconicIncense : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 24; + Item.height = 28; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + Item.rare = ModContent.RarityType(); + Item.accessory = true; + Item.vanity = true; + } + + public override void UpdateEquip(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithYharonShader = 30; + } + } + public override void UpdateVanity(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithYharonShader = 30; + } + } + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(15). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/Furniture/Monoliths/DraconicIncense.png b/Items/Placeables/Furniture/Monoliths/DraconicIncense.png new file mode 100644 index 0000000000..c01bdb3522 Binary files /dev/null and b/Items/Placeables/Furniture/Monoliths/DraconicIncense.png differ diff --git a/Items/Placeables/Furniture/Monoliths/ExoObelisk.cs b/Items/Placeables/Furniture/Monoliths/ExoObelisk.cs new file mode 100644 index 0000000000..3c7352e50f --- /dev/null +++ b/Items/Placeables/Furniture/Monoliths/ExoObelisk.cs @@ -0,0 +1,52 @@ +using CalamityMod.Items.Placeables.FurnitureExo; +using CalamityMod.Rarities; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.Furniture.Monoliths; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.Furniture.Monoliths +{ + public class ExoObelisk : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 24; + Item.height = 28; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + Item.rare = ModContent.RarityType(); + Item.accessory = true; + Item.vanity = true; + } + + public override void UpdateEquip(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithExoShader = 30; + } + } + public override void UpdateVanity(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithExoShader = 30; + } + } + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(15). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/Furniture/Monoliths/ExoObelisk.png b/Items/Placeables/Furniture/Monoliths/ExoObelisk.png new file mode 100644 index 0000000000..73478f08f7 Binary files /dev/null and b/Items/Placeables/Furniture/Monoliths/ExoObelisk.png differ diff --git a/Items/Placeables/Furniture/Monoliths/FrigidMonolith.cs b/Items/Placeables/Furniture/Monoliths/FrigidMonolith.cs new file mode 100644 index 0000000000..a9f7bff28b --- /dev/null +++ b/Items/Placeables/Furniture/Monoliths/FrigidMonolith.cs @@ -0,0 +1,42 @@ +using CalamityMod.Tiles.Furniture.Monoliths; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.Furniture.Monoliths +{ + public class FrigidMonolith : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 24; + Item.height = 28; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + Item.rare = ItemRarityID.Pink; + Item.accessory = true; + Item.vanity = true; + } + + public override void UpdateEquip(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithCryogenShader = 30; + } + } + public override void UpdateVanity(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithCryogenShader = 30; + } + } + } +} diff --git a/Items/Placeables/Furniture/Monoliths/FrigidMonolith.png b/Items/Placeables/Furniture/Monoliths/FrigidMonolith.png new file mode 100644 index 0000000000..ede7749947 Binary files /dev/null and b/Items/Placeables/Furniture/Monoliths/FrigidMonolith.png differ diff --git a/Items/Placeables/Furniture/Monoliths/PlagueHumidifier.cs b/Items/Placeables/Furniture/Monoliths/PlagueHumidifier.cs new file mode 100644 index 0000000000..fa4da117ad --- /dev/null +++ b/Items/Placeables/Furniture/Monoliths/PlagueHumidifier.cs @@ -0,0 +1,52 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Rarities; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.Furniture.Monoliths; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.Furniture.Monoliths +{ + public class PlagueHumidifier : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 24; + Item.height = 28; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + Item.rare = ItemRarityID.Yellow; + Item.accessory = true; + Item.vanity = true; + } + + public override void UpdateEquip(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithPlagueShader = 30; + } + } + public override void UpdateVanity(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithPlagueShader = 30; + } + } + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(15). + AddTile(TileID.MythrilAnvil). + Register(); + } + } +} diff --git a/Items/Placeables/Furniture/Monoliths/PlagueHumidifier.png b/Items/Placeables/Furniture/Monoliths/PlagueHumidifier.png new file mode 100644 index 0000000000..881c5f262e Binary files /dev/null and b/Items/Placeables/Furniture/Monoliths/PlagueHumidifier.png differ diff --git a/Items/Placeables/Furniture/Monoliths/PurpleDistortedMonolith.cs b/Items/Placeables/Furniture/Monoliths/PurpleDistortedMonolith.cs new file mode 100644 index 0000000000..a665e83478 --- /dev/null +++ b/Items/Placeables/Furniture/Monoliths/PurpleDistortedMonolith.cs @@ -0,0 +1,52 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Rarities; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.Furniture.Monoliths; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.Furniture.Monoliths +{ + public class PurpleDistortedMonolith : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 24; + Item.height = 28; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + Item.rare = ModContent.RarityType(); + Item.accessory = true; + Item.vanity = true; + } + + public override void UpdateEquip(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithDevourerPShader = 30; + } + } + public override void UpdateVanity(Player player) + { + if (player.whoAmI == Main.myPlayer) + { + player.Calamity().monolithDevourerPShader = 30; + } + } + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(15). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/Furniture/Monoliths/PurpleDistortedMonolith.png b/Items/Placeables/Furniture/Monoliths/PurpleDistortedMonolith.png new file mode 100644 index 0000000000..d71ec7bed3 Binary files /dev/null and b/Items/Placeables/Furniture/Monoliths/PurpleDistortedMonolith.png differ diff --git a/Items/Placeables/FurnitureAuric/ActivatedAuricPanel.cs b/Items/Placeables/FurnitureAuric/ActivatedAuricPanel.cs new file mode 100644 index 0000000000..b989ac4973 --- /dev/null +++ b/Items/Placeables/FurnitureAuric/ActivatedAuricPanel.cs @@ -0,0 +1,42 @@ +using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.FurnitureAuric; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureAuric +{ + public class ActivatedAuricPanel : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(400). + AddRecipeGroup("AnyStoneBlock", 400). + AddIngredient(). + AddTile(). + Register(); + /*CreateRecipe(). + AddIngredient(4). + AddTile(TileID.WorkBenches). + Register();*/ + } + } +} diff --git a/Items/Placeables/FurnitureAuric/ActivatedAuricPanel.png b/Items/Placeables/FurnitureAuric/ActivatedAuricPanel.png new file mode 100644 index 0000000000..61a7434c8e Binary files /dev/null and b/Items/Placeables/FurnitureAuric/ActivatedAuricPanel.png differ diff --git a/Items/Placeables/FurnitureAuric/AuricAbsorber.cs b/Items/Placeables/FurnitureAuric/AuricAbsorber.cs new file mode 100644 index 0000000000..c6747122ed --- /dev/null +++ b/Items/Placeables/FurnitureAuric/AuricAbsorber.cs @@ -0,0 +1,40 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.FurnitureAuric; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureAuric +{ + public class AuricAbsorber : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(400). + AddRecipeGroup("AnyStoneBlock", 400). + AddIngredient(). + AddIngredient(). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureAuric/AuricAbsorber.png b/Items/Placeables/FurnitureAuric/AuricAbsorber.png new file mode 100644 index 0000000000..e1ba34282c Binary files /dev/null and b/Items/Placeables/FurnitureAuric/AuricAbsorber.png differ diff --git a/Items/Placeables/FurnitureAuric/AuricConsole.cs b/Items/Placeables/FurnitureAuric/AuricConsole.cs new file mode 100644 index 0000000000..4e33dbd08a --- /dev/null +++ b/Items/Placeables/FurnitureAuric/AuricConsole.cs @@ -0,0 +1,34 @@ +using CalamityMod.Items.DraedonMisc; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.FurnitureAuric; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureAuric +{ + public class AuricConsole : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(10). + AddIngredient(8). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureAuric/AuricConsole.png b/Items/Placeables/FurnitureAuric/AuricConsole.png new file mode 100644 index 0000000000..88a2f071b7 Binary files /dev/null and b/Items/Placeables/FurnitureAuric/AuricConsole.png differ diff --git a/Items/Placeables/FurnitureAuric/AuricDisplay.cs b/Items/Placeables/FurnitureAuric/AuricDisplay.cs new file mode 100644 index 0000000000..dd3a605fb8 --- /dev/null +++ b/Items/Placeables/FurnitureAuric/AuricDisplay.cs @@ -0,0 +1,34 @@ +using CalamityMod.Items.DraedonMisc; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.FurnitureAuric; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureAuric +{ + public class AuricDisplay : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(15). + AddIngredient(5). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureAuric/AuricDisplay.png b/Items/Placeables/FurnitureAuric/AuricDisplay.png new file mode 100644 index 0000000000..c720851fe6 Binary files /dev/null and b/Items/Placeables/FurnitureAuric/AuricDisplay.png differ diff --git a/Items/Placeables/FurnitureAuric/AuricPanel.cs b/Items/Placeables/FurnitureAuric/AuricPanel.cs new file mode 100644 index 0000000000..eb62611375 --- /dev/null +++ b/Items/Placeables/FurnitureAuric/AuricPanel.cs @@ -0,0 +1,45 @@ +using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.FurnitureAuric; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureAuric +{ + public class AuricPanel : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(400). + AddRecipeGroup("AnyStoneBlock", 400). + AddIngredient(). + AddTile(). + Register(); + CreateRecipe(). + AddIngredient(2). + Register(); + /*CreateRecipe(). + AddIngredient(4). + AddTile(TileID.WorkBenches). + Register();*/ + } + } +} diff --git a/Items/Placeables/FurnitureAuric/AuricPanel.png b/Items/Placeables/FurnitureAuric/AuricPanel.png new file mode 100644 index 0000000000..befcaa7cc1 Binary files /dev/null and b/Items/Placeables/FurnitureAuric/AuricPanel.png differ diff --git a/Items/Placeables/FurnitureAuric/AuricPlatform.cs b/Items/Placeables/FurnitureAuric/AuricPlatform.cs new file mode 100644 index 0000000000..4a56e280e4 --- /dev/null +++ b/Items/Placeables/FurnitureAuric/AuricPlatform.cs @@ -0,0 +1,36 @@ +using CalamityMod.Tiles.FurnitureAuric; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.FurnitureAuric +{ + public class AuricPlatform : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 200; + } + + public override void SetDefaults() + { + Item.width = 8; + Item.height = 10; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(2). + AddIngredient(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureAuric/AuricPlatform.png b/Items/Placeables/FurnitureAuric/AuricPlatform.png new file mode 100644 index 0000000000..6a5fa43e3c Binary files /dev/null and b/Items/Placeables/FurnitureAuric/AuricPlatform.png differ diff --git a/Items/Placeables/FurnitureAuric/AuricReinforcedCrate.cs b/Items/Placeables/FurnitureAuric/AuricReinforcedCrate.cs new file mode 100644 index 0000000000..accc587b17 --- /dev/null +++ b/Items/Placeables/FurnitureAuric/AuricReinforcedCrate.cs @@ -0,0 +1,35 @@ +using CalamityMod.Items.DraedonMisc; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.FurnitureAuric; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.FurnitureAuric +{ + public class AuricReinforcedCrate : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(7). + AddIngredient(). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureAuric/AuricReinforcedCrate.png b/Items/Placeables/FurnitureAuric/AuricReinforcedCrate.png new file mode 100644 index 0000000000..07863fdf93 Binary files /dev/null and b/Items/Placeables/FurnitureAuric/AuricReinforcedCrate.png differ diff --git a/Items/Placeables/FurnitureAuric/AuricRepulserPanel.cs b/Items/Placeables/FurnitureAuric/AuricRepulserPanel.cs new file mode 100644 index 0000000000..5c702a42a9 --- /dev/null +++ b/Items/Placeables/FurnitureAuric/AuricRepulserPanel.cs @@ -0,0 +1,38 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.FurnitureAuric; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureAuric +{ + public class AuricRepulserPanel : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(400). + AddIngredient(400). + AddIngredient(). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureAuric/AuricRepulserPanel.png b/Items/Placeables/FurnitureAuric/AuricRepulserPanel.png new file mode 100644 index 0000000000..633c52209c Binary files /dev/null and b/Items/Placeables/FurnitureAuric/AuricRepulserPanel.png differ diff --git a/Items/Placeables/FurnitureAuric/AuricScreen.cs b/Items/Placeables/FurnitureAuric/AuricScreen.cs new file mode 100644 index 0000000000..0d0f814eac --- /dev/null +++ b/Items/Placeables/FurnitureAuric/AuricScreen.cs @@ -0,0 +1,34 @@ +using CalamityMod.Items.DraedonMisc; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.FurnitureAuric; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureAuric +{ + public class AuricScreen : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(10). + AddIngredient(3). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureAuric/AuricScreen.png b/Items/Placeables/FurnitureAuric/AuricScreen.png new file mode 100644 index 0000000000..199491fc1e Binary files /dev/null and b/Items/Placeables/FurnitureAuric/AuricScreen.png differ diff --git a/Items/Placeables/FurnitureAuric/AuricServer.cs b/Items/Placeables/FurnitureAuric/AuricServer.cs new file mode 100644 index 0000000000..5f02f1bae5 --- /dev/null +++ b/Items/Placeables/FurnitureAuric/AuricServer.cs @@ -0,0 +1,34 @@ +using CalamityMod.Items.DraedonMisc; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.FurnitureAuric; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureAuric +{ + public class AuricServer : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(12). + AddIngredient(15). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureAuric/AuricServer.png b/Items/Placeables/FurnitureAuric/AuricServer.png new file mode 100644 index 0000000000..c4ee75b74d Binary files /dev/null and b/Items/Placeables/FurnitureAuric/AuricServer.png differ diff --git a/Items/Placeables/FurnitureAuric/AuricTerminal.cs b/Items/Placeables/FurnitureAuric/AuricTerminal.cs new file mode 100644 index 0000000000..fc673ab4cc --- /dev/null +++ b/Items/Placeables/FurnitureAuric/AuricTerminal.cs @@ -0,0 +1,34 @@ +using CalamityMod.Items.DraedonMisc; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.FurnitureAuric; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureAuric +{ + public class AuricTerminal : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(15). + AddIngredient(5). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureAuric/AuricTerminal.png b/Items/Placeables/FurnitureAuric/AuricTerminal.png new file mode 100644 index 0000000000..817b3fd706 Binary files /dev/null and b/Items/Placeables/FurnitureAuric/AuricTerminal.png differ diff --git a/Items/Placeables/FurnitureAuric/AuricToilet.cs b/Items/Placeables/FurnitureAuric/AuricToilet.cs new file mode 100644 index 0000000000..94ad188083 --- /dev/null +++ b/Items/Placeables/FurnitureAuric/AuricToilet.cs @@ -0,0 +1,41 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.FurnitureBotanic; +using CalamityMod.Items.Placeables.FurnitureCosmilite; +using CalamityMod.Items.Placeables.FurnitureSilva; +using CalamityMod.Rarities; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.FurnitureAuric; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureAuric +{ + public class AuricToilet : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 12; + Item.height = 30; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + Item.rare = ModContent.RarityType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddIngredient(). + AddIngredient(). + AddIngredient(5). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureAuric/AuricToilet.png b/Items/Placeables/FurnitureAuric/AuricToilet.png new file mode 100644 index 0000000000..bcdf04a3a6 Binary files /dev/null and b/Items/Placeables/FurnitureAuric/AuricToilet.png differ diff --git a/Items/Placeables/FurnitureAuric/ExoAuricPanel.cs b/Items/Placeables/FurnitureAuric/ExoAuricPanel.cs new file mode 100644 index 0000000000..3def8fb771 --- /dev/null +++ b/Items/Placeables/FurnitureAuric/ExoAuricPanel.cs @@ -0,0 +1,42 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.FurnitureAuric; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureAuric +{ + public class ExoAuricPanel : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(400). + AddIngredient(400). + AddIngredient(). + AddTile(). + Register(); + /*CreateRecipe(). + AddIngredient(4). + AddTile(TileID.WorkBenches). + Register();*/ + } + } +} diff --git a/Items/Placeables/FurnitureAuric/ExoAuricPanel.png b/Items/Placeables/FurnitureAuric/ExoAuricPanel.png new file mode 100644 index 0000000000..4eb51601f7 Binary files /dev/null and b/Items/Placeables/FurnitureAuric/ExoAuricPanel.png differ diff --git a/Items/Placeables/FurnitureExo/ExoWorkBench.png b/Items/Placeables/FurnitureExo/ExoWorkBench.png new file mode 100644 index 0000000000..e952fe07e1 Binary files /dev/null and b/Items/Placeables/FurnitureExo/ExoWorkBench.png differ diff --git a/Items/Placeables/FurnitureProfaned/ProfanedWorkBench.png b/Items/Placeables/FurnitureProfaned/ProfanedWorkBench.png new file mode 100644 index 0000000000..2e51c89205 Binary files /dev/null and b/Items/Placeables/FurnitureProfaned/ProfanedWorkBench.png differ diff --git a/Items/Placeables/FurnitureStatigel/StatigelWorkBench.png b/Items/Placeables/FurnitureStatigel/StatigelWorkBench.png new file mode 100644 index 0000000000..3c65d5e29b Binary files /dev/null and b/Items/Placeables/FurnitureStatigel/StatigelWorkBench.png differ diff --git a/Items/Placeables/FurnitureStratus/StratusWorkBench.png b/Items/Placeables/FurnitureStratus/StratusWorkBench.png new file mode 100644 index 0000000000..19e284c7ed Binary files /dev/null and b/Items/Placeables/FurnitureStratus/StratusWorkBench.png differ diff --git a/Items/Placeables/FurnitureVoid/VoidWorkBench.png b/Items/Placeables/FurnitureVoid/VoidWorkBench.png new file mode 100644 index 0000000000..1affd97771 Binary files /dev/null and b/Items/Placeables/FurnitureVoid/VoidWorkBench.png differ diff --git a/Items/Placeables/FurnitureWulfrum/WulfrumWorkBench.png b/Items/Placeables/FurnitureWulfrum/WulfrumWorkBench.png new file mode 100644 index 0000000000..ef1afc69b1 Binary files /dev/null and b/Items/Placeables/FurnitureWulfrum/WulfrumWorkBench.png differ diff --git a/Items/Placeables/HardenedEutrophicSand.cs b/Items/Placeables/HardenedEutrophicSand.cs new file mode 100644 index 0000000000..d12f6498e8 --- /dev/null +++ b/Items/Placeables/HardenedEutrophicSand.cs @@ -0,0 +1,39 @@ +using CalamityMod.Items.Placeables.Walls; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class HardenedEutrophicSand : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType(); + } + + public override void SetDefaults() + { + Item.width = 13; + Item.height = 10; + Item.createTile = ModContent.TileType(); + Item.useStyle = ItemUseStyleID.Swing; + Item.useTurn = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.autoReuse = true; + Item.consumable = true; + Item.maxStack = 9999; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddIngredient(ItemID.DirtBlock). + AddTile(TileID.Solidifier). + Register(); + } + } +} diff --git a/Items/Placeables/HardenedEutrophicSand.png b/Items/Placeables/HardenedEutrophicSand.png new file mode 100644 index 0000000000..077cd0b116 Binary files /dev/null and b/Items/Placeables/HardenedEutrophicSand.png differ diff --git a/Items/Placeables/LimeCoral.cs b/Items/Placeables/LimeCoral.cs new file mode 100644 index 0000000000..67ed0a5725 --- /dev/null +++ b/Items/Placeables/LimeCoral.cs @@ -0,0 +1,37 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class LimeCoral : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.rare = ItemRarityID.Blue; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + //public override void AddRecipes() + //{ + // CreateRecipe(4). + // AddIngredient(ItemID.PinkPearl). + // AddTile(TileID.HeavyWorkBench). + // Register(); + //} + } +} diff --git a/Items/Placeables/LimeCoral.png b/Items/Placeables/LimeCoral.png new file mode 100644 index 0000000000..e5388e3811 Binary files /dev/null and b/Items/Placeables/LimeCoral.png differ diff --git a/Items/Placeables/Limestone.cs b/Items/Placeables/Limestone.cs new file mode 100644 index 0000000000..d238c192a1 --- /dev/null +++ b/Items/Placeables/Limestone.cs @@ -0,0 +1,28 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class Limestone : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + } +} diff --git a/Items/Placeables/Limestone.png b/Items/Placeables/Limestone.png new file mode 100644 index 0000000000..65742f7ba5 Binary files /dev/null and b/Items/Placeables/Limestone.png differ diff --git a/Items/Placeables/MagentaCoral.cs b/Items/Placeables/MagentaCoral.cs new file mode 100644 index 0000000000..a78ffb95c0 --- /dev/null +++ b/Items/Placeables/MagentaCoral.cs @@ -0,0 +1,37 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class MagentaCoral : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.rare = ItemRarityID.Blue; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + //public override void AddRecipes() + //{ + // CreateRecipe(4). + // AddIngredient(ItemID.PinkPearl). + // AddTile(TileID.HeavyWorkBench). + // Register(); + //} + } +} diff --git a/Items/Placeables/MagentaCoral.png b/Items/Placeables/MagentaCoral.png new file mode 100644 index 0000000000..1f394b1b66 Binary files /dev/null and b/Items/Placeables/MagentaCoral.png differ diff --git a/Items/Placeables/MusicBoxes/DraedonExoSelectMusicBox.cs b/Items/Placeables/MusicBoxes/DraedonExoSelectMusicBox.cs new file mode 100644 index 0000000000..5203a79546 --- /dev/null +++ b/Items/Placeables/MusicBoxes/DraedonExoSelectMusicBox.cs @@ -0,0 +1,19 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.MusicBoxes +{ + [LegacyName("DraedonsAmbienceMusicBox")] + public class DraedonExoSelectMusicBox : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + + public override void SetStaticDefaults() + { + ItemID.Sets.CanGetPrefixes[Type] = false; + ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.MusicBox; + } + + public override void SetDefaults() => Item.DefaultToMusicBox(ModContent.TileType(), 0); + } +} diff --git a/Items/Placeables/MusicBoxes/DraedonExoSelectMusicBox.png b/Items/Placeables/MusicBoxes/DraedonExoSelectMusicBox.png new file mode 100644 index 0000000000..d5a2643788 Binary files /dev/null and b/Items/Placeables/MusicBoxes/DraedonExoSelectMusicBox.png differ diff --git a/Items/Placeables/MusicBoxes/DraedonTalkMusicBox.cs b/Items/Placeables/MusicBoxes/DraedonTalkMusicBox.cs new file mode 100644 index 0000000000..339f207a1a --- /dev/null +++ b/Items/Placeables/MusicBoxes/DraedonTalkMusicBox.cs @@ -0,0 +1,18 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.MusicBoxes +{ + public class DraedonTalkMusicBox : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + + public override void SetStaticDefaults() + { + ItemID.Sets.CanGetPrefixes[Type] = false; + ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.MusicBox; + } + + public override void SetDefaults() => Item.DefaultToMusicBox(ModContent.TileType(), 0); + } +} diff --git a/Items/Placeables/MusicBoxes/DraedonTalkMusicBox.png b/Items/Placeables/MusicBoxes/DraedonTalkMusicBox.png new file mode 100644 index 0000000000..5177be35c8 Binary files /dev/null and b/Items/Placeables/MusicBoxes/DraedonTalkMusicBox.png differ diff --git a/Items/Placeables/OrangeCoral.cs b/Items/Placeables/OrangeCoral.cs new file mode 100644 index 0000000000..d0dc22fe52 --- /dev/null +++ b/Items/Placeables/OrangeCoral.cs @@ -0,0 +1,37 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class OrangeCoral : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.rare = ItemRarityID.Blue; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + //public override void AddRecipes() + //{ + // CreateRecipe(4). + // AddIngredient(ItemID.PinkPearl). + // AddTile(TileID.HeavyWorkBench). + // Register(); + //} + } +} diff --git a/Items/Placeables/OrangeCoral.png b/Items/Placeables/OrangeCoral.png new file mode 100644 index 0000000000..cfe3fccb6a Binary files /dev/null and b/Items/Placeables/OrangeCoral.png differ diff --git a/Items/Placeables/PinkPearlPile.cs b/Items/Placeables/PinkPearlPile.cs new file mode 100644 index 0000000000..2307018521 --- /dev/null +++ b/Items/Placeables/PinkPearlPile.cs @@ -0,0 +1,37 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class PinkPearlPile : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.rare = ItemRarityID.Blue; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(4). + AddIngredient(ItemID.PinkPearl). + AddTile(TileID.HeavyWorkBench). + Register(); + } + } +} diff --git a/Items/Placeables/PinkPearlPile.png b/Items/Placeables/PinkPearlPile.png new file mode 100644 index 0000000000..1b346005d3 Binary files /dev/null and b/Items/Placeables/PinkPearlPile.png differ diff --git a/Items/Placeables/PlaceableTurrets/FireTurret.cs b/Items/Placeables/PlaceableTurrets/FireTurret.cs new file mode 100644 index 0000000000..8127d848a9 --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/FireTurret.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using CalamityMod.CustomRecipes; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Plates; +using CalamityMod.Tiles.PlayerTurrets; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class FireTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 10, 0, 0); + Item.rare = ItemRarityID.Pink; + } + + public override void ModifyTooltips(List tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 2); + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(14). + AddIngredient(20). + AddIngredient(10). + AddIngredient(12). + AddCondition(ArsenalTierGatedRecipe.ConstructRecipeCondition(2, out Func condition), condition). + AddTile(TileID.MythrilAnvil). + Register(); + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/FireTurret.png b/Items/Placeables/PlaceableTurrets/FireTurret.png new file mode 100644 index 0000000000..be65d8058a Binary files /dev/null and b/Items/Placeables/PlaceableTurrets/FireTurret.png differ diff --git a/Items/Placeables/PlaceableTurrets/HostileFireTurret.cs b/Items/Placeables/PlaceableTurrets/HostileFireTurret.cs new file mode 100644 index 0000000000..7e58eddef6 --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/HostileFireTurret.cs @@ -0,0 +1,19 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class HostileFireTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override string Texture => "CalamityMod/Items/Placeables/PlaceableTurrets/FireTurret"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 10, 0, 0); + Item.rare = ItemRarityID.Pink; + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/HostileIceTurret.cs b/Items/Placeables/PlaceableTurrets/HostileIceTurret.cs new file mode 100644 index 0000000000..7e20a68089 --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/HostileIceTurret.cs @@ -0,0 +1,19 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class HostileIceTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override string Texture => "CalamityMod/Items/Placeables/PlaceableTurrets/IceTurret"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 10, 0, 0); + Item.rare = ItemRarityID.Pink; + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/HostileLabTurret.cs b/Items/Placeables/PlaceableTurrets/HostileLabTurret.cs new file mode 100644 index 0000000000..a3b8697082 --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/HostileLabTurret.cs @@ -0,0 +1,19 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class HostileLabTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override string Texture => "CalamityMod/Items/Placeables/PlaceableTurrets/LabTurret"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 5, 0, 0); + Item.rare = ItemRarityID.Orange; + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/HostileLaserTurret.cs b/Items/Placeables/PlaceableTurrets/HostileLaserTurret.cs new file mode 100644 index 0000000000..c8e8ad5cd3 --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/HostileLaserTurret.cs @@ -0,0 +1,19 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class HostileLaserTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override string Texture => "CalamityMod/Items/Placeables/PlaceableTurrets/LaserTurret"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 10, 0, 0); + Item.rare = ItemRarityID.Pink; + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/HostileOnyxTurret.cs b/Items/Placeables/PlaceableTurrets/HostileOnyxTurret.cs new file mode 100644 index 0000000000..e4597d2ef6 --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/HostileOnyxTurret.cs @@ -0,0 +1,19 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class HostileOnyxTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override string Texture => "CalamityMod/Items/Placeables/PlaceableTurrets/OnyxTurret"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 5, 0, 0); + Item.rare = ItemRarityID.Orange; + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/HostilePlagueTurret.cs b/Items/Placeables/PlaceableTurrets/HostilePlagueTurret.cs new file mode 100644 index 0000000000..492f01fc41 --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/HostilePlagueTurret.cs @@ -0,0 +1,19 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class HostilePlagueTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override string Texture => "CalamityMod/Items/Placeables/PlaceableTurrets/PlagueTurret"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 20, 0, 0); + Item.rare = ItemRarityID.Yellow; + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/HostileWaterTurret.cs b/Items/Placeables/PlaceableTurrets/HostileWaterTurret.cs new file mode 100644 index 0000000000..8edc6bc17f --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/HostileWaterTurret.cs @@ -0,0 +1,19 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class HostileWaterTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override string Texture => "CalamityMod/Items/Placeables/PlaceableTurrets/WaterTurret"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 5, 0, 0); + Item.rare = ItemRarityID.Orange; + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/IceTurret.cs b/Items/Placeables/PlaceableTurrets/IceTurret.cs new file mode 100644 index 0000000000..74996095c7 --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/IceTurret.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using CalamityMod.CustomRecipes; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Plates; +using CalamityMod.Tiles.PlayerTurrets; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class IceTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 10, 0, 0); + Item.rare = ItemRarityID.Pink; + } + + public override void ModifyTooltips(List tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 2); + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(14). + AddIngredient(20). + AddIngredient(10). + AddIngredient(12). + AddCondition(ArsenalTierGatedRecipe.ConstructRecipeCondition(2, out Func condition), condition). + AddTile(TileID.MythrilAnvil). + Register(); + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/IceTurret.png b/Items/Placeables/PlaceableTurrets/IceTurret.png new file mode 100644 index 0000000000..0e104ea5d5 Binary files /dev/null and b/Items/Placeables/PlaceableTurrets/IceTurret.png differ diff --git a/Items/Placeables/PlaceableTurrets/LabTurret.cs b/Items/Placeables/PlaceableTurrets/LabTurret.cs new file mode 100644 index 0000000000..309ea046d5 --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/LabTurret.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using CalamityMod.CustomRecipes; +using CalamityMod.Items.Materials; +using CalamityMod.Tiles.PlayerTurrets; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class LabTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 5, 0, 0); + Item.rare = ItemRarityID.Orange; + } + + public override void ModifyTooltips(List tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 1); + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(14). + AddIngredient(20). + AddIngredient(). + AddCondition(ArsenalTierGatedRecipe.ConstructRecipeCondition(1, out Func condition), condition). + AddTile(TileID.Anvils). + Register(); + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/LabTurret.png b/Items/Placeables/PlaceableTurrets/LabTurret.png new file mode 100644 index 0000000000..22e11b0bf6 Binary files /dev/null and b/Items/Placeables/PlaceableTurrets/LabTurret.png differ diff --git a/Items/Placeables/PlaceableTurrets/LaserTurret .cs b/Items/Placeables/PlaceableTurrets/LaserTurret .cs new file mode 100644 index 0000000000..bbfa32629c --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/LaserTurret .cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using CalamityMod.CustomRecipes; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Plates; +using CalamityMod.Tiles.PlayerTurrets; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class LaserTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 10, 0, 0); + Item.rare = ItemRarityID.Pink; + } + + public override void ModifyTooltips(List tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 2); + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(14). + AddIngredient(20). + AddIngredient(10). + AddIngredient(12). + AddCondition(ArsenalTierGatedRecipe.ConstructRecipeCondition(2, out Func condition), condition). + AddTile(TileID.MythrilAnvil). + Register(); + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/LaserTurret.png b/Items/Placeables/PlaceableTurrets/LaserTurret.png new file mode 100644 index 0000000000..fbe239c5e7 Binary files /dev/null and b/Items/Placeables/PlaceableTurrets/LaserTurret.png differ diff --git a/Items/Placeables/PlaceableTurrets/OnyxTurret.cs b/Items/Placeables/PlaceableTurrets/OnyxTurret.cs new file mode 100644 index 0000000000..94ee1a3708 --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/OnyxTurret.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using CalamityMod.CustomRecipes; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Plates; +using CalamityMod.Tiles.PlayerTurrets; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class OnyxTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 5, 0, 0); + Item.rare = ItemRarityID.Orange; + } + + public override void ModifyTooltips(List tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 1); + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(14). + AddIngredient(20). + AddIngredient(10). + AddIngredient(50). + AddCondition(ArsenalTierGatedRecipe.ConstructRecipeCondition(1, out Func condition), condition). + AddTile(TileID.Anvils). + Register(); + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/OnyxTurret.png b/Items/Placeables/PlaceableTurrets/OnyxTurret.png new file mode 100644 index 0000000000..d297c54944 Binary files /dev/null and b/Items/Placeables/PlaceableTurrets/OnyxTurret.png differ diff --git a/Items/Placeables/PlaceableTurrets/PlagueTurret.cs b/Items/Placeables/PlaceableTurrets/PlagueTurret.cs new file mode 100644 index 0000000000..7fb7eb6eaf --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/PlagueTurret.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using CalamityMod.CustomRecipes; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Plates; +using CalamityMod.Tiles.PlayerTurrets; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class PlagueTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 20, 0, 0); + Item.rare = ItemRarityID.Yellow; + } + + public override void ModifyTooltips(List tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 3); + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(14). + AddIngredient(20). + AddIngredient(10). + AddIngredient(12). + AddCondition(ArsenalTierGatedRecipe.ConstructRecipeCondition(3, out Func condition), condition). + AddTile(TileID.MythrilAnvil). + Register(); + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/PlagueTurret.png b/Items/Placeables/PlaceableTurrets/PlagueTurret.png new file mode 100644 index 0000000000..4e528a6d59 Binary files /dev/null and b/Items/Placeables/PlaceableTurrets/PlagueTurret.png differ diff --git a/Items/Placeables/PlaceableTurrets/WaterTurret.cs b/Items/Placeables/PlaceableTurrets/WaterTurret.cs new file mode 100644 index 0000000000..6eb12d47f0 --- /dev/null +++ b/Items/Placeables/PlaceableTurrets/WaterTurret.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using CalamityMod.CustomRecipes; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Plates; +using CalamityMod.Tiles.PlayerTurrets; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.PlaceableTurrets +{ + public class WaterTurret : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + + Item.value = Item.buyPrice(0, 5, 0, 0); + Item.rare = ItemRarityID.Orange; + } + + public override void ModifyTooltips(List tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 1); + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(14). + AddIngredient(20). + AddIngredient(10). + AddCondition(ArsenalTierGatedRecipe.ConstructRecipeCondition(1, out Func condition), condition). + AddTile(TileID.Anvils). + Register(); + } + } +} diff --git a/Items/Placeables/PlaceableTurrets/WaterTurret.png b/Items/Placeables/PlaceableTurrets/WaterTurret.png new file mode 100644 index 0000000000..1b99ad108b Binary files /dev/null and b/Items/Placeables/PlaceableTurrets/WaterTurret.png differ diff --git a/Items/Placeables/PolishedNavystoneBrick.cs b/Items/Placeables/PolishedNavystoneBrick.cs new file mode 100644 index 0000000000..d8866493c8 --- /dev/null +++ b/Items/Placeables/PolishedNavystoneBrick.cs @@ -0,0 +1,36 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class PolishedNavystoneBrick : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(2). + AddTile(TileID.Furnaces). + Register(); + } + } +} diff --git a/Items/Placeables/PolishedNavystoneBrick.png b/Items/Placeables/PolishedNavystoneBrick.png new file mode 100644 index 0000000000..7bb337525e Binary files /dev/null and b/Items/Placeables/PolishedNavystoneBrick.png differ diff --git a/Items/Placeables/PolypSand.cs b/Items/Placeables/PolypSand.cs new file mode 100644 index 0000000000..89c5bb8aa1 --- /dev/null +++ b/Items/Placeables/PolypSand.cs @@ -0,0 +1,28 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class PolypSand : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + } +} diff --git a/Items/Placeables/PolypSand.png b/Items/Placeables/PolypSand.png new file mode 100644 index 0000000000..a83aa99230 Binary files /dev/null and b/Items/Placeables/PolypSand.png differ diff --git a/Items/Placeables/RuneSand.cs b/Items/Placeables/RuneSand.cs new file mode 100644 index 0000000000..1dc5aebddb --- /dev/null +++ b/Items/Placeables/RuneSand.cs @@ -0,0 +1,29 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class RuneSand : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType(); + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + } +} diff --git a/Items/Placeables/RuneSand.png b/Items/Placeables/RuneSand.png new file mode 100644 index 0000000000..60335c3ac5 Binary files /dev/null and b/Items/Placeables/RuneSand.png differ diff --git a/Items/Placeables/Runestone.cs b/Items/Placeables/Runestone.cs new file mode 100644 index 0000000000..29e003cc66 --- /dev/null +++ b/Items/Placeables/Runestone.cs @@ -0,0 +1,33 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Walls; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class Runestone : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 200; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.rare = ItemRarityID.Blue; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + } +} diff --git a/Items/Placeables/Runestone.png b/Items/Placeables/Runestone.png new file mode 100644 index 0000000000..d0d3ec7b6e Binary files /dev/null and b/Items/Placeables/Runestone.png differ diff --git a/Items/Placeables/Shellstone.cs b/Items/Placeables/Shellstone.cs new file mode 100644 index 0000000000..f0e23fd388 --- /dev/null +++ b/Items/Placeables/Shellstone.cs @@ -0,0 +1,28 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class Shellstone : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + } +} diff --git a/Items/Placeables/Shellstone.png b/Items/Placeables/Shellstone.png new file mode 100644 index 0000000000..12c46ba411 Binary files /dev/null and b/Items/Placeables/Shellstone.png differ diff --git a/Items/Placeables/ShellstoneSlab.cs b/Items/Placeables/ShellstoneSlab.cs new file mode 100644 index 0000000000..4ddac14904 --- /dev/null +++ b/Items/Placeables/ShellstoneSlab.cs @@ -0,0 +1,41 @@ +using CalamityMod.Items.Placeables.Walls; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class ShellstoneSlab : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.HeavyWorkBench). + Register(); + CreateRecipe(). + AddIngredient(4). + AddTile(TileID.WorkBenches). + Register(); + } + } +} diff --git a/Items/Placeables/ShellstoneSlab.png b/Items/Placeables/ShellstoneSlab.png new file mode 100644 index 0000000000..de0ea708a5 Binary files /dev/null and b/Items/Placeables/ShellstoneSlab.png differ diff --git a/Items/Placeables/VolcanicSand.cs b/Items/Placeables/VolcanicSand.cs new file mode 100644 index 0000000000..7f79888f53 --- /dev/null +++ b/Items/Placeables/VolcanicSand.cs @@ -0,0 +1,28 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class VolcanicSand : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + } +} diff --git a/Items/Placeables/VolcanicSand.png b/Items/Placeables/VolcanicSand.png new file mode 100644 index 0000000000..5cdd030ddb Binary files /dev/null and b/Items/Placeables/VolcanicSand.png differ diff --git a/Items/Placeables/Walls/DriftwoodWall.cs b/Items/Placeables/Walls/DriftwoodWall.cs new file mode 100644 index 0000000000..61d8eaada7 --- /dev/null +++ b/Items/Placeables/Walls/DriftwoodWall.cs @@ -0,0 +1,37 @@ +using Terraria.ModLoader; +using WallTiles = CalamityMod.Walls; +using Terraria.ID; + +namespace CalamityMod.Items.Placeables.Walls +{ + public class DriftwoodWall : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 400; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 7; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createWall = ModContent.WallType(); + } + + public override void AddRecipes() + { + CreateRecipe(4). + AddIngredient(). + AddTile(TileID.WorkBenches). + Register(); + } + } +} diff --git a/Items/Placeables/Walls/DriftwoodWall.png b/Items/Placeables/Walls/DriftwoodWall.png new file mode 100644 index 0000000000..27ae1c07a6 Binary files /dev/null and b/Items/Placeables/Walls/DriftwoodWall.png differ diff --git a/Items/Placeables/Walls/ShellstoneSlabWall.cs b/Items/Placeables/Walls/ShellstoneSlabWall.cs new file mode 100644 index 0000000000..2cfe2a0d1c --- /dev/null +++ b/Items/Placeables/Walls/ShellstoneSlabWall.cs @@ -0,0 +1,37 @@ +using Terraria.ModLoader; +using WallTiles = CalamityMod.Walls; +using Terraria.ID; + +namespace CalamityMod.Items.Placeables.Walls +{ + public class ShellstoneSlabWall : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 400; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 7; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createWall = ModContent.WallType(); + } + + public override void AddRecipes() + { + CreateRecipe(4). + AddIngredient(). + AddTile(TileID.WorkBenches). + Register(); + } + } +} diff --git a/Items/Placeables/Walls/ShellstoneSlabWall.png b/Items/Placeables/Walls/ShellstoneSlabWall.png new file mode 100644 index 0000000000..ceb19599d8 Binary files /dev/null and b/Items/Placeables/Walls/ShellstoneSlabWall.png differ diff --git a/Items/Placeables/Walls/ShellstoneWall.cs b/Items/Placeables/Walls/ShellstoneWall.cs new file mode 100644 index 0000000000..aa28237ecd --- /dev/null +++ b/Items/Placeables/Walls/ShellstoneWall.cs @@ -0,0 +1,29 @@ +using Terraria.ModLoader; +using WallTiles = CalamityMod.Walls; +using Terraria.ID; + +namespace CalamityMod.Items.Placeables.Walls +{ + public class ShellstoneWall : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 400; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 7; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createWall = ModContent.WallType(); + } + } +} diff --git a/Items/Placeables/Walls/ShellstoneWall.png b/Items/Placeables/Walls/ShellstoneWall.png new file mode 100644 index 0000000000..652e1d0e20 Binary files /dev/null and b/Items/Placeables/Walls/ShellstoneWall.png differ diff --git a/Items/Placeables/Walls/WulfrumPlatingWall.cs b/Items/Placeables/Walls/WulfrumPlatingWall.cs new file mode 100644 index 0000000000..5345aca21f --- /dev/null +++ b/Items/Placeables/Walls/WulfrumPlatingWall.cs @@ -0,0 +1,38 @@ +using CalamityMod.Items.Placeables.FurnitureWulfrum; +using Terraria.ID; +using Terraria.ModLoader; +using WallTiles = CalamityMod.Walls; + +namespace CalamityMod.Items.Placeables.Walls +{ + public class WulfrumPlatingWall : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 400; + } + + public override void SetDefaults() + { + Item.width = 32; + Item.height = 32; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 7; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createWall = ModContent.WallType(); + } + + public override void AddRecipes() + { + CreateRecipe(4). + AddIngredient(). + AddTile(TileID.WorkBenches). + Register(); + } + } +} diff --git a/Items/Placeables/Walls/WulfrumPlatingWall.png b/Items/Placeables/Walls/WulfrumPlatingWall.png new file mode 100644 index 0000000000..22d0216af5 Binary files /dev/null and b/Items/Placeables/Walls/WulfrumPlatingWall.png differ diff --git a/Items/Placeables/WhitePearlPile.cs b/Items/Placeables/WhitePearlPile.cs new file mode 100644 index 0000000000..2c771bf04d --- /dev/null +++ b/Items/Placeables/WhitePearlPile.cs @@ -0,0 +1,37 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class WhitePearlPile : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.rare = ItemRarityID.Blue; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(4). + AddIngredient(ItemID.WhitePearl). + AddTile(TileID.HeavyWorkBench). + Register(); + } + } +} diff --git a/Items/Placeables/WhitePearlPile.png b/Items/Placeables/WhitePearlPile.png new file mode 100644 index 0000000000..3a896ab3da Binary files /dev/null and b/Items/Placeables/WhitePearlPile.png differ diff --git a/Items/Placeables/YellowCoral.cs b/Items/Placeables/YellowCoral.cs new file mode 100644 index 0000000000..410cc62fe5 --- /dev/null +++ b/Items/Placeables/YellowCoral.cs @@ -0,0 +1,37 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class YellowCoral : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.rare = ItemRarityID.Blue; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + //public override void AddRecipes() + //{ + // CreateRecipe(4). + // AddIngredient(ItemID.PinkPearl). + // AddTile(TileID.HeavyWorkBench). + // Register(); + //} + } +} diff --git a/Items/Placeables/YellowCoral.png b/Items/Placeables/YellowCoral.png new file mode 100644 index 0000000000..0a9f3779aa Binary files /dev/null and b/Items/Placeables/YellowCoral.png differ diff --git a/Tiles/FurnitureExo/ExoWorkBenchGlow.png b/Tiles/FurnitureExo/ExoWorkBenchGlow.png new file mode 100644 index 0000000000..88acea1aa5 Binary files /dev/null and b/Tiles/FurnitureExo/ExoWorkBenchGlow.png differ diff --git a/Tiles/FurnitureExo/ExoWorkBenchTile.cs b/Tiles/FurnitureExo/ExoWorkBenchTile.cs new file mode 100644 index 0000000000..2640d3235b --- /dev/null +++ b/Tiles/FurnitureExo/ExoWorkBenchTile.cs @@ -0,0 +1,56 @@ +using CalamityMod.Items.Placeables.FurnitureExo; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureExo +{ + public class ExoWorkbenchTile : ModTile + { + public override void SetStaticDefaults() + { + this.SetUpWorkBench(true); + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Work Bench"); + AddMapEntry(new Color(71, 95, 114), name); + TileID.Sets.DisableSmartCursor[Type] = true; + AdjTiles = new int[] { TileID.WorkBenches }; + } + + 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, 107, 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; + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 16, ModContent.ItemType()); + } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + int xFrameOffset = Main.tile[i, j].TileFrameX; + int yFrameOffset = Main.tile[i, j].TileFrameY; + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureExo/ExoWorkbenchGlow").Value; + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.IsHalfBlock && trackTile.Slope == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.IsHalfBlock) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } + } +} diff --git a/Tiles/FurnitureExo/ExoWorkBenchTile.png b/Tiles/FurnitureExo/ExoWorkBenchTile.png new file mode 100644 index 0000000000..49012c5972 Binary files /dev/null and b/Tiles/FurnitureExo/ExoWorkBenchTile.png differ diff --git a/Tiles/FurnitureExo/ExoWorkBenchTileGlow.png b/Tiles/FurnitureExo/ExoWorkBenchTileGlow.png new file mode 100644 index 0000000000..88acea1aa5 Binary files /dev/null and b/Tiles/FurnitureExo/ExoWorkBenchTileGlow.png differ