Пример #1
0
        public override void AddRecipes()
        {
            if (!Fargowiltas.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <WhiteKnightMask>());
            recipe.AddIngredient(ModContent.ItemType <WhiteKnightTabard>());
            recipe.AddIngredient(ModContent.ItemType <WhiteKnightLeggings>());
            recipe.AddIngredient(ModContent.ItemType <ShadeBand>());
            recipe.AddIngredient(ModContent.ItemType <PrismiteStaff>());
            recipe.AddIngredient(ModContent.ItemType <VileSpitter>());
            recipe.AddIngredient(ModContent.ItemType <FrostFang>());
            recipe.AddIngredient(ModContent.ItemType <TitaniumStaff>());
            recipe.AddIngredient(ModContent.ItemType <DynastyWarFan>());
            recipe.AddIngredient(ItemID.SkyFracture);

            recipe.AddTile(TileID.CrystalBall);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
Пример #2
0
        public override void AddRecipes()
        {
            if (!Fargowiltas.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <BronzeHelmet>());
            recipe.AddIngredient(ModContent.ItemType <BronzeBreastplate>());
            recipe.AddIngredient(ModContent.ItemType <BronzeGreaves>());
            recipe.AddIngredient(ModContent.ItemType <OlympicTorch>());
            recipe.AddIngredient(ModContent.ItemType <ChampionsBarrier>());
            recipe.AddIngredient(ModContent.ItemType <SpartanSandles>());
            recipe.AddIngredient(ModContent.ItemType <ChampionBlade>());
            recipe.AddIngredient(ModContent.ItemType <SpikyCaltrop>(), 300);
            recipe.AddIngredient(ModContent.ItemType <BronzeThrowing>(), 300);
            recipe.AddIngredient(ModContent.ItemType <AncientDrachma>());

            recipe.AddTile(TileID.DemonAltar);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
Пример #3
0
        public override void KillTile(int i, int j, int type, ref bool fail, ref bool effectOnly, ref bool noItem)
        {
            if (!Main.dedServ)
            {
                Player   player    = Main.LocalPlayer;
                MyPlayer modPlayer = player.GetSpiritPlayer();
                if (type == 1 || type == 25 || type == 117 || type == 203 || type == 57)
                {
                    if (Main.rand.Next(50) == 1 && modPlayer.gemPickaxe)
                    {
                        tremorItem = Main.rand.Next(new int[] { 11, 12, 13, 14, 699, 700, 701, 702, 999, 182, 178, 179, 177, 180, 181 });
                        if (Main.hardMode)
                        {
                            tremorItem = Main.rand.Next(new int[] { 11, 12, 13, 14, 699, 700, 701, 702, 999, 182, 178, 179, 177, 180, 181, 364, 365, 366, 1104, 1105, 1106 });
                        }
                        Item.NewItem(i * 16, j * 16, 64, 48, tremorItem, Main.rand.Next(1, 3));
                    }
                }
                if (player.GetSpiritPlayer().wayfarerSet&& type == 28)
                {
                    player.AddBuff(ModContent.BuffType <Buffs.Armor.ExplorerPot>(), 360);
                }
                if (player.GetSpiritPlayer().wayfarerSet&& Main.tileSpelunker[type] && Main.tileSolid[type])
                {
                    player.AddBuff(ModContent.BuffType <Buffs.Armor.ExplorerMine>(), 600);
                }

                if (player.HasItem(ModContent.ItemType <Spineshot>()))
                {
                    if (type == 3 || type == 24 || type == 61 || type == 71 || type == 110 || type == 201)
                    {
                        Item.NewItem(i * 16, j * 16, 64, 48, ItemID.Seed, Main.rand.Next(1, 3));
                    }
                }
            }
        }
        public override void AddRecipes()
        {
            if (!FargowiltasSoulsDLC.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <DreamWeaversHelmet>());
            recipe.AddIngredient(ModContent.ItemType <DreamWeaversHood>());
            recipe.AddIngredient(ModContent.ItemType <DreamWeaversTabard>());
            recipe.AddIngredient(ModContent.ItemType <DreamWeaversTreads>());
            recipe.AddIngredient(ModContent.ItemType <DragonHeartWand>());
            recipe.AddIngredient(ModContent.ItemType <SnackLantern>());
            recipe.AddIngredient(ModContent.ItemType <ChristmasCheer>());
            recipe.AddIngredient(ModContent.ItemType <MoleculeStabilizer>());
            recipe.AddIngredient(ModContent.ItemType <DreamCatcher>());
            recipe.AddIngredient(ModContent.ItemType <TitanicTrioPaint>());

            recipe.AddTile(TileID.LunarCraftingStation);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
        public override void PostWorldGen()
        {
            // Place some items in Ice Chests
            int[] itemsToPlaceInIceChests       = { ModContent.ItemType <BlizzardStaff>() };
            int   itemsToPlaceInIceChestsChoice = 0;

            for (int chestIndex = 0; chestIndex < 1000; chestIndex++)
            {
                Chest chest = Main.chest[chestIndex];
                if (chest != null && Main.tile[chest.x, chest.y].type == TileID.Containers && Main.tile[chest.x, chest.y].frameX == 11 * 36)
                {
                    for (int inventoryIndex = 0; inventoryIndex < 40; inventoryIndex++)
                    {
                        if (chest.item[inventoryIndex].type == ItemID.None)
                        {
                            chest.item[inventoryIndex].SetDefaults(itemsToPlaceInIceChests[itemsToPlaceInIceChestsChoice]);
                            itemsToPlaceInIceChestsChoice = (itemsToPlaceInIceChestsChoice + 1) % itemsToPlaceInIceChests.Length; chest.item[inventoryIndex].SetDefaults(Main.rand.Next(itemsToPlaceInIceChests));
                            // Alternate approach: Random instead of cyclical: chest.item[inventoryIndex].SetDefaults(Main.rand.Next(itemsToPlaceInIceChests));
                            break;
                        }
                    }
                }
            }
        }
        public override void AddRecipes()
        {
            if (!Fargowiltas.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <DemonBloodHelmet>());
            recipe.AddIngredient(ModContent.ItemType <DemonBloodBreastPlate>());
            recipe.AddIngredient(ModContent.ItemType <DemonBloodGreaves>());
            recipe.AddIngredient(ModContent.ItemType <FleshEnchant>());
            recipe.AddIngredient(ModContent.ItemType <DemonRageBadge>());
            recipe.AddIngredient(ModContent.ItemType <VileCore>());
            recipe.AddIngredient(ModContent.ItemType <DemonBloodRipper>());
            recipe.AddIngredient(ModContent.ItemType <DarkContagionBook>());
            recipe.AddIngredient(ModContent.ItemType <FesteringBalloon>(), 300);
            recipe.AddIngredient(ModContent.ItemType <BloodRootGoop>(), 5);

            recipe.AddTile(TileID.CrystalBall);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
Пример #7
0
        public override void AddRecipes()
        {
            if (!FargowiltasSoulsDLC.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <TideTurnerHelmet>());
            recipe.AddIngredient(ModContent.ItemType <TideTurnersGaze>());
            recipe.AddIngredient(ModContent.ItemType <TideTurnerBreastplate>());
            recipe.AddIngredient(ModContent.ItemType <TideTurnerGreaves>());
            recipe.AddIngredient(ModContent.ItemType <PoseidonCharge>());
            recipe.AddIngredient(ModContent.ItemType <MantisPunch>());
            recipe.AddIngredient(ModContent.ItemType <OceansJudgment>());
            recipe.AddIngredient(ModContent.ItemType <Trefork>());
            recipe.AddIngredient(ModContent.ItemType <TidalWave>());
            recipe.AddIngredient(ModContent.ItemType <FishEgg>());

            recipe.AddTile(TileID.LunarCraftingStation);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
        public override void AddRecipes()
        {
            if (!FargowiltasSoulsDLC.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <ValadiumHelmet>());
            recipe.AddIngredient(ModContent.ItemType <ValadiumBreastPlate>());
            recipe.AddIngredient(ModContent.ItemType <ValadiumGreaves>());
            recipe.AddIngredient(ModContent.ItemType <EyeofBeholder>());
            recipe.AddIngredient(ModContent.ItemType <GlacialSting>());
            recipe.AddIngredient(ModContent.ItemType <Obliterator>());
            recipe.AddIngredient(ModContent.ItemType <ValadiumBow>());
            recipe.AddIngredient(ModContent.ItemType <ValadiumStaff>());
            recipe.AddIngredient(ModContent.ItemType <TommyGun>());
            recipe.AddIngredient(ModContent.ItemType <CrystalBalloon>(), 300);

            recipe.AddTile(TileID.CrystalBall);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
Пример #9
0
        public override void AddRecipes()
        {
            if (!Fargowiltas.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <DurasteelHelmet>());
            recipe.AddIngredient(ModContent.ItemType <DurasteelChestplate>());
            recipe.AddIngredient(ModContent.ItemType <DurasteelGreaves>());
            recipe.AddIngredient(ModContent.ItemType <DarksteelEnchant>());
            recipe.AddIngredient(ModContent.ItemType <OgreSandal>());
            recipe.AddIngredient(ModContent.ItemType <CrystalSpearTip>());
            recipe.AddIngredient(ModContent.ItemType <DurasteelRepeater>());
            recipe.AddIngredient(ModContent.ItemType <SpudBomber>());
            recipe.AddIngredient(ModContent.ItemType <ThiefDagger>());
            recipe.AddIngredient(ModContent.ItemType <SeaMine>());

            recipe.AddTile(TileID.CrystalBall);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
        ////////////////

        public static int Create(Player player, Vector2 position, ISet <string> itemUids)
        {
//Main.NewText( "No ImpartmentContractItem created for "+player.name+" (no items)" );
            if (itemUids.Count == 0)
            {
                return(-1);
            }

            int  itemIdx = Item.NewItem(position, ModContent.ItemType <ImpartmentContractItem>());
            Item item    = Main.item[itemIdx];

            if (item == null || item.IsAir)
            {
//Main.NewText( "No ImpartmentContractItem created for "+player.name );
                return(-1);
            }

            var myitem = item.modItem as ImpartmentContractItem;

            if (myitem != null)
            {
                myitem.IntrinsicItemUids = itemUids;
            }
            else
            {
//Main.NewText( "Invalid ImpartmentContractItem created for "+player.name );
                itemIdx = -1;
            }

            if (Main.netMode == 1)
            {
                NetMessage.SendData(MessageID.SyncItem, -1, Main.myPlayer, null, itemIdx, 1);
            }

            return(itemIdx);
        }
Пример #11
0
        public override void AddRecipes()
        {
            if (!Fargowiltas.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <DragonMask>());
            recipe.AddIngredient(ModContent.ItemType <DragonBreastplate>());
            recipe.AddIngredient(ModContent.ItemType <DragonGreaves>());
            recipe.AddIngredient(ModContent.ItemType <DragonTalonNecklace>());
            recipe.AddIngredient(ModContent.ItemType <TunePlayerMovementSpeed>());
            recipe.AddIngredient(ModContent.ItemType <DragonsBreath>());
            recipe.AddIngredient(ModContent.ItemType <EbonyTail>());
            recipe.AddIngredient(ModContent.ItemType <CorrupterBalloon>(), 300);
            recipe.AddIngredient(ItemID.ClingerStaff);
            recipe.AddIngredient(ModContent.ItemType <CloudyChewToy>());

            recipe.AddTile(TileID.CrystalBall);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
Пример #12
0
        public override void AddRecipes()
        {
            if (!FargowiltasSoulsDLC.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <EbonHood>());
            recipe.AddIngredient(ModContent.ItemType <EbonCloak>());
            recipe.AddIngredient(ModContent.ItemType <EbonLeggings>());
            recipe.AddIngredient(ModContent.ItemType <LeechBolt>());
            recipe.AddIngredient(ModContent.ItemType <ShadowWand>());
            recipe.AddIngredient(ModContent.ItemType <DarkHeart>());
            recipe.AddIngredient(ModContent.ItemType <EaterOfPain>());
            recipe.AddIngredient(ModContent.ItemType <BrainCoral>());
            recipe.AddIngredient(ModContent.ItemType <AToastPaint>());
            recipe.AddIngredient(ItemID.RedAdmiralButterfly);

            recipe.AddTile(TileID.DemonAltar);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
        public override void AddRecipes()
        {
            if (!Fargowiltas.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <BalladeerHat>());
            recipe.AddIngredient(ModContent.ItemType <BalladeerShirt>());
            recipe.AddIngredient(ModContent.ItemType <BalladeerBoots>());
            recipe.AddIngredient(ModContent.ItemType <BalladeersTurboTuba>());
            recipe.AddIngredient(ModContent.ItemType <Headset>());
            recipe.AddIngredient(ModContent.ItemType <Acoustic>());
            recipe.AddIngredient(ModContent.ItemType <SunflareGuitar>());
            recipe.AddIngredient(ModContent.ItemType <BlackOtamatone>());
            recipe.AddIngredient(ModContent.ItemType <Pungi>());
            recipe.AddIngredient(ModContent.ItemType <RockstarsDoubleBassBlastGuitar>());

            recipe.AddTile(TileID.LunarCraftingStation);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
Пример #14
0
 public override void RightClick(Player player)
 {
     if (player.GetModPlayer <AAPlayer>().ShinyCheck())
     {
         if (Main.rand.Next(10) == 0)
         {
             player.QuickSpawnItem(ItemID.GoldBunny);
         }
     }
     else
     {
         if (Main.rand.Next(10) == 0)
         {
             player.QuickSpawnItem(ItemID.Bunny);
         }
     }
     player.QuickSpawnItem(ModContent.ItemType <TiedsMask>());
     player.QuickSpawnItem(ModContent.ItemType <TiedsSuit>());
     player.QuickSpawnItem(ModContent.ItemType <TiedsLeggings>());
     if (Main.hardMode)
     {
         player.QuickSpawnItem(ItemID.BoneWings);
     }
 }
Пример #15
0
        public void RegisterToChecklist(out BossChecklistDataHandler.EntryType entryType, out float progression,
	        out string name, out Func<bool> downedCondition, ref BossChecklistDataHandler.BCIDData identificationData,
	        ref string spawnInfo, ref string despawnMessage, ref string texture, ref string headTextureOverride,
	        ref Func<bool> isAvailable)
        {
	        entryType = BossChecklistDataHandler.EntryType.Miniboss;
	        progression = 3.1f;
	        name = "Snaptrapper";
	        downedCondition = () => MyWorld.downedSnaptrapper;
	        identificationData = new BossChecklistDataHandler.BCIDData(
		        new List<int> {
			        ModContent.NPCType<Snaptrapper>()
		        },
		        null,
		        null,
		        new List<int> {
			        ModContent.ItemType<SnapsporeStaff>(),
			        ModContent.ItemType<SporeClub>()
		        });
	        spawnInfo =
		        "The Snaptrapper spawns rarely on the Jungle surface after the Eater of Worlds or Brain of Cthulhu has been defeated.";
	        texture = "SpiritMod/Textures/BossChecklist/SnaptrapperTexture";
	        headTextureOverride = "SpiritMod/NPCs/Snaptrapper_Head_Boss";
        }
Пример #16
0
        public override void AddRecipes()
        {
            if (!FargowiltasSoulsDLC.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <WarlockHood>());
            recipe.AddIngredient(ModContent.ItemType <WarlockGarb>());
            recipe.AddIngredient(ModContent.ItemType <WarlockLeggings>());
            recipe.AddIngredient(ModContent.ItemType <EbonEnchant>());
            recipe.AddIngredient(ModContent.ItemType <DemonTongue>());
            recipe.AddIngredient(ModContent.ItemType <Effigy>());
            recipe.AddIngredient(ModContent.ItemType <Omen>());
            recipe.AddIngredient(ModContent.ItemType <ShadowStaff>());
            recipe.AddIngredient(ModContent.ItemType <NecroticStaff>());
            recipe.AddIngredient(ModContent.ItemType <CursedHammer>());

            recipe.AddTile(TileID.CrystalBall);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
Пример #17
0
        public override void AddRecipes()
        {
            if (!Fargowiltas.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <OmniMarkHead>());
            recipe.AddIngredient(ModContent.ItemType <OmniArablastHood>());
            recipe.AddIngredient(ModContent.ItemType <OmniBody>());
            recipe.AddIngredient(ModContent.ItemType <OmniGreaves>());
            recipe.AddIngredient(ModContent.ItemType <DartPouch>());
            recipe.AddIngredient(ModContent.ItemType <RejectsBlowpipe>());
            recipe.AddIngredient(ModContent.ItemType <BlackBow>());
            recipe.AddIngredient(ModContent.ItemType <OmniBow>());
            recipe.AddIngredient(ModContent.ItemType <WyrmDecimator>());
            recipe.AddIngredient(ModContent.ItemType <TheJavelin>());

            recipe.AddTile(TileID.LunarCraftingStation);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
Пример #18
0
        public override void SetDefaults()
        {
            TileID.Sets.Ore[Type]     = true;
            Main.tileSpelunker[Type]  = true;       // The tile will be affected by spelunker highlighting
            Main.tileValue[Type]      = 410;        // Metal Detector value, see https://terraria.gamepedia.com/Metal_Detector
            Main.tileShine2[Type]     = true;       // Modifies the draw color slightly.
            Main.tileShine[Type]      = 975;        // How often tiny dust appear off this tile. Larger is less frequently
            Main.tileMergeDirt[Type]  = true;
            Main.tileSolid[Type]      = true;
            Main.tileBlockLight[Type] = true;

            ModTranslation name = CreateMapEntryName();

            name.SetDefault("GiuxOre");
            name.AddTranslation(GameCulture.French, "Minerai de Giux");
            AddMapEntry(new Color(152, 171, 198), name);

            dustType   = 84;
            drop       = ModContent.ItemType <Items.Placeables.GiuxOre>();
            soundType  = SoundID.Tink;
            soundStyle = 1;
            mineResist = 2f;
            minPick    = 60;
        }
Пример #19
0
 public override void RightClick(Player player)
 {
     if (Azercadmium.DownedAllMechBosses)
     {
         if (Main.rand.NextBool())
         {
             int[] options = new int[]
             {
                 ItemID.HotlineFishingHook,
                 ItemID.LavaCharm,
                 ModContent.ItemType <RevenantShield>(),
                 ModContent.ItemType <HellKey>(),
             };
             player.QuickSpawnItem(options[Main.rand.Next(options.Length)]);
         }
     }
     player.QuickSpawnItem(ModContent.ItemType <EmberGlobber>(), Main.rand.Next(4, 12));
     player.QuickSpawnItem(ItemID.HellstoneBar, Main.rand.Next(4, 12));
     if (Main.rand.Next(4) < 3)
     {
         player.QuickSpawnItem(ModContent.ItemType <BurntStinger>(), Main.rand.Next(1, 6));
     }
     player.QuickSpawnItem(ItemID.GoldCoin, Main.rand.Next(2, 10));
 }
Пример #20
0
        public override void AddRecipes()
        {
            if (!Fargowiltas.Instance.CalamityLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(calamity.ItemType("SnowRuffianMask")); //private REE, fix later
            recipe.AddIngredient(calamity.ItemType("SnowRuffianChestplate"));
            recipe.AddIngredient(calamity.ItemType("SnowRuffianGreaves"));
            recipe.AddIngredient(ModContent.ItemType <ScuttlersJewel>());
            recipe.AddIngredient(ModContent.ItemType <Cryophobia>());
            recipe.AddIngredient(ModContent.ItemType <ThrowingBrick>(), 300);
            recipe.AddIngredient(ModContent.ItemType <FrostBlossomStaff>());
            recipe.AddIngredient(ModContent.ItemType <Warblade>());
            recipe.AddIngredient(ModContent.ItemType <Waraxe>());
            recipe.AddIngredient(calamity.ItemType("TundraLeash"));

            recipe.AddTile(TileID.DemonAltar);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
Пример #21
0
        public override void SetDefaults()
        {
            npc.aiStyle         = -1;
            npc.lifeMax         = 12000;
            npc.damage          = 30;
            npc.defense         = 24;
            npc.knockBackResist = 0f;
            npc.width           = 180;
            npc.height          = 126;
            npc.scale           = 1.4f;
            npc.value           = 100000;
            npc.npcSlots        = 180;
            npc.boss            = true;
            npc.lavaImmune      = true;
            npc.noGravity       = true;
            npc.noTileCollide   = true;
            npc.HitSound        = SoundID.NPCHit1;
            npc.DeathSound      = SoundID.NPCDeath1;
            bossBag             = ModContent.ItemType <Items.BossBags.TheRageBag>();

            npc.buffImmune[BuffID.OnFire]   = true;
            npc.buffImmune[BuffID.Poisoned] = true;
            npc.buffImmune[BuffID.Confused] = true;
        }
Пример #22
0
		private void LoadLicensePacks() {
			var licDef = new ShopPackItemDefinition(
				new ItemDefinition( ModContent.ItemType<LicenseItem>() ),
				LicensesMod.Config.LicensesPerPack,
				null
			);
			var wildLicDef = new ShopPackItemDefinition(
				new ItemDefinition( ModContent.ItemType<WildcardLicenseItem>() ),
				LicensesMod.Config.WildcardLicensesPerPack,
				null
			);

			var def1 = new ShopPackDefinition(
				null,
				"Standard License Pack",
				LicensesMod.Config.LicensePackCostInPP,
				new List<ShopPackItemDefinition> { licDef }
			);
			var def2 = new ShopPackDefinition(
				null,
				"Wildcard License Pack",
				LicensesMod.Config.WildcardLicensePackCostInPP,
				new List<ShopPackItemDefinition> { wildLicDef }
			);
			
			if( LicensesMod.Config.ResetWayfarerShop ) {
				RewardsAPI.ShopClear();
			}

			if( LicensesMod.Config.LicensesPerPack > 0 ) {
				RewardsAPI.ShopAddPack( def1 );
			}
			if( LicensesMod.Config.WildcardLicensesPerPack > 0 ) {
				RewardsAPI.ShopAddPack( def2);
			}
		}
 public override List <int> getStagePartsDrops(NPC npc, Player p, List <int> listSoFar = null)
 {
     if (mod != null)
     {
         if ((bool)mod.Call(new object[] { "GetBossDowned", "providence" }))
         {
             listSoFar.Add(ModContent.ItemType <PostProvidencePart>());
         }
         if ((bool)mod.Call(new object[] { "GetBossDowned", "devourerofgods" }))
         {
             listSoFar.Add(ModContent.ItemType <PostDevourerOfGodsPart>());
         }
         Type w = mod.GetType().Assembly.GetType("CalamityMod.World.CalamityWorld");
         if (w != null)
         {
             if ((bool)(w.GetField("buffedEclipse", BindingFlags.Static | BindingFlags.Public).GetValue(null)))
             {
                 listSoFar.Add(ModContent.ItemType <PostYharonPart>());
             }
         }
         return(new List <int>());
     }
     return(base.getStagePartsDrops(npc, p, listSoFar));
 }
Пример #24
0
        // TODO: Port?
        //public override void Close()
        //{
        //	// Fix a tModLoader bug.
        //	var slots = new int[] {
        //		GetSoundSlot(SoundType.Music, "Sounds/Music/CrystalKing"),
        //		GetSoundSlot(SoundType.Music, "Sounds/Music/CrystallineFlows")
        //	};
        //	foreach (var slot in slots) // Other mods crashing during loading can leave Main.music in a weird state.
        //	{
        //		Main.audioSystem.IsTrackPlaying(slot)
        //		if (Main.music.IndexInRange(slot) && Main.music[slot]?.IsPlaying == true)
        //		{
        //			Main.music[slot].Stop(Microsoft.Xna.Framework.Audio.AudioStopOptions.Immediate);
        //		}
        //	}

        //	base.Close();
        //}

        public override void PostSetupContent()
        {
            ModLoader.TryGetMod("BossChecklist", out Mod bossChecklist);
            if (bossChecklist != null)
            {
                bossChecklist.Call(
                    "AddBoss",
                    11.8f,
                    ModContent.NPCType <NPCs.Bosses.CrystalKing>(),
                    this,
                    "Crystal King",
                    (Func <bool>)(() => CrystalWorld.downedCrystalKing),
                    ModContent.ItemType <Items.CrypticCrystal>(),
                    new List <int> {
                    ModContent.ItemType <Items.Placeable.KingTrophy>(), ModContent.ItemType <Items.Armor.CrystalMask>()
                },
                    new List <int> {
                    ModContent.ItemType <Items.Accessories.CrystalJewel>(), ModContent.ItemType <Items.CrystiliumBar>(), ModContent.ItemType <Items.Weapons.Cryst>(), ModContent.ItemType <Items.Weapons.Callandor>(), ModContent.ItemType <Items.Weapons.QuartzSpear>(), ModContent.ItemType <Items.Weapons.ShiningTrigger>(), ModContent.ItemType <Items.Weapons.Slamborite>(), ModContent.ItemType <Items.Weapons.Shimmer>(), ModContent.ItemType <Items.Weapons.Shatterocket>(), ModContent.ItemType <Items.Weapons.RoyalShredder>()
                },
                    "Right click on a Crystal Fountain with a [i:" + ModContent.ItemType <Items.CrypticCrystal>() + "] in your inventory",
                    "",
                    "CrystiliumMod/NPCs/Bosses/CrystalKingBossLog");
            }
        }
Пример #25
0
        public override bool NewRightClick(int i, int j)
        {
            Player player = Main.LocalPlayer;
            int    type   = ModContent.ItemType <Items.Boss.Greed.WKG.GravitySphere>();

            if (BasePlayer.HasItem(player, type, 1) && !AAWorld.GravActive)
            {
                for (int m = 0; m < 50; m++)
                {
                    Item item = player.inventory[m];
                    if (item != null && item.type == type && item.stack >= 1)
                    {
                        item.stack--;
                        AAWorld.GravActive = true;
                        break;
                    }
                }
            }
            else
            {
                BaseUtility.Chat(Lang.TheEquinox("GravAltar"), Color.SkyBlue);
            }
            return(true);
        }
Пример #26
0
        public override void AddRecipes()
        {
            if (!Fargowiltas.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <NoblesHat>());
            recipe.AddIngredient(ModContent.ItemType <NoblesJerkin>());
            recipe.AddIngredient(ModContent.ItemType <NoblesLeggings>());
            recipe.AddIngredient(ModContent.ItemType <RingofUnity>());
            recipe.AddIngredient(ModContent.ItemType <BrassCap>());
            recipe.AddIngredient(ModContent.ItemType <WaxyRosin>());
            recipe.AddIngredient(ModContent.ItemType <JarOMayo>());
            recipe.AddIngredient(ModContent.ItemType <Bongos>());
            recipe.AddIngredient(ModContent.ItemType <Nocturne>());
            recipe.AddIngredient(ModContent.ItemType <Roboboe>());

            recipe.AddTile(TileID.DemonAltar);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
        public override void AddRecipes()
        {
            if (!Fargowiltas.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <ShadeMasterMask>());
            recipe.AddIngredient(ModContent.ItemType <ShadeMasterGarb>());
            recipe.AddIngredient(ModContent.ItemType <ShadeMasterTreads>());
            recipe.AddIngredient(ModContent.ItemType <ClockWorkBomb>(), 300);
            recipe.AddIngredient(ModContent.ItemType <KrakenThrown>());
            recipe.AddIngredient(ModContent.ItemType <BugenkaiShuriken>(), 300);
            recipe.AddIngredient(ModContent.ItemType <ShadeKunai>(), 300);
            recipe.AddIngredient(ModContent.ItemType <Soulslasher>(), 300);
            recipe.AddIngredient(ModContent.ItemType <LihzahrdKukri>(), 300);
            recipe.AddIngredient(ModContent.ItemType <TechniqueShadowDance>());

            recipe.AddTile(TileID.CrystalBall);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
Пример #28
0
        public override void AddRecipes()
        {
            if (!Fargowiltas.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <FallenPaladinFacegaurd>());
            recipe.AddIngredient(ModContent.ItemType <FallenPaladinCuirass>());
            recipe.AddIngredient(ModContent.ItemType <FallenPaladinGreaves>());
            recipe.AddIngredient(ModContent.ItemType <TemplarEnchant>());
            recipe.AddIngredient(ModContent.ItemType <Wynebgwrthucher>());
            recipe.AddIngredient(ModContent.ItemType <RebirthStatuette>());
            recipe.AddIngredient(ModContent.ItemType <TwilightStaff>());
            recipe.AddIngredient(ModContent.ItemType <BulwarkStaff>());
            recipe.AddIngredient(ModContent.ItemType <LightBringerWarhammer>());
            recipe.AddIngredient(ModContent.ItemType <GoldDuck>());

            recipe.AddTile(TileID.CrystalBall);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
Пример #29
0
        public override void SetStaticDefaults()
        {
            DisplayName.SetDefault("Terra Force");

            DisplayName.AddTranslation(GameCulture.Chinese, "泰拉之力");

            string tooltip =
                $"[i:{ModContent.ItemType<CopperEnchant>()}] Attacks have a chance to spawn lightning and explosions\n" +
                $"[i:{ModContent.ItemType<TinEnchant>()}] Sets your critical strike chance to 10%\n" +
                $"[i:{ModContent.ItemType<TinEnchant>()}] Every crit will increase it by 5% up to double your current crit chance\n" +
                $"[i:{ModContent.ItemType<IronEnchant>()}] Right Click to guard with your shield\n" +
                $"[i:{ModContent.ItemType<IronEnchant>()}] You attract items from a larger range\n" +
                $"[i:{ModContent.ItemType<LeadEnchant>()}] Attacks may inflict enemies with Lead Poisoning\n" +
                $"[i:{ModContent.ItemType<TungstenEnchant>()}] 150% increased sword size\n" +
                $"[i:{ModContent.ItemType<TungstenEnchant>()}] Every quarter second a projectile will be doubled in size\n" +
                $"[i:{ModContent.ItemType<ObsidianEnchant>()}]Grants immunity to fire and lava\n" +
                $"[i:{ModContent.ItemType<ObsidianEnchant>()}]While standing in lava or lava wet, your attacks spawn explosions\n" +
                "'The land lends its strength'";

            Tooltip.SetDefault(tooltip);

            string tooltip_ch = @"攻击有几率释放闪电击打敌人
将你的基础暴击率设为10%
每次暴击时都会增加5%暴击率,增加的暴击率的最大值为你当前最大暴击率数值x2
被击中后会降低暴击率
右键进行盾牌格挡
扩大你的拾取范围
增加150%剑的尺寸
每过1/4秒便会使一个弹幕的尺寸翻倍
攻击有几率造成铅中毒减益
使你免疫火与岩浆并获得在岩浆中的机动性
你的攻击会引发爆炸
'大地赐予它力量'";

            Tooltip.AddTranslation(GameCulture.Chinese, tooltip_ch);
        }
Пример #30
0
        public override void AddRecipes()
        {
            if (!FargowiltasSoulsDLC.Instance.ThoriumLoaded)
            {
                return;
            }

            ModRecipe recipe = new ModRecipe(mod);

            recipe.AddIngredient(ModContent.ItemType <SilkCap>());
            recipe.AddIngredient(ModContent.ItemType <SilkHat>());
            recipe.AddIngredient(ModContent.ItemType <SilkTabard>());
            recipe.AddIngredient(ModContent.ItemType <SilkLeggings>());
            recipe.AddIngredient(ItemID.WandofSparking);
            recipe.AddIngredient(ModContent.ItemType <IceCube>());
            recipe.AddIngredient(ModContent.ItemType <WindGust>());
            recipe.AddIngredient(ModContent.ItemType <Cure>());
            recipe.AddIngredient(ItemID.UlyssesButterfly);
            recipe.AddIngredient(ItemID.SilkRopeCoil);

            recipe.AddTile(TileID.DemonAltar);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }