diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs new file mode 100644 index 0000000000..16b6a35da9 --- /dev/null +++ b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs @@ -0,0 +1,221 @@ +using CalamityMod.Tiles.Furniture.DevPaintings; +using System.Collections.Generic; +using System.Linq; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using static Microsoft.Xna.Framework.Input.Keys; + +namespace CalamityMod.Items.Placeables.Furniture.DevPaintings +{ + public class ThankYouPainting : ModItem + { + public const int DropInt = 100; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Thank You"); + Tooltip.SetDefault("Thanks to the entire team, everyone who supported, and those who all play the mod and keep it alive!\n" + + "The confines of this painting is not enough to fit the entire team\n" + + "Hold SHIFT to see a list of past and current devs and CTRL to see past and current testers"); + SacrificeTotal = 1; + } + + public override void SetDefaults() + { + Item.width = 96; + Item.height = 64; + 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, 2, 0, 0);; + Item.rare = ItemRarityID.White; + Item.createTile = ModContent.TileType(); + Item.Calamity().donorItem = true; + } + + public override void ModifyTooltips(List tooltips) + { + if (!Main.keyState.IsKeyDown(LeftShift) && !Main.keyState.IsKeyDown(LeftControl)) + return; + + bool tester = false; + if (Main.keyState.IsKeyDown(LeftControl)) + tester = true; + + string tooltip = ""; + + if (!tester) + { + int namesPerLine = 5; + for (int i = 0; i < devList.Count; i++) + { + tooltip += devList[i]; + + if (i == devList.Count - 1) + break; + + if (i % namesPerLine == 0) + tooltip += "\n"; + else + tooltip += ", "; + } + } + else + { + int namesPerLine = 5; + for (int i = 0; i < testerList.Count; i++) + { + tooltip += testerList[i]; + + if (i == testerList.Count - 1) + break; + + if (i % namesPerLine == namesPerLine - 1) + tooltip += "\n"; + else + tooltip += ", "; + } + } + + TooltipLine line = tooltips.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2"); + if (line != null) + line.Text = tooltip; + } + + public IList devList = new List() + { + "Fabsol, the mod's founder and owner", // Fabsol gets a line to himself + "Ben-TK", + "Bravioli", + "CDMusic", + "Cobalion", + "Cooper", + "Daim", + "Dominic Karma", + "Enreden", + "GramOfSalt", + "IbanPlay", + "Inanis", + "Lilac", + "LordMetarex", + "MarieArk", + "Merkalto", + "Minecat", + "Mrrp", + "Nycro", + "Ozzatron", + "Piky", + "Phupperbat", + "Popo", + "RoverdriveX", + "Runefield", + "Skeletony", + "Sok", + "spooktacular", + "Tinymanx", + "Tomat", + "Uncle Danny", + "YuH", + + "Altalyra", + "ApidemDragon", + "Amadis", + "Aleksh", + "AstroKnight", + "Blockaroz", + "Boffin", + "DarkTiny", + "DM Dokuro", + "Earth", + "EchoDuck", + "ENNWAY", + "Frous", + "Gahtao", + "Gamagamer64", + "Graydee", + "Grox the Great", + "Huggles", + "JaceDaDorito", + "Jenosis", + "jontchua", + "Khaelis", + "KnightyKnight", + "L0st", + "Leviathan", + "MishiroUsui", + "Nao", + "Nincity", + "Niorin", + "Nitro", + "NyctoDarkMatter", + "PaleoStar", + "Pbtopacio", + "Phantasmal Deathray", + "Pinkie Poss", + "pixlgray", + "Poly", + "President Waluigi", + "Puff", + "Purple Necromancer", + "sentri", + "Shucks", + "Silver-Lord of Ash", + "SixteenInMono", + "Spoopyro", + "Svante", + "Terry N. Muse", + "Trivaxy", + "Vaikyia", + "Vladimier", + "Yuyutsu", + "Zach", + "Ziggums", + }; + + public IList testerList = new List() + { + "Afzofa", + "Altix", + "AquaSG", + "Atalya", + "Blast", + "CrabBar", + "Demik", + "Ein", + "Epsilon", + "Fargowilta", + "Ian-1KV", + "Leon", + "Lompl Allimath", + "Memes", + "Shayy", + "StipulateVenus", + "Storm2103", + "That Blasterd Basterd", + "TikiWiki", + "Uberransy", + "Spider Prov", + "Xyk", + + "Akeeli", + "Alphi", + "Cei", + "Chetto", + "Chill Dude", + "Doog", + "drh", + "Hectique", + "Neverglide", + "Sargassum", + "ThousandFields", + "Teragat", + "Yatagarasu", + }; + + } +} diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.png b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.png new file mode 100644 index 0000000000..87e86d9bcb Binary files /dev/null and b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.png differ diff --git a/Items/TreasureBags/AquaticScourgeBag.cs b/Items/TreasureBags/AquaticScourgeBag.cs index a9a1b865a4..4f9883e500 100644 --- a/Items/TreasureBags/AquaticScourgeBag.cs +++ b/Items/TreasureBags/AquaticScourgeBag.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.TreasureBags.MiscGrabBags; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; @@ -80,6 +81,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Fishing itemLoot.Add(ModContent.ItemType()); diff --git a/Items/TreasureBags/AstrumAureusBag.cs b/Items/TreasureBags/AstrumAureusBag.cs index 76c5018610..39967802eb 100644 --- a/Items/TreasureBags/AstrumAureusBag.cs +++ b/Items/TreasureBags/AstrumAureusBag.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.Mounts; using CalamityMod.Items.PermanentBoosters; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Potions; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; @@ -85,6 +86,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Other itemLoot.AddIf((info) => CalamityWorld.revenge && !info.player.Calamity().adrenalineBoostTwo, ModContent.ItemType()); diff --git a/Items/TreasureBags/AstrumDeusBag.cs b/Items/TreasureBags/AstrumDeusBag.cs index 72c63dc061..faf1e5cedf 100644 --- a/Items/TreasureBags/AstrumDeusBag.cs +++ b/Items/TreasureBags/AstrumDeusBag.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -83,6 +84,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/BrimstoneWaifuBag.cs b/Items/TreasureBags/BrimstoneWaifuBag.cs index 8f21cbe370..4f41e696ad 100644 --- a/Items/TreasureBags/BrimstoneWaifuBag.cs +++ b/Items/TreasureBags/BrimstoneWaifuBag.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.Mounts; using CalamityMod.Items.Pets; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -83,6 +84,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); itemLoot.AddIf(() => CalamityWorld.revenge, ModContent.ItemType()); } } diff --git a/Items/TreasureBags/CalamitasBag.cs b/Items/TreasureBags/CalamitasBag.cs index f1d90583fa..55b7db282c 100644 --- a/Items/TreasureBags/CalamitasBag.cs +++ b/Items/TreasureBags/CalamitasBag.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -80,6 +81,7 @@ namespace CalamityMod.Items.TreasureBags var calamityRobes = ItemDropRule.Common(ModContent.ItemType(), 10); calamityRobes.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); itemLoot.Add(calamityRobes); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/CeaselessVoidBag.cs b/Items/TreasureBags/CeaselessVoidBag.cs index c6eb4e064d..0e3f7aa390 100644 --- a/Items/TreasureBags/CeaselessVoidBag.cs +++ b/Items/TreasureBags/CeaselessVoidBag.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Summon; using CalamityMod.NPCs.CeaselessVoid; @@ -74,6 +75,7 @@ namespace CalamityMod.Items.TreasureBags ancientGodSlayer.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); ancientGodSlayer.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); itemLoot.Add(ancientGodSlayer); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/CrabulonBag.cs b/Items/TreasureBags/CrabulonBag.cs index 6ce0438ca0..4c7d8285dc 100644 --- a/Items/TreasureBags/CrabulonBag.cs +++ b/Items/TreasureBags/CrabulonBag.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.PermanentBoosters; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -78,6 +79,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Other itemLoot.AddIf((info) => CalamityWorld.revenge && !info.player.Calamity().rageBoostOne, ModContent.ItemType()); diff --git a/Items/TreasureBags/CryogenBag.cs b/Items/TreasureBags/CryogenBag.cs index 4f3ca71230..10b8ee4134 100644 --- a/Items/TreasureBags/CryogenBag.cs +++ b/Items/TreasureBags/CryogenBag.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Accessories.Wings; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -79,6 +80,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/DesertScourgeBag.cs b/Items/TreasureBags/DesertScourgeBag.cs index 69d27571e7..7740a3d122 100644 --- a/Items/TreasureBags/DesertScourgeBag.cs +++ b/Items/TreasureBags/DesertScourgeBag.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.TreasureBags.MiscGrabBags; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; @@ -83,6 +84,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Fishing itemLoot.Add(ModContent.ItemType()); diff --git a/Items/TreasureBags/DevourerofGodsBag.cs b/Items/TreasureBags/DevourerofGodsBag.cs index ca082dbb66..de11cbbbc7 100644 --- a/Items/TreasureBags/DevourerofGodsBag.cs +++ b/Items/TreasureBags/DevourerofGodsBag.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.FurnitureCosmilite; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; @@ -93,6 +94,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); itemLoot.AddIf((info) => CalamityWorld.death && info.player.difficulty == 2, ModContent.ItemType()); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/DraedonBag.cs b/Items/TreasureBags/DraedonBag.cs index 3c986ed815..56da1a01ae 100644 --- a/Items/TreasureBags/DraedonBag.cs +++ b/Items/TreasureBags/DraedonBag.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.Mounts; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Items.Weapons.Rogue; @@ -93,6 +94,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity (Draedon Mask) itemLoot.Add(ModContent.ItemType(), maskFraction); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/DragonfollyBag.cs b/Items/TreasureBags/DragonfollyBag.cs index d140c417c7..ee1b829168 100644 --- a/Items/TreasureBags/DragonfollyBag.cs +++ b/Items/TreasureBags/DragonfollyBag.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.Mounts; using CalamityMod.Items.PermanentBoosters; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -78,6 +79,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Other itemLoot.AddIf((info) => CalamityWorld.revenge && !info.player.Calamity().rageBoostThree, ModContent.ItemType()); diff --git a/Items/TreasureBags/HiveMindBag.cs b/Items/TreasureBags/HiveMindBag.cs index 69ea121467..a1c7ce0339 100644 --- a/Items/TreasureBags/HiveMindBag.cs +++ b/Items/TreasureBags/HiveMindBag.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -84,6 +85,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); itemLoot.Add(ModContent.ItemType(), 10); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/LeviathanBag.cs b/Items/TreasureBags/LeviathanBag.cs index 41a10d57d5..ce52f8f2cd 100644 --- a/Items/TreasureBags/LeviathanBag.cs +++ b/Items/TreasureBags/LeviathanBag.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -81,6 +82,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); itemLoot.Add(ModContent.ItemType(), 7); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Fishing itemLoot.Add(ItemID.HotlineFishingHook, 10); diff --git a/Items/TreasureBags/OldDukeBag.cs b/Items/TreasureBags/OldDukeBag.cs index 37e73160b0..9de17755d5 100644 --- a/Items/TreasureBags/OldDukeBag.cs +++ b/Items/TreasureBags/OldDukeBag.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -79,6 +80,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/PerforatorBag.cs b/Items/TreasureBags/PerforatorBag.cs index 1c0ba8898f..ee65911c29 100644 --- a/Items/TreasureBags/PerforatorBag.cs +++ b/Items/TreasureBags/PerforatorBag.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -85,7 +86,8 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); - itemLoot.Add(ModContent.ItemType(), 10);; + itemLoot.Add(ModContent.ItemType(), 10); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/PlaguebringerGoliathBag.cs b/Items/TreasureBags/PlaguebringerGoliathBag.cs index 4609d9e264..0964237e2b 100644 --- a/Items/TreasureBags/PlaguebringerGoliathBag.cs +++ b/Items/TreasureBags/PlaguebringerGoliathBag.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -87,6 +88,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); itemLoot.Add(ModContent.ItemType(), 10); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/PolterghastBag.cs b/Items/TreasureBags/PolterghastBag.cs index 06a74a4d8f..e391fc46f5 100644 --- a/Items/TreasureBags/PolterghastBag.cs +++ b/Items/TreasureBags/PolterghastBag.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.PermanentBoosters; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -87,6 +88,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/ProvidenceBag.cs b/Items/TreasureBags/ProvidenceBag.cs index 3499918044..6fdeb78976 100644 --- a/Items/TreasureBags/ProvidenceBag.cs +++ b/Items/TreasureBags/ProvidenceBag.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -80,6 +81,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/RavagerBag.cs b/Items/TreasureBags/RavagerBag.cs index 0a69e96dcb..6490c903ff 100644 --- a/Items/TreasureBags/RavagerBag.cs +++ b/Items/TreasureBags/RavagerBag.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.PermanentBoosters; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.TreasureBags.MiscGrabBags; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; @@ -86,6 +87,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/SignusBag.cs b/Items/TreasureBags/SignusBag.cs index 736719bb28..e37c75289b 100644 --- a/Items/TreasureBags/SignusBag.cs +++ b/Items/TreasureBags/SignusBag.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Items.Weapons.Summon; using CalamityMod.NPCs.Signus; @@ -74,6 +75,7 @@ namespace CalamityMod.Items.TreasureBags ancientGodSlayer.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); ancientGodSlayer.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); itemLoot.Add(ancientGodSlayer); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/SlimeGodBag.cs b/Items/TreasureBags/SlimeGodBag.cs index b397d3ce5d..ffb1a059f2 100644 --- a/Items/TreasureBags/SlimeGodBag.cs +++ b/Items/TreasureBags/SlimeGodBag.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.PermanentBoosters; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Items.Weapons.Summon; @@ -79,6 +80,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ItemDropRule.OneFromOptions(7, ModContent.ItemType(), ModContent.ItemType())); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Other itemLoot.AddIf((info) => CalamityWorld.revenge && !info.player.Calamity().adrenalineBoostOne, ModContent.ItemType()); diff --git a/Items/TreasureBags/StormWeaverBag.cs b/Items/TreasureBags/StormWeaverBag.cs index 46f4af0a2d..4360ebda88 100644 --- a/Items/TreasureBags/StormWeaverBag.cs +++ b/Items/TreasureBags/StormWeaverBag.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.NPCs.StormWeaver; @@ -76,6 +77,7 @@ namespace CalamityMod.Items.TreasureBags ancientGodSlayer.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); itemLoot.Add(ancientGodSlayer); itemLoot.Add(ModContent.ItemType(), 8); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/SupremeCalamitasCoffer.cs b/Items/TreasureBags/SupremeCalamitasCoffer.cs index 484b095bc1..10b61598e1 100644 --- a/Items/TreasureBags/SupremeCalamitasCoffer.cs +++ b/Items/TreasureBags/SupremeCalamitasCoffer.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -85,6 +86,7 @@ namespace CalamityMod.Items.TreasureBags scalVanitySet.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); itemLoot.Add(scalVanitySet); itemLoot.Add(ModContent.ItemType()); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/Items/TreasureBags/YharonBag.cs b/Items/TreasureBags/YharonBag.cs index d3f20dd766..87577d73c4 100644 --- a/Items/TreasureBags/YharonBag.cs +++ b/Items/TreasureBags/YharonBag.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Accessories.Wings; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -87,6 +88,7 @@ namespace CalamityMod.Items.TreasureBags itemLoot.Add(ModContent.ItemType(), 10); itemLoot.Add(ModContent.ItemType(), 10); itemLoot.AddIf(() => CalamityWorld.revenge, ModContent.ItemType()); + itemLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } } diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index c0d4bab62e..cf8d8d720b 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -13,6 +13,7 @@ using CalamityMod.Items.Pets; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Furniture; using CalamityMod.Items.Placeables.Furniture.CraftingStations; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Placeables.FurnitureCosmilite; using CalamityMod.Items.Potions; @@ -374,7 +375,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("DesertScourge", out float order); List segments = new List() { NPCType(), NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Desert Biome"; string despawn = CalamityUtils.ColorMessage("The scourge of the desert delved back into the sand.", new Color(0xEE, 0xE8, 0xAA)); Action portrait = (SpriteBatch sb, Rectangle rect, Color color) => { @@ -400,7 +401,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Crabulon", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Mushroom Biome"; string despawn = CalamityUtils.ColorMessage("The mycleium crab has lost interest.", new Color(0x64, 0x95, 0xED)); AddBoss(bossChecklist, calamity, "Crabulon", order, type, DownedCrabulon, summon, collection, instructions, despawn, () => true); @@ -411,7 +412,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("HiveMind", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Kill a Cyst in the Corruption or use a [i:{summon}] in the Corruption"; string despawn = CalamityUtils.ColorMessage("The corrupted colony began searching for a new breeding ground.", new Color(0x94, 0x00, 0xD3)); string bossHeadTex = "CalamityMod/NPCs/HiveMind/HiveMindP2_Head_Boss"; @@ -423,7 +424,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Perforators", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Kill a Cyst in the Crimson or use a [i:{summon}] in the Crimson"; string despawn = CalamityUtils.ColorMessage("The parasitic hive began searching for a new host.", new Color(0xDC, 0x14, 0x3C)); AddBoss(bossChecklist, calamity, "The Perforators", order, type, DownedPerfs, summon, collection, instructions, despawn, () => true); @@ -434,7 +435,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("SlimeGod", out float order); List bosses = new List() { NPCType(), NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use an [i:{summon}]"; string despawn = CalamityUtils.ColorMessage("The gelatinous monstrosity achieved vengeance for its brethren.", new Color(0xBA, 0x55, 0x33)); AddBoss(bossChecklist, calamity, "Slime God", order, bosses, DownedSlimeGod, summon, collection, instructions, despawn, () => true); @@ -445,7 +446,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Cryogen", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Snow Biome"; string despawn = CalamityUtils.ColorMessage("Cryogen drifts away, carried on a freezing wind.", new Color(0x00, 0xFF, 0xFF)); string bossLogTex = "CalamityMod/NPCs/Cryogen/Cryogen_Phase1_Head_Boss"; @@ -457,7 +458,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("AquaticScourge", out float order); List segments = new List() { NPCType(), NPCType(), NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Sulphuric Sea or wait for it to spawn in the Sulphuric Sea"; string despawn = CalamityUtils.ColorMessage("The Aquatic Scourge swam back into the open ocean.", new Color(0xF0, 0xE6, 0x8C)); string bossLogTex = "CalamityMod/NPCs/AquaticScourge/AquaticScourgeHead_Head_Boss"; @@ -474,7 +475,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("BrimstoneElemental", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Brimstone Crag"; string despawn = CalamityUtils.ColorMessage("Brimstone Elemental withdraws to the ruins of her shrine.", new Color(0xDC, 0x14, 0x3C)); AddBoss(bossChecklist, calamity, "Brimstone Elemental", order, type, DownedBrimstoneElemental, summon, collection, instructions, despawn, () => true); @@ -485,7 +486,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Calamitas", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use an [i:{summon}] at Night"; string despawn = CalamityUtils.ColorMessage("If you wanted a fight, you should've came more prepared.", new Color(0xFF, 0xA5, 0x00)); //Func available = () => !DownedBossSystem.downedCalamitas; @@ -508,7 +509,7 @@ namespace CalamityMod { BossDifficulty.TryGetValue("Leviathan", out float order); List bosses = new List() { NPCType(), NPCType() }; - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = "By killing an unknown entity in the Ocean Biome"; string despawn = CalamityUtils.ColorMessage("The aquatic entities sink back beneath the ocean depths.", new Color(0x7F, 0xFF, 0xD4)); @@ -525,7 +526,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("AstrumAureus", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use an [i:{summon}] at Night in the Astral Biome"; string despawn = CalamityUtils.ColorMessage("Astrum Aureus’ program has been executed. Initiate recall.", new Color(0xFF, 0xD7, 0x00)); string bossLogTex = "CalamityMod/NPCs/AstrumAureus/AstrumAureus_Head_Boss"; @@ -537,7 +538,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("PlaguebringerGoliath", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use an [i:{summon}] in the Jungle Biome"; string despawn = CalamityUtils.ColorMessage("HOSTILE SPECIMENS TERMINATED. INITIATE RECALL TO HOME BASE.", new Color(0x00, 0xFF, 0x00)); string bossLogTex = "CalamityMod/NPCs/PlaguebringerGoliath/PlaguebringerGoliath_Head_Boss"; @@ -555,7 +556,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Ravager", out float order); List segments = new List() { NPCType(), NPCType(), NPCType(), NPCType(), NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}]"; string despawn = CalamityUtils.ColorMessage("The automaton of misshapen victims went looking for the true perpetrator.", new Color(0xB2, 0x22, 0x22)); string bossLogTex = "CalamityMod/NPCs/Ravager/RavagerBody_Head_Boss"; @@ -576,7 +577,7 @@ namespace CalamityMod int summon2 = ItemType(); int altar = ItemType(); List summons = new List() { summon1, summon2 }; - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon1}] or [i:{summon2}] as offering at an [i:{altar}]"; string despawn = CalamityUtils.ColorMessage("The infected deity retreats to the heavens.", new Color(0xFF, 0xD7, 0x00)); string bossLogTex = "CalamityMod/NPCs/AstrumDeus/AstrumDeusHead_Head_Boss"; @@ -595,7 +596,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("ProfanedGuardians", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Hallow or Underworld Biomes"; string despawn = CalamityUtils.ColorMessage("The guardians must protect their goddess at all costs.", new Color(0xFF, 0xA5, 0x00)); string bossLogTex = "CalamityMod/NPCs/ProfanedGuardians/ProfanedGuardianCommander_Head_Boss"; @@ -613,7 +614,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Dragonfolly", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use [i:{summon}] in the Jungle Biome"; string despawn = CalamityUtils.ColorMessage("The failed experiment returns to its reproductive routine.", new Color(0xFF, 0xD7, 0x00)); AddBoss(bossChecklist, calamity, "Dragonfolly", order, type, DownedBirb, summon, collection, instructions, despawn, () => true); @@ -624,7 +625,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Providence", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use [i:{summon}] in the Hallow or Underworld Biomes"; string despawn = CalamityUtils.ColorMessage("The Profaned Goddess vanishes in a burning blaze.", new Color(0xFF, 0xA5, 0x00)); string bossLogTex = "CalamityMod/NPCs/Providence/Providence_Head_Boss"; @@ -642,7 +643,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("CeaselessVoid", out float order); List bosses = new List() { NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Dungeon"; string despawn = CalamityUtils.ColorMessage("The rift in time and space has moved away from your reach.", new Color(0x4B, 0x00, 0x82)); AddBoss(bossChecklist, calamity, "Ceaseless Void", order, bosses, DownedCeaselessVoid, summon, collection, instructions, despawn, () => true); @@ -653,7 +654,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("StormWeaver", out float order); List segments = new List() { NPCType(), NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in Space"; string despawn = CalamityUtils.ColorMessage("Storm Weaver hid itself once again within the stormfront.", new Color(0xEE, 0x82, 0xEE)); string bossLogTex = "CalamityMod/NPCs/StormWeaver/StormWeaverHead_Head_Boss"; @@ -670,7 +671,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Signus", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Underworld"; string despawn = CalamityUtils.ColorMessage("The Devourer's assassin has finished its easy task.", new Color(0xBA, 0x55, 0xD3)); AddBoss(bossChecklist, calamity, "Signus", order, type, DownedSignus, summon, collection, instructions, despawn, () => true); @@ -681,7 +682,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Polterghast", out float order); List bosses = new List() { NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Kill 30 phantom spirits or use a [i:{summon}] in the Dungeon"; string despawn = CalamityUtils.ColorMessage("The volatile spirits disperse throughout the depths of the dungeon.", new Color(0xB0, 0xE0, 0xE6)); AddBoss(bossChecklist, calamity, "Polterghast", order, bosses, DownedPolterghast, summon, collection, instructions, despawn, () => true); @@ -692,7 +693,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("OldDuke", out float order); List bosses = new List() { NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Defeat the Acid Rain event post-Polterghast or fish using a [i:{summon}] in the Sulphurous Sea"; string despawn = CalamityUtils.ColorMessage("The old duke disappears amidst the acidic downpour.", new Color(0xF0, 0xE6, 0x8C)); AddBoss(bossChecklist, calamity, "Old Duke", order, bosses, DownedBoomerDuke, summon, collection, instructions, despawn, () => true); @@ -703,7 +704,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("DevourerOfGods", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}]"; string despawn = CalamityUtils.ColorMessage("The Devourer of Gods has slain everyone and feasted on their essence.", new Color(0x00, 0xFF, 0xFF)); string bossHeadTex = "CalamityMod/NPCs/DevourerofGods/DevourerofGodsHead_Head_Boss"; @@ -720,7 +721,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Yharon", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Jungle Biome"; string despawn = CalamityUtils.ColorMessage("Yharon found you too weak to stay near your gravestone.", new Color(0xFF, 0xA5, 0x00)); string bossLogTex = "CalamityMod/NPCs/Yharon/Yharon_Head_Boss"; @@ -734,7 +735,7 @@ namespace CalamityMod { BossDifficulty.TryGetValue("ExoMechs", out float order); List bosses = new List() { NPCType(), NPCType(), NPCType(), NPCType() }; - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = "By using a high-tech computer"; string despawn = CalamityUtils.ColorMessage("An imperfection after all... what a shame.", new Color(0x7F, 0xFF, 0xD4)); @@ -756,7 +757,7 @@ namespace CalamityMod int summon2 = ItemType(); int altar = ItemType(); List summons = new List() { summon1, summon2 }; - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use [i:{summon1}] or a [i:{summon2}] as offering at an [i:{altar}]"; string despawn = CalamityUtils.ColorMessage("Please don't waste my time.", new Color(0xFF, 0xA5, 0x00)); string bossHeadTex = "CalamityMod/NPCs/SupremeCalamitas/HoodedHeadIcon"; @@ -768,7 +769,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("AdultEidolonWyrm", out float order); int type = NPCType(); int summon = ItemID.RodofDiscord; - List collection = new List() { }; + List collection = new List() { ItemType() }; string instructions = $"While in the Abyss, use an item that inflicts Chaos State"; string despawn = CalamityUtils.ColorMessage("...", new Color(0x7F, 0xFF, 0xD4)); string bossLogTex = "CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead_Head_Boss"; @@ -842,85 +843,92 @@ namespace CalamityMod // King Slime AddLoot(bossChecklist, "KingSlime", new List() { ItemType() }, - new List() { ItemType() } + new List() { ItemType(), ItemType() } ); // Eye of Cthulhu AddLoot(bossChecklist, "EyeofCthulhu", new List() { ItemType(), ItemType() }, - new List() { ItemType() } + new List() { ItemType(), ItemType() } ); // Eater of Worlds AddLoot(bossChecklist, "EaterofWorldsHead", null, - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType() } ); // Brain of Cthulhu AddLoot(bossChecklist, "BrainofCthulhu", null, - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType() } ); // Queen Bee AddLoot(bossChecklist, "QueenBee", new List() { ItemType(), ItemID.Stinger, ItemType() }, - new List() { ItemType() } + new List() { ItemType(), ItemType() } ); // Skeletron AddLoot(bossChecklist, "SkeletronHead", null, - new List() { ItemType() } + new List() { ItemType(), ItemType() } ); // Wall of Flesh AddLoot(bossChecklist, "WallofFlesh", new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.CorruptionKey, ItemID.CrimsonKey }, - new List() { ItemType(), ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType(), ItemType() } ); // Queen Slime AddLoot(bossChecklist, "QueenSlime", - new List() { ItemID.HallowedKey } + new List() { ItemID.HallowedKey }, + new List() { ItemType() } ); // The Twins AddLoot(bossChecklist, "TheTwins", new List() { ItemType() }, - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType() } ); // The Destroyer AddLoot(bossChecklist, "TheDestroyer", - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType() } ); // Skeletron Prime AddLoot(bossChecklist, "SkeletronPrime", null, - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType() } ); // Plantera AddLoot(bossChecklist, "Plantera", new List() { ItemType(), ItemType(), ItemType(), ItemID.JungleKey }, - new List() { ItemType() } + new List() { ItemType(), ItemType() } ); AddSummons(bossChecklist, "Plantera", new List() { ItemType() }); // Golem AddLoot(bossChecklist, "Golem", new List() { ItemType(), ItemType() }, - new List() { ItemType() } + new List() { ItemType(), ItemType() } ); AddSummons(bossChecklist, "Golem", new List() { ItemType() }); + // Empress of Light + AddLoot(bossChecklist, "HallowBoss", + null, + new List() { ItemType() } + ); + // Duke Fishron AddLoot(bossChecklist, "DukeFishron", new List() { ItemType(), ItemType() }, - new List() { ItemType() } + new List() { ItemType(), ItemType() } ); // Betsy @@ -932,14 +940,14 @@ namespace CalamityMod // Lunatic Cultist AddLoot(bossChecklist, "CultistBoss", null, - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType() } ); AddSummons(bossChecklist, "CultistBoss", new List() { ItemType() }); // Moon Lord AddLoot(bossChecklist, "MoonLord", new List() { ItemType(), ItemType() }, - new List() { ItemType() } + new List() { ItemType(), ItemType() } ); } diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs index 2b9a93ef8e..a662bd849c 100644 --- a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs +++ b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs @@ -2,6 +2,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Potions; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; @@ -1394,6 +1395,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm npcLoot.Add(ModContent.ItemType()); npcLoot.Add(ModContent.ItemType()); npcLoot.Add(ModContent.ItemType(), 1, 80, 100); + npcLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); var postClone = npcLoot.DefineConditionalDropSet(() => DownedBossSystem.downedCalamitas); postClone.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType(), 1, 50, 108, 65, 135)); diff --git a/NPCs/AquaticScourge/AquaticScourgeHead.cs b/NPCs/AquaticScourge/AquaticScourgeHead.cs index 8235cd50d1..1bc0c5dce9 100644 --- a/NPCs/AquaticScourge/AquaticScourgeHead.cs +++ b/NPCs/AquaticScourge/AquaticScourgeHead.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.TreasureBags.MiscGrabBags; @@ -235,6 +236,7 @@ namespace CalamityMod.NPCs.AquaticScourge // Vanity normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Equipment normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType())); diff --git a/NPCs/AstrumAureus/AstrumAureus.cs b/NPCs/AstrumAureus/AstrumAureus.cs index 547fb78e9f..f2e1b8480e 100644 --- a/NPCs/AstrumAureus/AstrumAureus.cs +++ b/NPCs/AstrumAureus/AstrumAureus.cs @@ -6,6 +6,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Mounts; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.TreasureBags; @@ -348,6 +349,7 @@ namespace CalamityMod.NPCs.AstrumAureus // Vanity normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Equipment normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType())); diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index 5fde816d18..0715b663be 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -8,6 +8,7 @@ using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Melee; @@ -308,8 +309,11 @@ namespace CalamityMod.NPCs.AstrumDeus }; normalOnly.Add(DropHelper.CalamityStyle(DropHelper.NormalWeaponDropRateFraction, weapons)); - // Equipment + // Vanity normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); + + // Equipment normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType())); normalOnly.Add(ModContent.ItemType(), 5); diff --git a/NPCs/BrimstoneElemental/BrimstoneElemental.cs b/NPCs/BrimstoneElemental/BrimstoneElemental.cs index d0ac4ba5eb..ce49054006 100644 --- a/NPCs/BrimstoneElemental/BrimstoneElemental.cs +++ b/NPCs/BrimstoneElemental/BrimstoneElemental.cs @@ -8,6 +8,7 @@ using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Mounts; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Placeables.Pylons; using CalamityMod.Items.TreasureBags; @@ -203,6 +204,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental // Vanity normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } diff --git a/NPCs/Bumblebirb/Bumblefuck.cs b/NPCs/Bumblebirb/Bumblefuck.cs index efda3e49c4..f766567027 100644 --- a/NPCs/Bumblebirb/Bumblefuck.cs +++ b/NPCs/Bumblebirb/Bumblefuck.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Mounts; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.TreasureBags; @@ -433,6 +434,7 @@ namespace CalamityMod.NPCs.Bumblebirb // Vanity normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } npcLoot.Add(ModContent.ItemType(), 10); diff --git a/NPCs/Calamitas/CalamitasClone.cs b/NPCs/Calamitas/CalamitasClone.cs index 44bf01d600..130ba19283 100644 --- a/NPCs/Calamitas/CalamitasClone.cs +++ b/NPCs/Calamitas/CalamitasClone.cs @@ -6,6 +6,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; @@ -209,6 +210,7 @@ namespace CalamityMod.NPCs.Calamitas var calVanity = ItemDropRule.Common(ModContent.ItemType(), 10); calVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); normalOnly.Add(calVanity); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } npcLoot.Add(ModContent.ItemType(), 10); diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 1cc16570af..7620fc6bec 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1,29 +1,30 @@ -using System; -using System.Threading; -using CalamityMod.Events; +using CalamityMod.Events; using CalamityMod.Items; using CalamityMod.Items.Accessories; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.PermanentBoosters; using CalamityMod.Items.Pets; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Items.Weapons.Summon; +using CalamityMod.NPCs.AcidRain; using CalamityMod.NPCs.NormalNPCs; using CalamityMod.NPCs.TownNPCs; using CalamityMod.Tiles.Ores; using CalamityMod.World; using CalamityMod.World.Planets; using Microsoft.Xna.Framework; +using System; +using System.Threading; using Terraria; using Terraria.Audio; using Terraria.GameContent.ItemDropRules; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.NPCs.AcidRain; namespace CalamityMod.NPCs { @@ -801,6 +802,7 @@ namespace CalamityMod.NPCs // Would be in the bag otherwise npcLoot.AddNormalOnly(ModContent.ItemType(), 10); + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); // Master items drop in Revengeance rev.Add(ItemID.KingSlimeMasterTrophy); @@ -817,6 +819,7 @@ namespace CalamityMod.NPCs // Would be in the bag otherwise npcLoot.AddNormalOnly(ModContent.ItemType(), 10); npcLoot.AddNormalOnly(ModContent.ItemType(), 4); + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); // Master items drop in Revengeance rev.Add(ItemID.EyeofCthulhuMasterTrophy); @@ -832,6 +835,9 @@ namespace CalamityMod.NPCs EoWKill.Add(DropHelper.PerPlayer(ItemID.WormScarf)); npcLoot.AddNormalOnly(EoWKill); + // Would be in the bag otherwise + npcLoot.AddIf((info) => info.npc.boss, ModContent.ItemType(), ThankYouPainting.DropInt); + // Master items drop in Revengeance rev.AddIf((info) => info.npc.boss, ItemID.EaterofWorldsMasterTrophy); rev.AddIf((info) => info.npc.boss, ItemID.EaterOfWorldsPetItem, 4); @@ -853,6 +859,9 @@ namespace CalamityMod.NPCs // Expert+ drops are also available on Normal npcLoot.AddNormalOnly(DropHelper.PerPlayer(ItemID.BrainOfConfusion)); + // Would be in the bag otherwise + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); + // Master items drop in Revengeance rev.Add(ItemID.BrainofCthulhuMasterTrophy); rev.Add(ItemID.BrainOfCthulhuPetItem, 4); @@ -897,6 +906,9 @@ namespace CalamityMod.NPCs // Expert+ drops are also available on Normal npcLoot.AddNormalOnly(DropHelper.PerPlayer(ItemID.BoneHelm)); + // Would be in the bag otherwise + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); + // Master items drop in Revengeance rev.Add(ItemID.DeerclopsMasterTrophy); rev.Add(ItemID.DeerclopsPetItem, 4); @@ -920,6 +932,7 @@ namespace CalamityMod.NPCs // Would be in the bag otherwise npcLoot.AddNormalOnly(ModContent.ItemType(), 1, 30, 50); + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); // Queen Bee drops Stingers in Calamity npcLoot.Add(ItemID.Stinger, 1, 8, 12); @@ -948,6 +961,9 @@ namespace CalamityMod.NPCs // Expert+ drops are also available on Normal npcLoot.AddNormalOnly(DropHelper.PerPlayer(ItemID.BoneGlove)); + // Would be in the bag otherwise + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); + // Master items drop in Revengeance rev.Add(ItemID.SkeletronMasterTrophy); rev.Add(ItemID.SkeletronPetItem, 4); @@ -1024,6 +1040,9 @@ namespace CalamityMod.NPCs // However, Demon Heart does not work in Normal mode, so it's best to not drop it // npcLoot.AddNormalOnly(DropHelper.PerPlayer(ItemID.DemonHeart)); + // Would be in the bag otherwise + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); + // WoF drops Evil Keys npcLoot.Add(ItemID.CorruptionKey, 3); npcLoot.Add(ItemID.CrimsonKey, 3); @@ -1042,6 +1061,9 @@ namespace CalamityMod.NPCs npcLoot.AddNormalOnly(DropHelper.PerPlayer(ItemID.VolatileGelatin)); npcLoot.AddNormalOnly(ItemID.SoulofLight, 1, 15, 20); + // Would be in the bag otherwise + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); + // Queen Slime drops the Hallowed Key npcLoot.Add(ItemID.HallowedKey, 3); @@ -1061,6 +1083,9 @@ namespace CalamityMod.NPCs // Expert+ drops are also available on Normal npcLoot.AddNormalOnly(DropHelper.PerPlayer(ItemID.MechanicalWagonPiece)); + // Would be in the bag otherwise + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); + // Master items drop in Revengeance rev.Add(ItemID.DestroyerMasterTrophy); rev.Add(ItemID.DestroyerPetItem, 4); @@ -1097,6 +1122,9 @@ namespace CalamityMod.NPCs npcLoot.AddIf((info) => !Main.expertMode && IsLastTwinStanding(info), ItemID.MechanicalWheelPiece); npcLoot.AddIf((info) => !Main.expertMode && IsLastTwinStanding(info), ModContent.ItemType(), 10); + // Would be in the bag otherwise + npcLoot.AddIf((info) => !Main.expertMode && IsLastTwinStanding(info), ModContent.ItemType(), ThankYouPainting.DropInt); + // Master items drop in Revengeance rev.AddIf((info) => IsLastTwinStanding(info), ItemID.TwinsMasterTrophy); rev.AddIf((info) => IsLastTwinStanding(info), ItemID.TwinsPetItem, 4); @@ -1116,6 +1144,9 @@ namespace CalamityMod.NPCs // Expert+ drops are also available on Normal npcLoot.AddNormalOnly(DropHelper.PerPlayer(ItemID.MechanicalBatteryPiece)); + // Would be in the bag otherwise + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); + // Master items drop in Revengeance rev.Add(ItemID.SkeletronPrimeMasterTrophy); rev.Add(ItemID.SkeletronPrimePetItem, 4); @@ -1172,6 +1203,7 @@ namespace CalamityMod.NPCs npcLoot.AddNormalOnly(ModContent.ItemType(), 10); npcLoot.AddNormalOnly(ModContent.ItemType(), 10); npcLoot.AddNormalOnly(DropHelper.PerPlayer(ModContent.ItemType(), 1, 25, 30)); + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); // Plantera drops Jungle Key npcLoot.Add(ItemID.JungleKey, 3); @@ -1224,6 +1256,7 @@ namespace CalamityMod.NPCs // Would be in the bag otherwise normalOnly.Add(ModContent.ItemType(), 1, 5, 10); normalOnly.Add(ModContent.ItemType(), 10); + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); // If Golem has never been killed, provide a Picksaw to all players. LeadingConditionRule firstGolemKill = new(DropHelper.If(() => !NPC.downedGolemBoss)); @@ -1305,6 +1338,7 @@ namespace CalamityMod.NPCs // Would be in the bag otherwise npcLoot.AddNormalOnly(ModContent.ItemType(), 10); + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); // Master items drop in Revengeance rev.Add(ItemID.DukeFishronMasterTrophy); @@ -1352,6 +1386,9 @@ namespace CalamityMod.NPCs // Expert+ drops are also available on Normal npcLoot.AddNormalOnly(DropHelper.PerPlayer(ItemID.EmpressFlightBooster)); + // Would be in the bag otherwise + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); + // Master items drop in Revengeance rev.Add(ItemID.FairyQueenMasterTrophy); rev.Add(ItemID.FairyQueenPetItem, 4); @@ -1363,6 +1400,8 @@ namespace CalamityMod.NPCs rev.Add(ItemID.LunaticCultistMasterTrophy); rev.Add(ItemID.LunaticCultistPetItem, 4); + npcLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); + // Lore npcLoot.AddConditionalPerPlayer(() => !NPC.downedAncientCultist, ModContent.ItemType(), desc: DropHelper.FirstKillText); @@ -1407,6 +1446,7 @@ namespace CalamityMod.NPCs // Would be in the bag otherwise npcLoot.AddNormalOnly(DropHelper.PerPlayer(ModContent.ItemType())); + npcLoot.AddNormalOnly(ModContent.ItemType(), ThankYouPainting.DropInt); // Master items drop in Revengeance rev.Add(ItemID.MoonLordMasterTrophy); diff --git a/NPCs/CeaselessVoid/CeaselessVoid.cs b/NPCs/CeaselessVoid/CeaselessVoid.cs index c0e08bf8b3..a96795fc80 100644 --- a/NPCs/CeaselessVoid/CeaselessVoid.cs +++ b/NPCs/CeaselessVoid/CeaselessVoid.cs @@ -4,6 +4,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.TreasureBags; @@ -228,6 +229,7 @@ namespace CalamityMod.NPCs.CeaselessVoid godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); normalOnly.Add(godSlayerVanity); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } npcLoot.Add(ModContent.ItemType(), 10); diff --git a/NPCs/Crabulon/Crabulon.cs b/NPCs/Crabulon/Crabulon.cs index 1f9491ffa0..d2f162039e 100644 --- a/NPCs/Crabulon/Crabulon.cs +++ b/NPCs/Crabulon/Crabulon.cs @@ -4,6 +4,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; @@ -830,6 +831,7 @@ namespace CalamityMod.NPCs.Crabulon // Vanity normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } npcLoot.Add(ModContent.ItemType(), 10); diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index 004e5b4277..fdc4269593 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; @@ -1168,6 +1169,7 @@ namespace CalamityMod.NPCs.Cryogen // Vanity normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Materials normalOnly.Add(ModContent.ItemType(), 1, 4, 8); diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index e5d98bf9d1..6dc8f3f71c 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -4,6 +4,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.TreasureBags.MiscGrabBags; @@ -707,6 +708,7 @@ namespace CalamityMod.NPCs.DesertScourge // Vanity normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Materials normalOnly.Add(ItemID.Coral, 1, 25, 30); diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index 637ee05477..1e5fca38fa 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -8,6 +8,7 @@ using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Mounts; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Placeables.FurnitureCosmilite; using CalamityMod.Items.Potions; @@ -2389,6 +2390,7 @@ namespace CalamityMod.NPCs.DevourerofGods // Vanity normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Materials normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType(), 1, 25, 35)); diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index 5222e1a8b5..07653ac770 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Mounts; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.TreasureBags; @@ -1387,6 +1388,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares normalOnly.Add(ItemDropRule.ByCondition(DropHelper.If(AresLoot), ModContent.ItemType(), 7, chanceNumerator: 2)); normalOnly.Add(ItemDropRule.ByCondition(DropHelper.If(ApolloLoot), ModContent.ItemType(), 7, chanceNumerator: 2)); normalOnly.Add(ItemDropRule.ByCondition(DropHelper.If(ApolloLoot), ModContent.ItemType(), 7, chanceNumerator: 2)); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } } diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index 65634a7647..21d34a2b71 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; @@ -1161,6 +1162,7 @@ namespace CalamityMod.NPCs.HiveMind // Vanity normalOnly.Add(ModContent.ItemType(), 7); normalOnly.Add(ModContent.ItemType(), 10); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } npcLoot.Add(ModContent.ItemType(), 10); diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index 2cbc96174e..8f9f0cf04a 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; @@ -788,6 +789,7 @@ namespace CalamityMod.NPCs.Leviathan // Vanity normalOnly.Add(ModContent.ItemType(), 7); normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Equipment normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType())); diff --git a/NPCs/OldDuke/OldDuke.cs b/NPCs/OldDuke/OldDuke.cs index 482cb14763..b67e64aba4 100644 --- a/NPCs/OldDuke/OldDuke.cs +++ b/NPCs/OldDuke/OldDuke.cs @@ -4,6 +4,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.TreasureBags; @@ -442,6 +443,7 @@ namespace CalamityMod.NPCs.OldDuke // Vanity normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } npcLoot.Add(ModContent.ItemType(), 10); diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index 9707361803..264ca3e7b2 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -6,6 +6,7 @@ using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; @@ -536,6 +537,7 @@ namespace CalamityMod.NPCs.Perforator // Vanity normalOnly.Add(ModContent.ItemType(), 7); normalOnly.Add(ModContent.ItemType(), 10); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } npcLoot.Add(ModContent.ItemType(), 10); diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index b42c8ab37c..74fde73556 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -8,6 +8,7 @@ using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; @@ -1274,6 +1275,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath // Vanity normalOnly.Add(ModContent.ItemType(), 7); normalOnly.Add(ModContent.ItemType(), 10); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } npcLoot.Add(ModContent.ItemType(), 10); diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index f4f55cfaa1..bc90e19d4e 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.TreasureBags; @@ -1049,6 +1050,7 @@ namespace CalamityMod.NPCs.Polterghast // Vanity normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } npcLoot.Add(ModContent.ItemType(), 10); diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs b/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs index da7ada0293..6d01bf2743 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs @@ -17,6 +17,7 @@ using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Events; using Terraria.Audio; @@ -511,6 +512,9 @@ namespace CalamityMod.NPCs.ProfanedGuardians npcLoot.Add(ModContent.ItemType(), 10); npcLoot.Add(ModContent.ItemType()); + // Furniture + npcLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); + // Relic npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index 122ad8c14f..ae9490874b 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -8,6 +8,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Dyes; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.SummonItems; @@ -1598,6 +1599,7 @@ namespace CalamityMod.NPCs.Providence // Vanity normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } npcLoot.Add(ModContent.ItemType(), 10); diff --git a/NPCs/Ravager/RavagerBody.cs b/NPCs/Ravager/RavagerBody.cs index 438c5f7ee8..d1a4866345 100644 --- a/NPCs/Ravager/RavagerBody.cs +++ b/NPCs/Ravager/RavagerBody.cs @@ -4,6 +4,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.TreasureBags.MiscGrabBags; @@ -900,6 +901,7 @@ namespace CalamityMod.NPCs.Ravager // Vanity normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } npcLoot.Add(ModContent.ItemType(), 10); diff --git a/NPCs/Signus/Signus.cs b/NPCs/Signus/Signus.cs index b5e1448c26..972dbcc5cf 100644 --- a/NPCs/Signus/Signus.cs +++ b/NPCs/Signus/Signus.cs @@ -6,6 +6,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.TreasureBags; @@ -801,6 +802,7 @@ namespace CalamityMod.NPCs.Signus godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); normalOnly.Add(godSlayerVanity); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } npcLoot.Add(ModContent.ItemType(), 10); diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index 4acce04613..7ba8e581a0 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.TreasureBags; @@ -612,6 +613,7 @@ namespace CalamityMod.NPCs.SlimeGod // Vanity normalOnly.Add(ModContent.ItemType(), 7); normalOnly.Add(ModContent.ItemType(), 7); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Equipment normalOnly.Add(ModContent.ItemType()); diff --git a/NPCs/StormWeaver/StormWeaverHead.cs b/NPCs/StormWeaver/StormWeaverHead.cs index e98e304529..309356401c 100644 --- a/NPCs/StormWeaver/StormWeaverHead.cs +++ b/NPCs/StormWeaver/StormWeaverHead.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.TreasureBags; @@ -968,6 +969,7 @@ namespace CalamityMod.NPCs.StormWeaver godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); normalOnly.Add(godSlayerVanity); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } npcLoot.Add(ModContent.ItemType(), 10); diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index e38e6972e3..358c88f98d 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -7,6 +7,7 @@ using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.TreasureBags; @@ -2592,6 +2593,9 @@ namespace CalamityMod.NPCs.SupremeCalamitas scalVanitySet.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); scalVanitySet.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); normalOnly.Add(scalVanitySet); + + // Furniture + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } // One of the only Death-exclusive drops in the mod, as requested by Leviathan: Levi pet and Gael's Greatsword diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 43a625df79..05dc1d5ead 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -7,6 +7,7 @@ using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; using CalamityMod.Items.Placeables.Furniture.BossRelics; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.TreasureBags; @@ -2828,6 +2829,7 @@ namespace CalamityMod.NPCs.Yharon normalOnly.Add(ModContent.ItemType(), 7); normalOnly.Add(ModContent.ItemType(), 10); normalOnly.Add(ModContent.ItemType(), 10); + normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Materials normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType(), 1, 25, 30)); diff --git a/Tiles/Furniture/DevPaintings/ThankYouPaintingTile.cs b/Tiles/Furniture/DevPaintings/ThankYouPaintingTile.cs new file mode 100644 index 0000000000..43b4800b6e --- /dev/null +++ b/Tiles/Furniture/DevPaintings/ThankYouPaintingTile.cs @@ -0,0 +1,40 @@ +using CalamityMod.Items.Placeables.Furniture.DevPaintings; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles.Furniture.DevPaintings +{ + public class ThankYouPaintingTile : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileLavaDeath[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 = 7; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Thank You Painting"); + AddMapEntry(new Color(120, 85, 60), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 96, 96, ModContent.ItemType()); + } + } +} diff --git a/Tiles/Furniture/DevPaintings/ThankYouPaintingTile.png b/Tiles/Furniture/DevPaintings/ThankYouPaintingTile.png new file mode 100644 index 0000000000..434b490237 Binary files /dev/null and b/Tiles/Furniture/DevPaintings/ThankYouPaintingTile.png differ diff --git a/Utilities/FurnitureSetupUtils.cs b/Utilities/FurnitureSetupUtils.cs index 6ce690284e..0a5f7b664e 100644 --- a/Utilities/FurnitureSetupUtils.cs +++ b/Utilities/FurnitureSetupUtils.cs @@ -1354,5 +1354,24 @@ namespace CalamityMod TileID.Sets.DisableSmartCursor[mt.Type] = true; TileID.Sets.FramesOnKillWall[mt.Type] = true; } + + /// + /// Extension which initializes a ModTile to be a 6x6 Painting. + /// + /// The ModTile which is being initialized. + /// Whether this tile is supposed to be immune to lava. Defaults to false. + internal static void SetUp6x6Painting(this ModTile mt, bool lavaImmune = false) + { + Main.tileFrameImportant[mt.Type] = true; + Main.tileLavaDeath[mt.Type] = !lavaImmune; + Main.tileWaterDeath[mt.Type] = false; + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3Wall); + TileObjectData.newTile.Width = 6; + TileObjectData.newTile.Height = 6; + TileObjectData.newTile.Origin = new Point16(2, 2); + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16, 16, 16 }; + TileObjectData.newTile.LavaDeath = !lavaImmune; + TileObjectData.addTile(mt.Type); + } } }