From 175b2567b8d4a3f632015c875b9214f07d6a0bfc Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 20 Oct 2019 11:49:19 -0400 Subject: [PATCH] npc's basically finished I thinkk --- NPCs/TheDevourerofGods/DevourerofGodsBody.cs | 3 +++ NPCs/TheDevourerofGods/DevourerofGodsBody2.cs | 1 + NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs | 3 +++ NPCs/TheDevourerofGods/DevourerofGodsHead.cs | 2 ++ NPCs/TheDevourerofGods/DevourerofGodsHead2.cs | 1 + NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs | 23 ++++++++++++++--- NPCs/TheDevourerofGods/DevourerofGodsTail.cs | 2 ++ NPCs/TheDevourerofGods/DevourerofGodsTail2.cs | 1 + NPCs/TheDevourerofGods/DevourerofGodsTailS.cs | 2 ++ NPCs/TownNPCs/Bandit.cs | 5 +++- NPCs/TownNPCs/DILF.cs | 24 +++++++++++++----- NPCs/TownNPCs/FAP.cs | 3 +++ NPCs/TownNPCs/SEAHOE.cs | 12 +++++++-- NPCs/Yharon/Yharon.cs | 25 +++++++++++++++---- 14 files changed, 89 insertions(+), 18 deletions(-) diff --git a/NPCs/TheDevourerofGods/DevourerofGodsBody.cs b/NPCs/TheDevourerofGods/DevourerofGodsBody.cs index ab80a77bf3..30fd578862 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsBody.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsBody.cs @@ -5,6 +5,9 @@ using System.IO; using Terraria; using Terraria.ModLoader; using Terraria.ID; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Projectiles.Boss; namespace CalamityMod.NPCs { public class DevourerofGodsBody : ModNPC diff --git a/NPCs/TheDevourerofGods/DevourerofGodsBody2.cs b/NPCs/TheDevourerofGods/DevourerofGodsBody2.cs index 8248e56c71..5bae014a4f 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsBody2.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsBody2.cs @@ -3,6 +3,7 @@ using System.IO; using Terraria; using Terraria.ModLoader; using Terraria.ID; +using CalamityMod.Buffs.DamageOverTime; namespace CalamityMod.NPCs { public class DevourerofGodsBody2 : ModNPC diff --git a/NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs b/NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs index 1350187f51..6bdb68c769 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs @@ -4,6 +4,9 @@ using System.IO; using Terraria; using Terraria.ModLoader; using Terraria.ID; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Projectiles.Boss; namespace CalamityMod.NPCs { [AutoloadBossHead] diff --git a/NPCs/TheDevourerofGods/DevourerofGodsHead.cs b/NPCs/TheDevourerofGods/DevourerofGodsHead.cs index c313f02763..caa04b4b42 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsHead.cs @@ -7,6 +7,8 @@ using Terraria.ModLoader; using Terraria.DataStructures; using Terraria.ID; using Terraria.Localization; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; namespace CalamityMod.NPCs { [AutoloadBossHead] diff --git a/NPCs/TheDevourerofGods/DevourerofGodsHead2.cs b/NPCs/TheDevourerofGods/DevourerofGodsHead2.cs index ae8c52f071..0951a39f15 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsHead2.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsHead2.cs @@ -4,6 +4,7 @@ using System.IO; using Terraria; using Terraria.ModLoader; using Terraria.ID; +using CalamityMod.Buffs.DamageOverTime; namespace CalamityMod.NPCs { public class DevourerofGodsHead2 : ModNPC diff --git a/NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs b/NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs index b69322b911..2a2ed59ff2 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs @@ -1,5 +1,4 @@ - -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using System; using System.IO; @@ -8,6 +7,22 @@ using Terraria.ModLoader; using Terraria.DataStructures; using Terraria.ID; using Terraria.Localization; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Accessories; +using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Magic; +using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.LoreItems; +using CalamityMod.Items.TreasureBags; +using CalamityMod.Items.Armor.Vanity; +using CalamityMod.Items.Potions; +using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Items.Placeables.FurnitureCosmilite; +using CalamityMod.Projectiles.Boss; namespace CalamityMod.NPCs { [AutoloadBossHead] @@ -857,10 +872,10 @@ namespace CalamityMod.NPCs // Weapons DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); - DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); - DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); + DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); diff --git a/NPCs/TheDevourerofGods/DevourerofGodsTail.cs b/NPCs/TheDevourerofGods/DevourerofGodsTail.cs index 7785a71d67..08a5b24bf4 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsTail.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsTail.cs @@ -4,6 +4,8 @@ using Terraria; using Terraria.ModLoader; using Terraria.ID; using Terraria.Localization; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; namespace CalamityMod.NPCs { [AutoloadBossHead] diff --git a/NPCs/TheDevourerofGods/DevourerofGodsTail2.cs b/NPCs/TheDevourerofGods/DevourerofGodsTail2.cs index 96b9e0644d..3c226c7816 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsTail2.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsTail2.cs @@ -3,6 +3,7 @@ using System.IO; using Terraria; using Terraria.ModLoader; using Terraria.ID; +using CalamityMod.Buffs.DamageOverTime; namespace CalamityMod.NPCs { public class DevourerofGodsTail2 : ModNPC diff --git a/NPCs/TheDevourerofGods/DevourerofGodsTailS.cs b/NPCs/TheDevourerofGods/DevourerofGodsTailS.cs index 74f8715c20..35750ed150 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsTailS.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsTailS.cs @@ -4,6 +4,8 @@ using Terraria; using Terraria.ModLoader; using Terraria.ID; using Terraria.Localization; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; namespace CalamityMod.NPCs { [AutoloadBossHead] diff --git a/NPCs/TownNPCs/Bandit.cs b/NPCs/TownNPCs/Bandit.cs index 5231b94f2a..251b8b7c3b 100644 --- a/NPCs/TownNPCs/Bandit.cs +++ b/NPCs/TownNPCs/Bandit.cs @@ -4,6 +4,9 @@ using Terraria; using Terraria.ModLoader; using Terraria.ID; using Terraria.Localization; +using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Accessories; +using CalamityMod.Projectiles.Rogue; namespace CalamityMod.NPCs { [AutoloadHead] @@ -122,7 +125,7 @@ namespace CalamityMod.NPCs PossibleDialogs.Add("Providence HATES it when you take her stuff. I learned that the hard way."); PossibleDialogs.Add("You think I can get away with looting from ghosts? It ain't like they can pick things up."); } - if (Main.LocalPlayer.InventoryHas(ModContent.ItemType()) || + if (Main.LocalPlayer.InventoryHas(ModContent.ItemType()) || Main.LocalPlayer.InventoryHas(ModContent.ItemType())) { PossibleDialogs.Add("Oh man, did you rip that off a shark!? Now that's a weapon!"); diff --git a/NPCs/TownNPCs/DILF.cs b/NPCs/TownNPCs/DILF.cs index e1dfef9665..ff2f6876b2 100644 --- a/NPCs/TownNPCs/DILF.cs +++ b/NPCs/TownNPCs/DILF.cs @@ -5,6 +5,18 @@ using Terraria.ModLoader; using Terraria.GameContent.Events; using Terraria.ID; using Terraria.Localization; +using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Magic; +using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories.Vanity; +using CalamityMod.Items.Pets; +using CalamityMod.Items.SummonItems; +using CalamityMod.Items.Ammo; +using CalamityMod.Items.Potions; +using CalamityMod.Projectiles.Typeless; namespace CalamityMod.NPCs { [AutoloadHead] @@ -135,21 +147,21 @@ namespace CalamityMod.NPCs nextSlot++; shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(ModContent.ItemType()); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(ModContent.ItemType()); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(ModContent.ItemType()); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(ModContent.ItemType()); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(ModContent.ItemType()); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; shop.item[nextSlot].SetDefaults(ItemID.SuperManaPotion); nextSlot++; @@ -161,7 +173,7 @@ namespace CalamityMod.NPCs nextSlot++; shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("CryoKey")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 15, 0, 0); nextSlot++; } diff --git a/NPCs/TownNPCs/FAP.cs b/NPCs/TownNPCs/FAP.cs index 5fe0ca12d1..829e062a7b 100644 --- a/NPCs/TownNPCs/FAP.cs +++ b/NPCs/TownNPCs/FAP.cs @@ -6,6 +6,9 @@ using Terraria.DataStructures; using Terraria.GameContent.Events; using Terraria.ID; using Terraria.Localization; +using CalamityMod.Items.Potions.Alcohol; +using CalamityMod.Items.Placeables.Furniture; +using CalamityMod.Projectiles.Magic; namespace CalamityMod.NPCs { [AutoloadHead] diff --git a/NPCs/TownNPCs/SEAHOE.cs b/NPCs/TownNPCs/SEAHOE.cs index 71930e5190..de3e30501f 100644 --- a/NPCs/TownNPCs/SEAHOE.cs +++ b/NPCs/TownNPCs/SEAHOE.cs @@ -4,6 +4,14 @@ using Terraria; using Terraria.ModLoader; using Terraria.ID; using Terraria.Localization; +using CalamityMod.Buffs.StatBuffs; +using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Magic; +using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.SummonItems; +using CalamityMod.Projectiles.Rogue; namespace CalamityMod.NPCs { [AutoloadHead] @@ -260,13 +268,13 @@ namespace CalamityMod.NPCs nextSlot++; if (CalamityWorld.downedDesertScourge) { - shop.item[nextSlot].SetDefaults(mod.ItemType("DriedSeafood")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0); nextSlot++; } if (CalamityWorld.downedAquaticScourge) { - shop.item[nextSlot].SetDefaults(mod.ItemType("Seafood")); + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 20, 0, 0); nextSlot++; } diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index bbfbdf942c..1f6ece65e0 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -1,5 +1,4 @@ - -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -10,6 +9,22 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.Localization; using Terraria.Utilities; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Accessories; +using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Magic; +using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.LoreItems; +using CalamityMod.Items.TreasureBags; +using CalamityMod.Items.Armor.Vanity; +using CalamityMod.Items.Pets; +using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Tiles.Ores; +using CalamityMod.Projectiles.Boss; namespace CalamityMod.NPCs { @@ -2768,7 +2783,7 @@ namespace CalamityMod.NPCs if (!Main.expertMode) { // Weapons - DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); @@ -2794,7 +2809,7 @@ namespace CalamityMod.NPCs // Weapons DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.RareVariantDropRateInt); - DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.LegendaryDropRateInt); + DropHelper.DropItemChance(npc, ModContent.ItemType(), DropHelper.LegendaryDropRateInt); // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); @@ -2807,7 +2822,7 @@ namespace CalamityMod.NPCs // If Yharon has not been killed yet, notify players of Auric Ore if (!CalamityWorld.downedYharon) { - WorldGenerationMethods.SpawnOre(ModContent.TileType(), 2E-05, .6f, .8f); + WorldGenerationMethods.SpawnOre(ModContent.TileType(), 2E-05, .6f, .8f); string key = "Mods.CalamityMod.AuricOreText"; Color messageColor = Color.Gold;