diff --git a/Items/Placeables/Furniture/Paintings/AmidiasPainting.cs b/Items/Placeables/Furniture/Paintings/AmidiasPainting.cs new file mode 100644 index 0000000000..d0457c7b26 --- /dev/null +++ b/Items/Placeables/Furniture/Paintings/AmidiasPainting.cs @@ -0,0 +1,19 @@ +using CalamityMod.Tiles.Furniture.Paintings; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Furniture.Paintings +{ + public class AmidiasPainting : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.width = 52; + Item.height = 34; + Item.value = Item.sellPrice(silver: 40); + } + } +} diff --git a/Items/Placeables/Furniture/Paintings/AmidiasPainting.png b/Items/Placeables/Furniture/Paintings/AmidiasPainting.png new file mode 100644 index 0000000000..2d555e093f Binary files /dev/null and b/Items/Placeables/Furniture/Paintings/AmidiasPainting.png differ diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index f82d072a33..b98b629888 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -510,32 +510,6 @@ BabyGhostBellJar: { Tooltip: "" } -CalamityCanvas2023: { - DisplayName: Calamity Canvas 2023 - Tooltip: - ''' - when placed to open a UI which allows customizing the focus of the painting - to make the focus follow the cursor, again to set it - Arrow keys can also be used to manually adjust the focus point - The scroll wheel zooms the focus in and out - Hold Shift to hide the UI without closing it - 'Embrace chaos' - ''' -} - -CalamityCanvas2024: { - DisplayName: Calamity Canvas 2024 - Tooltip: - ''' - when placed to open a UI which allows customizing the focus of the painting - to make the focus follow the cursor, again to set it - Arrow keys can also be used to manually adjust the focus point - The scroll wheel zooms the focus in and out - Hold Shift to hide the UI without closing it - 'Embrace havoc' - ''' -} - AquaticScourgeRelic: { DisplayName: Aquatic Scourge Relic Tooltip: A glimpse into what could have been... @@ -771,16 +745,6 @@ CrimsonEffigy: { ''' } -ThankYouPainting: { - DisplayName: Thank You - Tooltip: - ''' - Thanks to the entire team, everyone who supported, and those who all play the mod and keep it alive! - The confines of this painting is not enough to fit the entire team - Hold Shift to see a list of past and current developers - ''' -} - EffigyOfDecay: { DisplayName: Effigy of Decay Tooltip: @@ -901,6 +865,51 @@ NavyPrismTorch: { Tooltip: Can be placed in water } +AmidiasPainting: { + DisplayName: Sea King's Release + Tooltip: + ''' + 'O. Rios' + 'September-October!' + ''' +} + +CalamityCanvas2023: { + DisplayName: Calamity Canvas 2023 + Tooltip: + ''' + when placed to open a UI which allows customizing the focus of the painting + to make the focus follow the cursor, again to set it + Arrow keys can also be used to manually adjust the focus point + The scroll wheel zooms the focus in and out + Hold Shift to hide the UI without closing it + 'Embrace chaos' + ''' +} + +CalamityCanvas2024: { + DisplayName: Calamity Canvas 2024 + Tooltip: + ''' + when placed to open a UI which allows customizing the focus of the painting + to make the focus follow the cursor, again to set it + Arrow keys can also be used to manually adjust the focus point + The scroll wheel zooms the focus in and out + Hold Shift to hide the UI without closing it + 'Embrace havoc' + ''' +} + +ThankYouPainting: { + DisplayName: Thank You + Tooltip: + ''' + Thanks to the entire team, everyone who supported, and those who all play the mod and keep it alive! + The confines of this painting is not enough to fit the entire team + Hold Shift to see a list of past and current developers + ''' +} + PiggyCage: { DisplayName: Piggy Cage Tooltip: "" diff --git a/Tiles/Furniture/Paintings/AmidiasPaintingTile.cs b/Tiles/Furniture/Paintings/AmidiasPaintingTile.cs new file mode 100644 index 0000000000..cd203d22fe --- /dev/null +++ b/Tiles/Furniture/Paintings/AmidiasPaintingTile.cs @@ -0,0 +1,34 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.Localization; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles.Furniture.Paintings +{ + public class AmidiasPaintingTile : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileLavaDeath[Type] = true; + Main.tileSpelunker[Type] = true; + Main.tileWaterDeath[Type] = false; + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3Wall); + TileObjectData.newTile.Width = 6; + TileObjectData.newTile.Height = 4; + TileObjectData.newTile.Origin = new Point16(2, 2); + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; + TileObjectData.newTile.LavaDeath = true; + TileObjectData.addTile(Type); + + TileID.Sets.DisableSmartCursor[Type] = true; + TileID.Sets.FramesOnKillWall[Type] = true; + TileID.Sets.DisableSmartCursor[Type] = true; + DustType = DustID.WoodFurniture; + AddMapEntry(new Color(99, 50, 30), Language.GetText("MapObject.Painting")); + } + } +} diff --git a/Tiles/Furniture/Paintings/AmidiasPaintingTile.png b/Tiles/Furniture/Paintings/AmidiasPaintingTile.png new file mode 100644 index 0000000000..b2f4c1b913 Binary files /dev/null and b/Tiles/Furniture/Paintings/AmidiasPaintingTile.png differ