From c22ea83a116bfb1f99fe7c75354a4602ab52aa44 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Mon, 8 Jun 2020 13:37:40 -0400 Subject: [PATCH 01/14] set up a base painting starring Nin --- .../Furniture/DevPaintings/NincityPainting.cs | 30 ++++++++++++++++++ .../DevPaintings/NincityPainting.png | Bin 0 -> 2058 bytes .../DevPaintings/NincityPaintingTile.cs | 28 ++++++++++++++++ .../DevPaintings/NincityPaintingTile.png | Bin 0 -> 2649 bytes Utilities/CalamityUtils.cs | 19 +++++++++++ 5 files changed, 77 insertions(+) create mode 100644 Items/Placeables/Furniture/DevPaintings/NincityPainting.cs create mode 100644 Items/Placeables/Furniture/DevPaintings/NincityPainting.png create mode 100644 Tiles/Furniture/DevPaintings/NincityPaintingTile.cs create mode 100644 Tiles/Furniture/DevPaintings/NincityPaintingTile.png diff --git a/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs b/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs new file mode 100644 index 0000000000..c38df21f43 --- /dev/null +++ b/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs @@ -0,0 +1,30 @@ +using CalamityMod.Tiles.Furniture.DevPaintings; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Furniture.DevPaintings +{ + public class NincityPainting : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Nincity Painting"); + } + + public override void SetDefaults() + { + item.width = item.height = 96; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = ItemUseStyleID.SwingThrow; + item.consumable = true; + item.value = Item.buyPrice(0, 5, 0, 0);; + item.Calamity().customRarity = CalamityRarity.Dedicated; + item.createTile = ModContent.TileType(); + } + } +} diff --git a/Items/Placeables/Furniture/DevPaintings/NincityPainting.png b/Items/Placeables/Furniture/DevPaintings/NincityPainting.png new file mode 100644 index 0000000000000000000000000000000000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|;exR60Kt zMb7w)pLCg(o;kP0q>mr|)?AeVMfE5E88d(v*@Z2wCTr=Ew%ED5rD)0h$NH`EH+H;l z(sQnlo}f8dET7mAJwGtHDSBIpG9Xs1g#wtM02JSrF1;H%R2;y70JrIvM^D0EHD_)~ z2B7edGtqmEm;n2LA;UHnvi=2 zC;%BTKvMja#uoFB8PEOjdd?3;&!#a0&>rdyo*W3W7UY%z3IJ&!?KJ?F&5Fm~4azZ> zBhrP%bL7hrF)W@LzD=xAfrf_EgOD%xt0&+Ao7*=gro>LEhf}F0~CNN zpOmk5vqS;_?ehM<^n37nVEHVEa;ZM*fq|~I!gt)cWx$vN00Wi~3*`lI#L8Ze9GFG^ zKP;G;gM8HI2paiVBanvoRH--QtIy2eoGVR5V+H^TsnBmvXLl5HG5md4CR?;?PL_Z~ zyHa~eSw8C#{dL}+t^iba8;f+3hWG31r6Wv2ouI*cKIP8IuKH5M?P8K|IRL;38i}1D zqX76pP&EM35hkHe(vY?&payAC}M2(Yl_bmyVvrRucn&BVj%RT@Uk&$G~;;BWmesswpueF#td%Sbn)@%Hs_6 zv3jC5`}x7olve;64aa(W=9_EP0F-;AIsDp`m|pYEN^w)LGvyV4_`^@V0dRRiI0Id} zdz#|{mt4)8w4;OA#dM7ma_m)>eWttuU?Y+m0L%oAa5?Z`LqR0$lFK^-e8(xt@s7cW oM>ko4)&5}K6<(>K`2z4CxmWyHeDAe~00000NkvXXu0mjf0B8%@*#H0l literal 0 HcmV?d00001 diff --git a/Tiles/Furniture/DevPaintings/NincityPaintingTile.cs b/Tiles/Furniture/DevPaintings/NincityPaintingTile.cs new file mode 100644 index 0000000000..6d85ddf45c --- /dev/null +++ b/Tiles/Furniture/DevPaintings/NincityPaintingTile.cs @@ -0,0 +1,28 @@ +using CalamityMod.Items.Placeables.Furniture.DevPaintings; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles.Furniture.DevPaintings +{ + public class NincityPaintingTile : ModTile + { + public override void SetDefaults() + { + this.SetUp6x6Painting(); + dustType = 7; + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Nincity Painting"); + AddMapEntry(new Color(120, 85, 60), name); + TileID.Sets.FramesOnKillWall[Type] = true; + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 96, 96, ModContent.ItemType()); + } + } +} diff --git a/Tiles/Furniture/DevPaintings/NincityPaintingTile.png b/Tiles/Furniture/DevPaintings/NincityPaintingTile.png new file mode 100644 index 0000000000000000000000000000000000000000..dc40ffec3bc1b18dec1657e1b3a892e796b34316 GIT binary patch literal 2649 zcmV-f3a0gmP)8|9g-3G3?Rm{--+xPGW&v%#or zWdip*QJ^$A<))GdVdq$@b@X!!5b>`mM)AKcg#WiGEn0V3ekJl~E2T z58B89g&C(g6R=I%%*2dguP^9KPShRd`$R!k(=DPdv}YpSa7N7YoV=R9G@<@a6~$xGRgs!K9KH7P8m=e`i+#HvcF%m z>#CG@Cu{u1u|e52kX7X4zB|$vlO!iN~@?Lo9Gv6IZVKIBvVDHESZ_NZIONwNVbJbWcf7e%1g52CX`I zUS{~+&&%T4BtNx*SsmA%5IJC!*6#Ti=gOt9ZI}Zpw)8om{HD0ibuj6@w?|0L+}COh zMxC4Zfs_|~HaotJnz_QeL-i`-PLR{IXqYe)wyRq~&$vAbn^}=(lmjYc8^vB5Y!9Y0 z1B7yo3AbN))?mWm*T=NVRc0n^7aIMy@+YJHwaZuJJgn?{XpC||1+xih2a3HljVbSb zc+BWIY!VMgV-(k8hV?D(W>kUK2k+63QD_{Nt#Uxc+G2_@qJ#dV2Kn1f+sBOLUB_`gr%CrU|k(kW%ptJFQ2`6RQ z>tow;vF@7a12%$f7aMtaYb*y!g}l5kzn7vL?YkTL?%$=IoWn*T*LP+5lTwa$QOi(R zFMYNZ`7tpERBCu>tN(-<#oYvO*gwK`zkMXs(-_6f#5vma-1e){6=oDJA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hj0_RjD%dsL1qKzoZ)~i!*zI#$$Edb zdXL=qqa0A)RA}*`FAdSKzj4TJI&1^tCCqGQ278Gb^E8HXJmwcJB)W32-dW#}>+7C7 zpuE62GC(CdBV4=8YQXLAW>((`->t@QqvMjZ&#$DvHFYVFm;pE;BP|d(@AL z9Q=%CdF27o&%zlaTK&H8-bG`LAveyck#mfvMXt{Q<>@O~z*7zsGimbh)6!AIQSAM( zzkjG=voT}Xmf11`GY`zPZO8SZA_pb}D^B^T3Bo9jPr)Qj?_gGQ90evhpgic41w8FQ z-8pP#m6%cN@7GV;V%Vr`X9D`4EKn?Gbmc5z6zda=()6w}$^n%cMx`7mKd%pnYCi_% znFp^=tFJLG)iXFOTgT(~8yD)c6BpR)b3l1vhwWe5fnsLa#wA*20^X$U0F!lxZTp+< z{sh&BHg3-FwAhbg1^X#5XvZ`~`Q0bo3TF9<_9v)5Y=Qb8mIeHed+$b900000NkvXX Hu0mjfYN;Lw literal 0 HcmV?d00001 diff --git a/Utilities/CalamityUtils.cs b/Utilities/CalamityUtils.cs index c45913f70b..1b9dd06df6 100644 --- a/Utilities/CalamityUtils.cs +++ b/Utilities/CalamityUtils.cs @@ -2657,6 +2657,25 @@ namespace CalamityMod TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop, 2, 0); TileObjectData.addTile(mt.Type); } + + /// + /// Extension which initializes a ModTile to be a work bench. + /// + /// 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); + } #endregion #endregion From 8dd0186e89ae0d4977509e68d786b92486d152e1 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Mon, 8 Jun 2020 17:51:27 -0400 Subject: [PATCH 02/14] nincity painting obtainment method and tooltip --- .../Furniture/DevPaintings/NincityPainting.cs | 44 ++++++++++--------- Items/TreasureBags/CalamitasBag.cs | 7 ++- ModSupport/WeakReferenceSupport.cs | 3 +- NPCs/Calamitas/CalamitasRun3.cs | 2 + .../DevPaintings/NincityPaintingTile.cs | 32 +++++++------- Utilities/CalamityUtils.cs | 28 ++++++------ 6 files changed, 60 insertions(+), 56 deletions(-) diff --git a/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs b/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs index c38df21f43..db04a75bd6 100644 --- a/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs @@ -5,26 +5,28 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.DevPaintings { - public class NincityPainting : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Nincity Painting"); - } + public class NincityPainting : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Developer Painting"); + Tooltip.SetDefault("~ Nincity ~\n" + + "Thanks to the entire team, everyone who supported, and those who all play the mod and keep it alive!"); + } - public override void SetDefaults() - { - item.width = item.height = 96; - item.maxStack = 99; - item.useTurn = true; - item.autoReuse = true; - item.useAnimation = 15; - item.useTime = 10; - item.useStyle = ItemUseStyleID.SwingThrow; - item.consumable = true; - item.value = Item.buyPrice(0, 5, 0, 0);; - item.Calamity().customRarity = CalamityRarity.Dedicated; - item.createTile = ModContent.TileType(); - } - } + public override void SetDefaults() + { + item.width = item.height = 96; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = ItemUseStyleID.SwingThrow; + item.consumable = true; + item.value = Item.buyPrice(0, 5, 0, 0);; + item.Calamity().customRarity = CalamityRarity.Dedicated; + item.createTile = ModContent.TileType(); + } + } } diff --git a/Items/TreasureBags/CalamitasBag.cs b/Items/TreasureBags/CalamitasBag.cs index 66a078ed75..bf3f2e99af 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; @@ -32,10 +33,7 @@ namespace CalamityMod.Items.TreasureBags item.expert = true; } - public override bool CanRightClick() - { - return true; - } + public override bool CanRightClick() => true; public override void OpenBossBag(Player player) { @@ -59,6 +57,7 @@ namespace CalamityMod.Items.TreasureBags // Vanity DropHelper.DropItemChance(player, ModContent.ItemType(), 7); + DropHelper.DropItemChance(player, ModContent.ItemType(), 20); } } } diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 23b6437d50..7d80fba05c 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -12,6 +12,7 @@ using CalamityMod.Items.PermanentBoosters; using CalamityMod.Items.Pets; using CalamityMod.Items.Placeables; 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; @@ -322,7 +323,7 @@ namespace CalamityMod int type = NPCType(); int summon = ItemType(); List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.BrokenHeroSword, ItemID.GreaterHealingPotion }; - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { 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)); AddBoss(bossChecklist, calamity, "Calamitas", order, type, DownedCalamitas, summon, loot, collection, instructions, despawn); diff --git a/NPCs/Calamitas/CalamitasRun3.cs b/NPCs/Calamitas/CalamitasRun3.cs index 525a07add1..84288a8487 100644 --- a/NPCs/Calamitas/CalamitasRun3.cs +++ b/NPCs/Calamitas/CalamitasRun3.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; @@ -201,6 +202,7 @@ namespace CalamityMod.NPCs.Calamitas // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 20); } // Abyss awakens after killing Calamitas diff --git a/Tiles/Furniture/DevPaintings/NincityPaintingTile.cs b/Tiles/Furniture/DevPaintings/NincityPaintingTile.cs index 6d85ddf45c..f13498bb64 100644 --- a/Tiles/Furniture/DevPaintings/NincityPaintingTile.cs +++ b/Tiles/Furniture/DevPaintings/NincityPaintingTile.cs @@ -7,22 +7,22 @@ using Terraria.ObjectData; namespace CalamityMod.Tiles.Furniture.DevPaintings { - public class NincityPaintingTile : ModTile - { - public override void SetDefaults() - { - this.SetUp6x6Painting(); - dustType = 7; - disableSmartCursor = true; - ModTranslation name = CreateMapEntryName(); - name.SetDefault("Nincity Painting"); - AddMapEntry(new Color(120, 85, 60), name); + public class NincityPaintingTile : ModTile + { + public override void SetDefaults() + { + this.SetUp6x6Painting(); + dustType = 7; + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Developer Painting"); + AddMapEntry(new Color(120, 85, 60), name); TileID.Sets.FramesOnKillWall[Type] = true; - } + } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 96, 96, ModContent.ItemType()); - } - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 96, 96, ModContent.ItemType()); + } + } } diff --git a/Utilities/CalamityUtils.cs b/Utilities/CalamityUtils.cs index 1b9dd06df6..b82beac125 100644 --- a/Utilities/CalamityUtils.cs +++ b/Utilities/CalamityUtils.cs @@ -2658,24 +2658,24 @@ namespace CalamityMod TileObjectData.addTile(mt.Type); } - /// - /// Extension which initializes a ModTile to be a work bench. - /// - /// 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); + /// + /// 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); - } + TileObjectData.newTile.LavaDeath = !lavaImmune; + TileObjectData.addTile(mt.Type); + } #endregion #endregion From 83c901c1425707eda79223f528871cfc2d0922c6 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 26 Sep 2022 00:52:17 -0400 Subject: [PATCH 03/14] later not now maybe --- Items/TreasureBags/CalamitasBag.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Items/TreasureBags/CalamitasBag.cs b/Items/TreasureBags/CalamitasBag.cs index 69d2adf140..f1d90583fa 100644 --- a/Items/TreasureBags/CalamitasBag.cs +++ b/Items/TreasureBags/CalamitasBag.cs @@ -1,7 +1,6 @@ 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; @@ -78,7 +77,6 @@ namespace CalamityMod.Items.TreasureBags // Vanity itemLoot.Add(ModContent.ItemType(), 7); - itemLoot.Add(ModContent.ItemType(), 20); var calamityRobes = ItemDropRule.Common(ModContent.ItemType(), 10); calamityRobes.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); itemLoot.Add(calamityRobes); From 396301eba3d4f36395c345182636aaed4a90d0d9 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 26 Sep 2022 00:54:44 -0400 Subject: [PATCH 04/14] stack increase --- Items/Placeables/Furniture/DevPaintings/NincityPainting.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs b/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs index db04a75bd6..c549c5faea 100644 --- a/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings public override void SetDefaults() { item.width = item.height = 96; - item.maxStack = 99; + item.maxStack = 9999; item.useTurn = true; item.autoReuse = true; item.useAnimation = 15; From c8d5ed4f7cb4b9251cfd5c98c4448bb94a74f5ce Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 26 Sep 2022 00:55:48 -0400 Subject: [PATCH 05/14] rarity --- Items/Placeables/Furniture/DevPaintings/NincityPainting.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs b/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs index c549c5faea..02a07f80f1 100644 --- a/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings item.useTime = 10; item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; - item.value = Item.buyPrice(0, 5, 0, 0);; - item.Calamity().customRarity = CalamityRarity.Dedicated; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = ItemRarityID.Blue; item.createTile = ModContent.TileType(); } } From a72ec653126fe459d214670c99a13d183f36f104 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 26 Sep 2022 00:58:17 -0400 Subject: [PATCH 06/14] more 1.4 housework --- Items/Placeables/Furniture/DevPaintings/NincityPainting.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs b/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs index 02a07f80f1..b02282a9cc 100644 --- a/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs @@ -12,6 +12,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings DisplayName.SetDefault("Developer Painting"); Tooltip.SetDefault("~ Nincity ~\n" + "Thanks to the entire team, everyone who supported, and those who all play the mod and keep it alive!"); + SacrificeTotal = 1; } public override void SetDefaults() @@ -22,7 +23,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = ItemUseStyleID.SwingThrow; + item.useStyle = ItemUseStyleID.Swing; item.consumable = true; item.value = Item.buyPrice(0, 5, 0, 0); item.rare = ItemRarityID.Blue; From d3716cb7552ce34ec0db858486a909ff134b2155 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 26 Sep 2022 01:46:40 -0400 Subject: [PATCH 07/14] Pi is 3.14159265358979 but what about e? more real than i they say --- .../Furniture/DevPaintings/NincityPainting.cs | 22 +++++++++---------- .../DevPaintings/NincityPaintingTile.cs | 11 +++++----- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs b/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs index b02282a9cc..9f3c1d444c 100644 --- a/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs @@ -17,17 +17,17 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings public override void SetDefaults() { - item.width = item.height = 96; - 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, 5, 0, 0); - item.rare = ItemRarityID.Blue; - item.createTile = ModContent.TileType(); + Item.width = Item.height = 96; + 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, 5, 0, 0); + Item.rare = ItemRarityID.Blue; + Item.createTile = ModContent.TileType(); } } } diff --git a/Tiles/Furniture/DevPaintings/NincityPaintingTile.cs b/Tiles/Furniture/DevPaintings/NincityPaintingTile.cs index f13498bb64..1156c481e6 100644 --- a/Tiles/Furniture/DevPaintings/NincityPaintingTile.cs +++ b/Tiles/Furniture/DevPaintings/NincityPaintingTile.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Placeables.Furniture.DevPaintings; using Microsoft.Xna.Framework; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; using Terraria.ObjectData; @@ -9,20 +10,20 @@ namespace CalamityMod.Tiles.Furniture.DevPaintings { public class NincityPaintingTile : ModTile { - public override void SetDefaults() - { + public override void SetStaticDefaults() + { this.SetUp6x6Painting(); - dustType = 7; - disableSmartCursor = true; + DustType = 7; ModTranslation name = CreateMapEntryName(); name.SetDefault("Developer Painting"); AddMapEntry(new Color(120, 85, 60), name); + TileID.Sets.DisableSmartCursor[Type] = true; TileID.Sets.FramesOnKillWall[Type] = true; } public override void KillMultiTile(int i, int j, int frameX, int frameY) { - Item.NewItem(i * 16, j * 16, 96, 96, ModContent.ItemType()); + Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 96, 96, ModContent.ItemType()); } } } From c0c9fc2fdefe1c9e5fe78fd6120b8e857ee1fee8 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 26 Sep 2022 01:58:20 -0400 Subject: [PATCH 08/14] added the Thank You painting --- .../DevPaintings/ThankYouPainting.cs | 152 ++++++++++++++++++ .../DevPaintings/ThankYouPainting.png | Bin 0 -> 3085 bytes .../DevPaintings/ThankYouPaintingTile.cs | 40 +++++ .../DevPaintings/ThankYouPaintingTile.png | Bin 0 -> 3863 bytes 4 files changed, 192 insertions(+) create mode 100644 Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs create mode 100644 Items/Placeables/Furniture/DevPaintings/ThankYouPainting.png create mode 100644 Tiles/Furniture/DevPaintings/ThankYouPaintingTile.cs create mode 100644 Tiles/Furniture/DevPaintings/ThankYouPaintingTile.png diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs new file mode 100644 index 0000000000..843301345b --- /dev/null +++ b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs @@ -0,0 +1,152 @@ +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 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"); + 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, 5, 0, 0);; + Item.rare = ItemRarityID.Blue; + Item.createTile = ModContent.TileType(); + } + + public override void ModifyTooltips(List tooltips) + { + if (!Main.keyState.IsKeyDown(LeftShift)) + return; + + string devString = ""; + for (int i = 0; i < devList.Count; i++) + { + devString += devList[i]; + + if (i == devList.Count - 1) + break; + + if (i % 5 == 0) + devString += "\n"; + else + devString += ", "; + } + + TooltipLine line = tooltips.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2"); + if (line != null) + line.Text = devString; + } + + public IList devList = new List() + { + "Fabsol", + "Alterra", + "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", + "ApidemDragon", + "Amadis", + "Aleksh", + "Blockaroz", + "Boffin", + "DarkTiny", + "DM Dokuro", + "Earth", + "EchoDuck", + "Frous", + "Gahtao", + "Gamagamer64", + "President Waluigi", + "Graydee", + "Grox the Great", + "Huggles", + "JaceDaDorito", + "Jenosis", + "jontchua", + "Khaelis", + "L0st", + "Leviathan", + "MishiroUsui", + "Nao", + "Nincity", + "Niorin", + "Nitro", + "NyctoDarkMatter", + "PaleoStar", + "Pbtopacio", + "Phantasmal Deathray", + "PhoenixBlade", + "Pinkie Poss", + "pixlgray", + "Poly", + "Puff", + "Purple Necromancer", + "sentri", + "Shadow", + "Shucks", + "SixteenInMono", + "Spoopyro", + "Svante", + "Terry N. Muse", + "Triactis", + "Trivaxy", + "Turquoise", + "Vaikyia", + "Vladimier", + "Yuyutsu", + "Zach", + "Ziggums" + }; + + } +} diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.png b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.png new file mode 100644 index 0000000000000000000000000000000000000000..87e86d9bcb746aa657ca0815dab453c6b3f55f26 GIT binary patch literal 3085 zcmV+o4D$1dP)HEv4X?MSg}|{OL+(tXn_{3K@=4u1~Fi10wE!RkcS~pFp9kTVV!la zdvngcH$dm!&Yb_3bNBP?d(Qgr_1Jr#xV8O$b_QTTmrDWYx_*5eKt@W|8A712DnBk% z`Twf@oU~+qJYK~Yhra{hneuO9YP@#)L!(EZ`SEyL;UlVuS4m2{{b~T#9u`I{I3{ms z*d0GH8kAR@03fNL-5G$IhNDJ#QbIc;eXi}j+6_2eZHza7E&Bl&+;xDIcW!MI=X?9_@BJ^=>_{_H)wYxdz7VjMryClo6QMR2Qh^+t4>$SygJ}H`JT;6A~|V&9}?F z+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>;yd z=T@(Ga>`sgRLNKCN3EXwmWj2~R3XvDe>vq-rmT|t-ZtE|za1I<+(-WXv5j+za2-$=R&in#?%=QAY=CN=^>hzW9ioiMcU- zJODX)!U!*qxVp2fh;?$(>KCY=5RM5pw7x#aPF!LLfWy(+0) z$d0G~?tS@Tz2c^WTJGLXt(oobi8Y}T?*%XGr?FASANtg85LMN(B3Q*I0F*j9ARG?u z-r|~X&mekMP2tCaVgwP#g6c5m@;XOA?5L<(Gj>$ehVCu!np?B)oCv^b$IiDg)G7Bu zZC$N%-5SyVD=q%eNQayAbzNZ6FK4>uM+%<-QN~$c%u-J{Kg>Dd^TqkDU|nd~bM}RX zo)1t@*#BZyjKK4&iMrQQ*NE-?{dRQE>s&#&_V$VUaP1x_cR%~3cq`33o#u5mOV?(- zzS0=(G^l-+E?j%Ppa0dw7(@J7yQ7`&=`3*GSVO%?sD1`h{RMk2Q`ozuwO+XPdJTTF zLh9S6GZpsNPwcO-*bKFIX$RnpL)U8U?~~f!3)S|zzemUG)n1{JKW4J5aUbe(sqY8G z0^TdAtiO<@2401|XXSad~LNk%$Pa%p95 bbYXO9Z*BlFgjnqF00000NkvXXu0mjfX`=ad literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..434b490237254097e64eb3cc7f70955daf159700 GIT binary patch literal 3863 zcmV+y59siTP)Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^01jnIL_t(|+U=cda8=b6$A1@YAcj{0 zBm@ZZ5(t775P_frRiV`Z#DY}{Rjbu1T1S|1q*HD2Nd={*RxA$n1&UA}7Vtskp`bJp z5Cez_gg}4*36CTM3E_GBVV!j^d*__o1Ul2Xo%8>4?%rqbefK$M|Ib=`t+n?FEb9A{ z5J11SmjUq6i8BF!zkGKfL=9-!JTU<9)%RZjaCN)B#`*g7>j6+%b^4OpY1yJF0Q-we zUE6sfErkpF-)_m00KmSHBSQe$`%eP!WYHnl|8JYxJOFUyXoZo#dEZ6=uD|lf030bT zukkt(;u{12&Ye4dN$ot=vrPbCc%wL@|D!j4767P+kC;MGM`qfMR{)SQXKM%`Ik5=< zLvQ+#QK9I-831x~b9JNy08X7bYmA)aMpC~~e8Wp>=X8~n8$0?s*ZTd=ml*wL31)ir zP5=hA>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AGQfq+O{xQ|^Y`>TdI|5zn+30_>>`*`7(Hd-oCEXIP9O%rN^45Q=Cq97S1X+I}ZT z8%b(ITM&gA3NP6d4YlD)_Zb#r2z~`gVWq`{Q*VBj0wB`#+(vT>qi8CINu)#W{e_u$V(ozXTWlUX`=E zbfz=X%FE=5>nm0FoU-4s_O1c;?r&N?T07yrf}Nwbqk9b7JMt*(7<5hBdkfnhU1gNZ zcfXAOX%v&!SDNg0>=mlf+EFO8M%^Vg)}qy7gBQ#I|`Lq$}E5NiVq(?e0btN1kOcBMau2S0000IbVXQnMOaBjI!|(GWo~p~ ZbZKvH05ODE?C$^o002ovPDHLkV1h`RZ)pGk literal 0 HcmV?d00001 From f74b61a826addf543ae33a20b37c94ad09a12f75 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 26 Sep 2022 08:51:20 -0400 Subject: [PATCH 09/14] Added a list for Testers --- .../DevPaintings/ThankYouPainting.cs | 104 ++++++++++++++---- 1 file changed, 85 insertions(+), 19 deletions(-) diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs index 843301345b..a7e7b3dc55 100644 --- a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings 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"); + "Hold SHIFT to see a list of past and current devs and CTRL to see past and current testers"); SacrificeTotal = 1; } @@ -30,38 +30,64 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings Item.useTime = 10; Item.useStyle = ItemUseStyleID.Swing; Item.consumable = true; - Item.value = Item.buyPrice(0, 5, 0, 0);; - Item.rare = ItemRarityID.Blue; + 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)) + if (!Main.keyState.IsKeyDown(LeftShift) && !Main.keyState.IsKeyDown(LeftControl)) return; - string devString = ""; - for (int i = 0; i < devList.Count; i++) + bool tester = false; + if (Main.keyState.IsKeyDown(LeftControl)) + tester = true; + + string tooltip = ""; + + if (!tester) { - devString += devList[i]; + int namesPerLine = 5; + for (int i = 0; i < devList.Count; i++) + { + tooltip += devList[i]; - if (i == devList.Count - 1) - break; + if (i == devList.Count - 1) + break; - if (i % 5 == 0) - devString += "\n"; - else - devString += ", "; + 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 = devString; + line.Text = tooltip; } public IList devList = new List() { - "Fabsol", + "Fabsol, the mod's founder and owner", // Fabsol gets a line to himself "Alterra", "Ben-TK", "Bravioli", @@ -94,19 +120,21 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "Tomat", "Uncle Danny", "YuH", + "ApidemDragon", "Amadis", "Aleksh", + "AstroKnight", "Blockaroz", "Boffin", "DarkTiny", "DM Dokuro", "Earth", "EchoDuck", + "ENNWAY", "Frous", "Gahtao", "Gamagamer64", - "President Waluigi", "Graydee", "Grox the Great", "Huggles", @@ -129,23 +157,61 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "Pinkie Poss", "pixlgray", "Poly", + "President Waluigi", "Puff", "Purple Necromancer", "sentri", - "Shadow", "Shucks", "SixteenInMono", "Spoopyro", "Svante", "Terry N. Muse", - "Triactis", "Trivaxy", "Turquoise", "Vaikyia", "Vladimier", "Yuyutsu", "Zach", - "Ziggums" + "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", + "Chetto", + "Chill Dude", + "Doog", + "drh", + "Hectique", + "Lauren", + "Sargassum", + "ThousandFields", + "Teragat", + "Yatagarasu", }; } From 1a476b7c162caa82a6c104b80218bafa095e03d4 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 26 Sep 2022 10:54:46 -0400 Subject: [PATCH 10/14] Made the painting drop from every boss --- .../Furniture/DevPaintings/NincityPainting.cs | 33 ------- .../DevPaintings/NincityPainting.png | Bin 2058 -> 0 bytes .../DevPaintings/ThankYouPainting.cs | 2 + Items/TreasureBags/AquaticScourgeBag.cs | 2 + Items/TreasureBags/AstrumAureusBag.cs | 2 + Items/TreasureBags/AstrumDeusBag.cs | 2 + Items/TreasureBags/BrimstoneWaifuBag.cs | 2 + Items/TreasureBags/CalamitasBag.cs | 2 + Items/TreasureBags/CeaselessVoidBag.cs | 2 + Items/TreasureBags/CrabulonBag.cs | 2 + Items/TreasureBags/CryogenBag.cs | 2 + Items/TreasureBags/DesertScourgeBag.cs | 2 + Items/TreasureBags/DevourerofGodsBag.cs | 2 + Items/TreasureBags/DraedonBag.cs | 2 + Items/TreasureBags/DragonfollyBag.cs | 2 + Items/TreasureBags/HiveMindBag.cs | 2 + Items/TreasureBags/LeviathanBag.cs | 2 + Items/TreasureBags/OldDukeBag.cs | 2 + Items/TreasureBags/PerforatorBag.cs | 4 +- Items/TreasureBags/PlaguebringerGoliathBag.cs | 2 + Items/TreasureBags/PolterghastBag.cs | 2 + Items/TreasureBags/ProvidenceBag.cs | 2 + Items/TreasureBags/RavagerBag.cs | 2 + Items/TreasureBags/SignusBag.cs | 2 + Items/TreasureBags/SlimeGodBag.cs | 2 + Items/TreasureBags/StormWeaverBag.cs | 2 + Items/TreasureBags/SupremeCalamitasCoffer.cs | 2 + Items/TreasureBags/YharonBag.cs | 2 + ModSupport/WeakReferenceSupport.cs | 93 ++++++++++-------- NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs | 2 + NPCs/AquaticScourge/AquaticScourgeHead.cs | 2 + NPCs/AstrumAureus/AstrumAureus.cs | 2 + NPCs/AstrumDeus/AstrumDeusHead.cs | 6 +- NPCs/BrimstoneElemental/BrimstoneElemental.cs | 2 + NPCs/Bumblebirb/Bumblefuck.cs | 2 + NPCs/Calamitas/CalamitasClone.cs | 2 + NPCs/CalamityGlobalNPCLoot.cs | 48 ++++++++- NPCs/CeaselessVoid/CeaselessVoid.cs | 2 + NPCs/Crabulon/Crabulon.cs | 2 + NPCs/Cryogen/Cryogen.cs | 2 + NPCs/DesertScourge/DesertScourgeHead.cs | 2 + NPCs/DevourerofGods/DevourerofGodsHead.cs | 2 + NPCs/ExoMechs/Ares/AresBody.cs | 2 + NPCs/HiveMind/HiveMind.cs | 2 + NPCs/Leviathan/Leviathan.cs | 2 + NPCs/OldDuke/OldDuke.cs | 2 + NPCs/Perforator/PerforatorHive.cs | 2 + .../PlaguebringerGoliath.cs | 2 + NPCs/Polterghast/Polterghast.cs | 2 + .../ProfanedGuardianCommander.cs | 4 + NPCs/Providence/Providence.cs | 2 + NPCs/Ravager/RavagerBody.cs | 2 + NPCs/Signus/Signus.cs | 2 + NPCs/SlimeGod/SlimeGodCore.cs | 2 + NPCs/StormWeaver/StormWeaverHead.cs | 2 + NPCs/SupremeCalamitas/SupremeCalamitas.cs | 4 + NPCs/Yharon/Yharon.cs | 2 + .../DevPaintings/NincityPaintingTile.cs | 29 ------ .../DevPaintings/NincityPaintingTile.png | Bin 2649 -> 0 bytes 59 files changed, 208 insertions(+), 111 deletions(-) delete mode 100644 Items/Placeables/Furniture/DevPaintings/NincityPainting.cs delete mode 100644 Items/Placeables/Furniture/DevPaintings/NincityPainting.png delete mode 100644 Tiles/Furniture/DevPaintings/NincityPaintingTile.cs delete mode 100644 Tiles/Furniture/DevPaintings/NincityPaintingTile.png diff --git a/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs b/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs deleted file mode 100644 index 9f3c1d444c..0000000000 --- a/Items/Placeables/Furniture/DevPaintings/NincityPainting.cs +++ /dev/null @@ -1,33 +0,0 @@ -using CalamityMod.Tiles.Furniture.DevPaintings; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Placeables.Furniture.DevPaintings -{ - public class NincityPainting : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Developer Painting"); - Tooltip.SetDefault("~ Nincity ~\n" + - "Thanks to the entire team, everyone who supported, and those who all play the mod and keep it alive!"); - SacrificeTotal = 1; - } - - public override void SetDefaults() - { - Item.width = Item.height = 96; - 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, 5, 0, 0); - Item.rare = ItemRarityID.Blue; - Item.createTile = ModContent.TileType(); - } - } -} diff --git a/Items/Placeables/Furniture/DevPaintings/NincityPainting.png b/Items/Placeables/Furniture/DevPaintings/NincityPainting.png deleted file mode 100644 index 06a7b70fbef84f5b0b3f3cea80fd78c79c0fc5d7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2058 zcmV+l2=(`gP)(jQk{33y5Mg&fTwJzTUGlyL<24z3thTyEAiUcIJHN zn>lCp-aB;#`m{F9`1jJRqi0Ul{h#K1uIDSq_41bX9j7FRe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mEm;n2LA;UHnvi=2 zC;%BTKvMja#uoFB8PEOjdd?3;&!#a0&>rdyo*W3W7UY%z3IJ&!?KJ?F&5Fm~4azZ> zBhrP%bL7hrF)W@LzD=xAfrf_EgOD%xt0&+Ao7*=gro>LEhf}F0~CNN zpOmk5vqS;_?ehM<^n37nVEHVEa;ZM*fq|~I!gt)cWx$vN00Wi~3*`lI#L8Ze9GFG^ zKP;G;gM8HI2paiVBanvoRH--QtIy2eoGVR5V+H^TsnBmvXLl5HG5md4CR?;?PL_Z~ zyHa~eSw8C#{dL}+t^iba8;f+3hWG31r6Wv2ouI*cKIP8IuKH5M?P8K|IRL;38i}1D zqX76pP&EM35hkHe(vY?&payAC}M2(Yl_bmyVvrRucn&BVj%RT@Uk&$G~;;BWmesswpueF#td%Sbn)@%Hs_6 zv3jC5`}x7olve;64aa(W=9_EP0F-;AIsDp`m|pYEN^w)LGvyV4_`^@V0dRRiI0Id} zdz#|{mt4)8w4;OA#dM7ma_m)>eWttuU?Y+m0L%oAa5?Z`LqR0$lFK^-e8(xt@s7cW oM>ko4)&5}K6<(>K`2z4CxmWyHeDAe~00000NkvXXu0mjf0B8%@*#H0l diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs index a7e7b3dc55..9a78e1367f 100644 --- a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs @@ -10,6 +10,8 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings { public class ThankYouPainting : ModItem { + public const int DropInt = 100; + public override void SetStaticDefaults() { DisplayName.SetDefault("Thank You"); 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 0cb694a752..cf8d8d720b 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -375,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) => { @@ -401,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); @@ -412,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"; @@ -424,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); @@ -435,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); @@ -446,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"; @@ -458,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"; @@ -475,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); @@ -486,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; @@ -509,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)); @@ -526,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"; @@ -538,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"; @@ -556,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"; @@ -577,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"; @@ -596,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"; @@ -614,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); @@ -625,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"; @@ -643,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); @@ -654,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"; @@ -671,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); @@ -682,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); @@ -693,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); @@ -704,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"; @@ -721,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"; @@ -735,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)); @@ -757,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"; @@ -769,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"; @@ -843,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 @@ -933,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..b12e26b596 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/NincityPaintingTile.cs b/Tiles/Furniture/DevPaintings/NincityPaintingTile.cs deleted file mode 100644 index 1156c481e6..0000000000 --- a/Tiles/Furniture/DevPaintings/NincityPaintingTile.cs +++ /dev/null @@ -1,29 +0,0 @@ -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 NincityPaintingTile : ModTile - { - public override void SetStaticDefaults() - { - this.SetUp6x6Painting(); - DustType = 7; - ModTranslation name = CreateMapEntryName(); - name.SetDefault("Developer Painting"); - AddMapEntry(new Color(120, 85, 60), name); - TileID.Sets.DisableSmartCursor[Type] = true; - TileID.Sets.FramesOnKillWall[Type] = true; - } - - 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/NincityPaintingTile.png b/Tiles/Furniture/DevPaintings/NincityPaintingTile.png deleted file mode 100644 index dc40ffec3bc1b18dec1657e1b3a892e796b34316..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2649 zcmV-f3a0gmP)8|9g-3G3?Rm{--+xPGW&v%#or zWdip*QJ^$A<))GdVdq$@b@X!!5b>`mM)AKcg#WiGEn0V3ekJl~E2T z58B89g&C(g6R=I%%*2dguP^9KPShRd`$R!k(=DPdv}YpSa7N7YoV=R9G@<@a6~$xGRgs!K9KH7P8m=e`i+#HvcF%m z>#CG@Cu{u1u|e52kX7X4zB|$vlO!iN~@?Lo9Gv6IZVKIBvVDHESZ_NZIONwNVbJbWcf7e%1g52CX`I zUS{~+&&%T4BtNx*SsmA%5IJC!*6#Ti=gOt9ZI}Zpw)8om{HD0ibuj6@w?|0L+}COh zMxC4Zfs_|~HaotJnz_QeL-i`-PLR{IXqYe)wyRq~&$vAbn^}=(lmjYc8^vB5Y!9Y0 z1B7yo3AbN))?mWm*T=NVRc0n^7aIMy@+YJHwaZuJJgn?{XpC||1+xih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K zTb1=T3JP{Wg`DfNU2r(n#O;ug81T6F*0ICCR2z&!9K{(4W>j&}qtYIkkW6`jZH`eI zunwr0X2Ra#)c`^+54H*M5g0XaSgB+tni{?LT`;2{7wxZIIvfhi1- zmK8@156roI@u1i!FbYiLoF5p(jMDa}xL>K-$I4npIiSob8ky`lfWZtc=sQMi3*sAF zCV^Rqqx={JrfE6AOff5K80CPWQN+!P=uvK6bY>_4(Hj0_RjD%dsL1qKzoZ)~i!*zI#$$Edb zdXL=qqa0A)RA}*`FAdSKzj4TJI&1^tCCqGQ278Gb^E8HXJmwcJB)W32-dW#}>+7C7 zpuE62GC(CdBV4=8YQXLAW>((`->t@QqvMjZ&#$DvHFYVFm;pE;BP|d(@AL z9Q=%CdF27o&%zlaTK&H8-bG`LAveyck#mfvMXt{Q<>@O~z*7zsGimbh)6!AIQSAM( zzkjG=voT}Xmf11`GY`zPZO8SZA_pb}D^B^T3Bo9jPr)Qj?_gGQ90evhpgic41w8FQ z-8pP#m6%cN@7GV;V%Vr`X9D`4EKn?Gbmc5z6zda=()6w}$^n%cMx`7mKd%pnYCi_% znFp^=tFJLG)iXFOTgT(~8yD)c6BpR)b3l1vhwWe5fnsLa#wA*20^X$U0F!lxZTp+< z{sh&BHg3-FwAhbg1^X#5XvZ`~`Q0bo3TF9<_9v)5Y=Qb8mIeHed+$b900000NkvXX Hu0mjfYN;Lw From 74427aec6f565589a0f840c23471205e8353bbcc Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 26 Sep 2022 10:56:16 -0400 Subject: [PATCH 11/14] fixed an error --- NPCs/CalamityGlobalNPCLoot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index b12e26b596..7620fc6bec 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -836,7 +836,7 @@ namespace CalamityMod.NPCs npcLoot.AddNormalOnly(EoWKill); // Would be in the bag otherwise - npcLoot.AddIf((info) => info.npc.boss), ModContent.ItemType(), ThankYouPainting.DropInt); + npcLoot.AddIf((info) => info.npc.boss, ModContent.ItemType(), ThankYouPainting.DropInt); // Master items drop in Revengeance rev.AddIf((info) => info.npc.boss, ItemID.EaterofWorldsMasterTrophy); From b7fc3ad35e19d91c1bcbd104ca215a4d8f7f507a Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 26 Sep 2022 11:36:31 -0400 Subject: [PATCH 12/14] updated names and added Silver-Lord of Ash --- Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs index 9a78e1367f..11adb446e7 100644 --- a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs @@ -90,7 +90,6 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings public IList devList = new List() { "Fabsol, the mod's founder and owner", // Fabsol gets a line to himself - "Alterra", "Ben-TK", "Bravioli", "CDMusic", @@ -123,6 +122,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "Uncle Danny", "YuH", + "Altalyra", "ApidemDragon", "Amadis", "Aleksh", @@ -144,6 +144,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "Jenosis", "jontchua", "Khaelis", + "KnightyKnight", "L0st", "Leviathan", "MishiroUsui", @@ -155,7 +156,6 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "PaleoStar", "Pbtopacio", "Phantasmal Deathray", - "PhoenixBlade", "Pinkie Poss", "pixlgray", "Poly", @@ -164,6 +164,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "Purple Necromancer", "sentri", "Shucks", + "Silver-Lord of Ash", "SixteenInMono", "Spoopyro", "Svante", From e685d1d70f78f42b5de533b2ee35a9d76b82fc9f Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 26 Sep 2022 11:43:01 -0400 Subject: [PATCH 13/14] grrrrrr leave me alone --- Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs index 11adb446e7..5751652bab 100644 --- a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs @@ -170,7 +170,6 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "Svante", "Terry N. Muse", "Trivaxy", - "Turquoise", "Vaikyia", "Vladimier", "Yuyutsu", From b5b1bddd4a08dae79cac0d103a35388e51202589 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 26 Sep 2022 14:37:04 -0400 Subject: [PATCH 14/14] name edits --- Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs index 5751652bab..16b6a35da9 100644 --- a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs @@ -204,12 +204,13 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "Akeeli", "Alphi", + "Cei", "Chetto", "Chill Dude", "Doog", "drh", "Hectique", - "Lauren", + "Neverglide", "Sargassum", "ThousandFields", "Teragat",