public override void AddRecipes() { base.AddRecipes(); PartsGlobalNPC.addPartToNPC(NPCID.WyvernHead, this); PartsGlobalNPC.addPartToNPC(NPCID.BoneLee, this); PartsGlobalNPC.addPartToNPC(NPCID.DungeonSlime, this); PartsGlobalNPC.addPartToNPC(NPCID.GoblinScout, this); PartsGlobalNPC.addPartToNPC(NPCID.LostGirl, this); PartsGlobalNPC.addPartToNPC(NPCID.Nymph, this); PartsGlobalNPC.addPartToNPC(NPCID.Paladin, this); PartsGlobalNPC.addPartToNPC(NPCID.Pinky, this); PartsGlobalNPC.addPartToNPC(NPCID.RainbowSlime, this); PartsGlobalNPC.addPartToNPC(NPCID.DoctorBones, this); PartsGlobalNPC.addPartToNPC(NPCID.IceGolem, this); PartsGlobalNPC.addPartToNPC(NPCID.SandElemental, this); PartsGlobalNPC.addPartToNPC(NPCID.Moth, this); PartsGlobalNPC.addPartToNPC(NPCID.RuneWizard, this); PartsGlobalNPC.addPartToNPC(NPCID.SkeletonCommando, this); PartsGlobalNPC.addPartToNPC(NPCID.SkeletonSniper, this); PartsGlobalNPC.addPartToNPC(NPCID.TacticalSkeleton, this); PartsGlobalNPC.addPartToNPC(NPCID.TheBride, this); PartsGlobalNPC.addPartToNPC(NPCID.TheGroom, this); PartsGlobalNPC.addPartToNPC(NPCID.Tim, this); PartsGlobalNPC.addPartToNPC(NPCID.UndeadMiner, this); PartsGlobalNPC.addPartToNPC(NPCID.DiabolistRed, this); PartsGlobalNPC.addPartToNPC(NPCID.RaggedCaster, this); PartsGlobalNPC.addPartToNPC(NPCID.RaggedCasterOpenCoat, this); PartsGlobalNPC.addPartToNPC(NPCID.Necromancer, this); PartsGlobalNPC.addPartToNPC(NPCID.NecromancerArmored, this); }
public override void AddRecipes() { base.AddRecipes(); int p2 = ARareItemSwapJPANs.getNPCTypeFromTag("ThoriumMod:FallenDeathBeholder2"); if (p2 > 0) { PartsGlobalNPC.addPartToNPC(p2, this); } }
public override object Run(object[] args, int start = 1) { if (args.Length - start <= 1) { ARareItemSwapJPANs.LogError(name, "Requires at least 2 Arguments;\n" + Help()); return(false); } Item item = getItemFromObject(args[start]); if (item == null || item.type == 0) { ARareItemSwapJPANs.LogError(name, "Invalid item"); return(false); } NPC npc = getNPCFromObject(args[start + 1]); if (npc == null) { ARareItemSwapJPANs.LogError(name, "Invalid npc"); return(false); } String tag = ARareItemSwapJPANs.ItemToTag(item); if (!ARareItemSwapJPANs.tokenList.Contains(tag)) { ARareItemSwapJPANs.tokenList.Add(tag); Mod rmod = ModLoader.GetMod("ResearchFrom14"); if (rmod != null) { if (npc.boss) { rmod.Call("SetDefaultMaxResearch", item.type, 500); rmod.Call("SetDefaultCategories", item.type, "Parts"); rmod.Call("SetDefaultCategories", item.type, "Parts/Boss Parts"); } else { rmod.Call("SetDefaultMaxResearch", item.type, 100); rmod.Call("SetDefaultCategories", item.type, "Parts"); } } } PartsGlobalNPC.addPartToNPC(npc.type, item); return(true); }
public override void AddRecipes() { base.AddRecipes(); int[] p2 = new int[] { ARareItemSwapJPANs.getNPCTypeFromTag("ThoriumMod:Aquaius"), ARareItemSwapJPANs.getNPCTypeFromTag("ThoriumMod:Omnicide"), ARareItemSwapJPANs.getNPCTypeFromTag("ThoriumMod:SlagFury") }; foreach (int i in p2) { if (i != 0) { PartsGlobalNPC.addPartToNPC(i, this); } } }
public override void AddRecipes() { base.AddRecipes(); if (bossID != 0) { PartsGlobalNPC.addPartToNPC(bossID, this); } Mod rmod = ModLoader.GetMod("ResearchFrom14"); if (rmod == null) { return; } rmod.Call("SetDefaultMaxResearch", item.type, 500); rmod.Call("SetDefaultCategories", item.type, "Parts"); rmod.Call("SetDefaultCategories", item.type, "Parts/Boss Parts"); }
public override void AddRecipes() { base.AddRecipes(); PartsGlobalNPC.addPartToNPC(NPCID.EaterofWorldsBody, this); PartsGlobalNPC.addPartToNPC(NPCID.EaterofWorldsTail, this); }
public override void AddRecipes() { base.AddRecipes(); PartsGlobalNPC.addPartToNPC(NPCID.DD2DarkMageT3, this); }
public override void AddRecipes() { base.AddRecipes(); PartsGlobalNPC.addPartToNPC(NPCID.Retinazer, this); }