public ModItem GetItem() { int intItem = this.Value.ItemDrop; string name = ItemID.Search.GetName(intItem); return(ModContent.Find <ModItem>(this.Parent().Name, name)); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(ItemID.EmpressFlightBooster) //soaring insignia .AddIngredient(ItemID.BatWings) //bat wings .AddIngredient(ItemID.CreativeWings) //fledgling wings .AddIngredient(ItemID.FairyWings) .AddIngredient(ItemID.HarpyWings) .AddIngredient(ItemID.BoneWings) .AddIngredient(ItemID.FrozenWings) .AddIngredient(ItemID.FlameWings) .AddIngredient(ItemID.TatteredFairyWings) .AddIngredient(ItemID.FestiveWings) .AddIngredient(ItemID.BetsyWings) .AddIngredient(ItemID.FishronWings) .AddIngredient(ItemID.RainbowWings) //empress wings .AddIngredient(ItemID.LongRainbowTrailWings) //celestial starboard .AddIngredient(ItemID.GravityGlobe) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { CreateRecipe() //ancient chisel //step stool //greedy ring //treasure magnet .AddIngredient(null, "MinerEnchant") .AddIngredient(ItemID.Toolbelt) .AddIngredient(ItemID.Toolbox) .AddIngredient(ItemID.ArchitectGizmoPack) .AddIngredient(ItemID.ActuationAccessory) .AddIngredient(ItemID.LaserRuler) .AddIngredient(ItemID.RoyalGel) .AddIngredient(ItemID.CellPhone) //.AddIngredient(ItemID.BloodHamaxe) //haemoraxe .AddRecipeGroup("FargowiltasSouls:AnyDrax") .AddIngredient(ItemID.ShroomiteDiggingClaw) .AddIngredient(ItemID.DrillContainmentUnit) //.AddIngredient(ItemID.BallOfFuseWire) //dynamite kitten pet .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public ModTile GetTile() { int intTile = Value.Item.createTile; string name = TileID.Search.GetName(intTile); return(ModContent.Find <ModTile>(this.Parent().Name, name)); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(null, "UniverseSoul") .AddIngredient(null, "DimensionSoul") .AddIngredient(null, "TerrariaSoul") .AddIngredient(null, "MasochistSoul") //if (ModLoader.GetMod("FargowiltasSoulsDLC") != null) //{ // Mod fargoDLC = ModLoader.GetMod("FargowiltasSoulsDLC"); // if (ModLoader.GetMod("ThoriumMod") != null) // { // .AddIngredient(fargoDLC.ItemType("ThoriumSoul")) // } // if (ModLoader.GetMod("CalamityMod") != null) // { // .AddIngredient(fargoDLC.ItemType("CalamitySoul")) // } // if (ModLoader.GetMod("SacredTools") != null) // { // .AddIngredient(fargoDLC.ItemType("SoASoul")) // } //} .AddIngredient(null, "EternalEnergy", 30) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(null, "ApprenticesEssence") .AddIngredient(ItemID.ManaCloak) .AddIngredient(ItemID.MagnetFlower) .AddIngredient(ItemID.ArcaneFlower) .AddIngredient(ItemID.CelestialCuffs) .AddIngredient(ItemID.CelestialEmblem) .AddIngredient(ItemID.MedusaHead) .AddIngredient(ItemID.SharpTears) .AddIngredient(ItemID.MagnetSphere) .AddIngredient(ItemID.RainbowGun) .AddIngredient(ItemID.ApprenticeStaffT3) .AddIngredient(ItemID.SparkleGuitar) .AddIngredient(ItemID.RazorbladeTyphoon) //.AddIngredient(ItemID.BlizzardStaff); .AddIngredient(ItemID.LaserMachinegun) .AddIngredient(ItemID.LastPrism) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void HitEffect(int hitDirection, double damage) { if (NPC.life <= 0) { for (int i = 3; i <= 10; i++) { Vector2 pos = NPC.position + new Vector2(Main.rand.NextFloat(NPC.width), Main.rand.NextFloat(NPC.height)); if (!Main.dedServ) { Gore.NewGore(NPC.GetSource_FromThis(), pos, NPC.velocity, ModContent.Find <ModGore>(Mod.Name, $"TimberGore{i}").Type, NPC.scale); } } if (spawnPhase2) { FargoSoulsUtil.NewNPCEasy(NPC.GetSource_FromAI(), NPC.Center, ModContent.NPCType <TimberChampionHead>(), NPC.whoAmI, target: NPC.target); } FargoSoulsUtil.GrossVanillaDodgeDust(NPC); for (int i = 0; i < 6; i++) { ExplodeDust(NPC.position + new Vector2(Main.rand.Next(NPC.width), Main.rand.Next(NPC.height))); } } }
public override void HitEffect(int hitDirection, double damage) { if (NPC.life <= 0) { for (int k = 0; k < 8; k++) { Dust.NewDust(NPC.position, NPC.width, NPC.height, 5, 2.5f * hitDirection, -2.5f, Scale: 0.8f); } Vector2 pos = NPC.position + new Vector2(Main.rand.Next(NPC.width - 8), Main.rand.Next(NPC.height / 2)); Gore.NewGore(pos, NPC.velocity, ModContent.Find <ModGore>("Fargowiltas/LumberGore3").Type); pos = NPC.position + new Vector2(Main.rand.Next(NPC.width - 8), Main.rand.Next(NPC.height / 2)); Gore.NewGore(pos, NPC.velocity, ModContent.Find <ModGore>("Fargowiltas/LumberGore2").Type); pos = NPC.position + new Vector2(Main.rand.Next(NPC.width - 8), Main.rand.Next(NPC.height / 2)); Gore.NewGore(pos, NPC.velocity, ModContent.Find <ModGore>("Fargowiltas/LumberGore1").Type); } else { for (int k = 0; k < damage / NPC.lifeMax * 50.0; k++) { Dust.NewDust(NPC.position, NPC.width, NPC.height, 5, hitDirection, -1f, Scale: 0.6f); } } }
public override void AddRecipes() { CreateRecipe() .AddIngredient(null, "OccultistsEssence") .AddIngredient(ItemID.MonkBelt) .AddIngredient(ItemID.SquireShield) .AddIngredient(ItemID.HuntressBuckler) .AddIngredient(ItemID.ApprenticeScarf) .AddIngredient(ItemID.PygmyNecklace) .AddIngredient(ItemID.PapyrusScarab) .AddIngredient(ItemID.Smolstar) //blade staff .AddIngredient(ItemID.PirateStaff) .AddIngredient(ItemID.OpticStaff) .AddIngredient(ItemID.DeadlySphereStaff) .AddIngredient(ItemID.StormTigerStaff) .AddIngredient(ItemID.StaffoftheFrostHydra) //mourningstar? //.AddIngredient(ItemID.DD2BallistraTowerT3Popper); //.AddIngredient(ItemID.DD2ExplosiveTrapT3Popper); //.AddIngredient(ItemID.DD2FlameburstTowerT3Popper); //.AddIngredient(ItemID.DD2LightningAuraT3Popper); .AddIngredient(ItemID.TempestStaff) .AddIngredient(ItemID.RavenStaff) .AddIngredient(ItemID.XenoStaff) .AddIngredient(ItemID.EmpressBlade) //terraprisma .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void UpdateAccessory(Player player, bool hideVisual) { FargoSoulsPlayer modPlayer = player.GetModPlayer <FargoSoulsPlayer>(); //includes revive, both spectres, adamantite, and star heal modPlayer.TerrariaSoul = true; //WOOD ModContent.Find <ModItem>(Mod.Name, "TimberForce").UpdateAccessory(player, hideVisual); //TERRA ModContent.Find <ModItem>(Mod.Name, "TerraForce").UpdateAccessory(player, hideVisual); //EARTH ModContent.Find <ModItem>(Mod.Name, "EarthForce").UpdateAccessory(player, hideVisual); //NATURE ModContent.Find <ModItem>(Mod.Name, "NatureForce").UpdateAccessory(player, hideVisual); //LIFE ModContent.Find <ModItem>(Mod.Name, "LifeForce").UpdateAccessory(player, hideVisual); //SPIRIT ModContent.Find <ModItem>(Mod.Name, "SpiritForce").UpdateAccessory(player, hideVisual); //SHADOW ModContent.Find <ModItem>(Mod.Name, "ShadowForce").UpdateAccessory(player, hideVisual); //WILL ModContent.Find <ModItem>(Mod.Name, "WillForce").UpdateAccessory(player, hideVisual); //COSMOS ModContent.Find <ModItem>(Mod.Name, "CosmoForce").UpdateAccessory(player, hideVisual); }
public override void AddRecipes() { CreateRecipe() /* * hive pack*/ .AddIngredient(null, "SharpshootersEssence") .AddIngredient(ItemID.BoneGlove) .AddIngredient(ItemID.MoltenQuiver) .AddIngredient(ItemID.StalkersQuiver) .AddIngredient(ItemID.ReconScope) .AddIngredient(ItemID.DartPistol) .AddIngredient(ItemID.Megashark) .AddIngredient(ItemID.PulseBow) .AddIngredient(ItemID.NailGun) .AddIngredient(ItemID.PiranhaGun) .AddIngredient(ItemID.SniperRifle) .AddIngredient(ItemID.Tsunami) .AddIngredient(ItemID.StakeLauncher) .AddIngredient(ItemID.EldMelter) .AddIngredient(ItemID.Xenopopper) .AddIngredient(ItemID.Celeb2) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(null, "AnglerEnchantment") //inner tube .AddIngredient(ItemID.BalloonHorseshoeSharkron) .AddIngredient(ItemID.ArcticDivingGear) //frog gear //volatile gel .AddIngredient(ItemID.SporeSac) //engineer rod .AddIngredient(ItemID.SittingDucksFishingRod) //hotline fishing .AddIngredient(ItemID.GoldenFishingRod) .AddIngredient(ItemID.GoldenCarp) .AddIngredient(ItemID.ReaverShark) .AddIngredient(ItemID.Bladetongue) .AddIngredient(ItemID.ObsidianSwordfish) .AddIngredient(ItemID.FuzzyCarrot) .AddIngredient(ItemID.HardySaddle) //.AddIngredient(ItemID.ZephyrFish); .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { Recipe recipe = CreateRecipe() .AddIngredient(null, "UniverseCore") .AddIngredient(null, "BerserkerSoul") .AddIngredient(null, "SnipersSoul") .AddIngredient(null, "ArchWizardsSoul") .AddIngredient(null, "ConjuristsSoul") .AddIngredient(null, "AbomEnergy", 10) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")); if (ModLoader.TryGetMod("FargowiltasSoulsDLC", out Mod fargoDLC)) { if (ModLoader.TryGetMod("ThoriumMod", out Mod thorium)) { recipe.AddIngredient(ModContent.Find <ModItem>("FargowiltasSoulsDLC", "GuardianAngelsSoul")); recipe.AddIngredient(ModContent.Find <ModItem>("FargowiltasSoulsDLC", "BardSoul")); } if (ModLoader.TryGetMod("CalamityMod", out Mod calamity)) { recipe.AddIngredient(ModContent.Find <ModItem>("FargowiltasSoulsDLC", "RogueSoul")); } if (ModLoader.TryGetMod("DBZMOD", out Mod dbz)) { recipe.AddIngredient(ModContent.Find <ModItem>("FargowiltasSoulsDLC", "KiSoul")); } } recipe.Register(); }
internal static void LoadTiles(TagCompound tag) { if (!tag.ContainsKey("data")) { return; } var tables = TileTables.Create(); foreach (var tileTag in tag.GetList <TagCompound>("tileMap")) { ushort type = (ushort)tileTag.GetShort("value"); string modName = tileTag.GetString("mod"); string name = tileTag.GetString("name"); tables.tiles[type] = ModContent.TryFind(modName, name, out ModTile tile) ? tile.Type : (ushort)0; if (tables.tiles[type] == 0) { tables.tiles[type] = ModContent.Find <ModTile>("ModLoader/PendingUnloadedTile").Type; tables.tileModNames[type] = modName; tables.tileNames[type] = name; } tables.frameImportant[type] = tileTag.GetBool("framed"); } foreach (var wallTag in tag.GetList <TagCompound>("wallMap")) { ushort type = (ushort)wallTag.GetShort("value"); string modName = wallTag.GetString("mod"); string name = wallTag.GetString("name"); tables.walls[type] = ModContent.TryFind(modName, name, out ModWall wall) ? wall.Type : (ushort)0; } using (var memoryStream = new MemoryStream(tag.GetByteArray("data"))) using (var reader = new BinaryReader(memoryStream)) ReadTileData(reader, tables); WorldIO.ValidateSigns(); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(ModContent.ItemType <Eridanium>(), 5) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { CreateRecipe(5) .AddIngredient(ModContent.ItemType <AbomEnergy>(), 5) .AddIngredient(ItemID.GuideVoodooDoll) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(ModContent.ItemType <GalacticReformer>(), 100) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
// TODO: GetGoreSlot public override void OnKill() { //spawn all gores once for (int i = 1; i <= 10; i++) { Gore.NewGore(NPC.position, NPC.velocity, ModContent.Find <ModGore>("CrystiliumMod/KingGore" + i).Type); } }
public override void AddRecipes() { CreateRecipe() .AddIngredient(ModContent.Find <ModItem>("Fargowiltas", "MutantBody")) .AddIngredient(null, "AbomEnergy", 15) .AddIngredient(null, "EternalEnergy", 15) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(null, "DragonBreath") .AddIngredient(null, "AbomEnergy", 10) .AddIngredient(ModContent.Find <ModItem>("Fargowiltas", "EnergizerBetsy")) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(ModContent.Find <ModItem>("Fargowiltas", "EnergizerDG")) .AddIngredient(ModContent.ItemType <EternalEnergy>(), 15) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(ModContent.ItemType <FishStick>()) .AddIngredient(ModContent.ItemType <AbomEnergy>(), 10) .AddIngredient(ModContent.Find <ModItem>("Fargowiltas", "EnergizerFish")) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(null, "RefractorBlaster") .AddIngredient(null, "AbomEnergy", 10) .AddIngredient(ModContent.Find <ModItem>("Fargowiltas", "EnergizerPrime")) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(ItemID.SoulofMight, 15) .AddIngredient(ItemID.LunarBar, 5) .AddIngredient(ModContent.ItemType <AbomEnergy>(), 10) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { Recipe recipe = CreateRecipe(); foreach (int ench in Enchants) { recipe.AddIngredient(ench); } recipe.AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")); recipe.Register(); }
public override void HitEffect(int hitDirection, double damage) { if (NPC.life <= 0) { Vector2 pos = NPC.Center; if (!Main.dedServ) { Gore.NewGore(NPC.GetSource_FromThis(), pos, NPC.velocity, ModContent.Find <ModGore>(Mod.Name, $"TrojanSquirrelGore1").Type, NPC.scale); } } }
public override void AddRecipes() { CreateRecipe() .AddIngredient(ItemID.CoinGun) .AddIngredient(ItemID.ChargedBlasterCannon) .AddIngredient(ItemID.LastPrism) .AddIngredient(ItemID.LunarBar, 10) .AddIngredient(ItemID.MartianConduitPlating, 100) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(ModContent.ItemType <MechanicalLeashOfCthulhu>(), 1) .AddIngredient(ModContent.ItemType <EternalEnergy>(), 15) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(null, "FleshHand") .AddIngredient(ModContent.Find <ModItem>("Fargowiltas", "EnergizerWall")) .AddIngredient(ItemID.LunarBar, 10) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }
public override void AddRecipes() { CreateRecipe() .AddIngredient(ModContent.ItemType <LeashOfCthulhu>()) .AddIngredient(ModContent.Find <ModItem>("Fargowiltas", "EnergizerEye")) .AddIngredient(ItemID.LunarBar, 10) .AddTile(ModContent.Find <ModTile>("Fargowiltas", "CrucibleCosmosSheet")) .Register(); }