QuickSpawnItem() публичный Метод

public QuickSpawnItem ( int item, int stack = 1 ) : void
item int
stack int
Результат void
Пример #1
1
 public override void OpenBossBag(Player player)
 {
     int amountToDrop = Main.rand.Next(20,30);
     player.QuickSpawnItem(mod.ItemType("DarkGel"), amountToDrop);
     if (Main.rand.Next(2) == 0)
     {
         player.QuickSpawnItem(mod.ItemType("NightGelStabilizer"), 1);
     }
     if (Main.rand.Next(2) == 0)
     {
         player.QuickSpawnItem(mod.ItemType("NightSpiral"), 1);
     }
     if (Main.rand.Next(2) == 0)
     {
         player.QuickSpawnItem(mod.ItemType("DarkSlimeStaff"), 1);
     }
     if (Main.rand.Next(2) == 0)
     {
         player.QuickSpawnItem(mod.ItemType("PurpleDart"), 1);
     }
 }
 public override void RightClick(Player player)
 {
     player.QuickSpawnItem(ItemID.StardustHelmet);
     player.QuickSpawnItem(ItemID.StardustBreastplate);
     player.QuickSpawnItem(ItemID.StardustLeggings);
     player.QuickSpawnItem(ItemID.NecromanticScroll);
     player.QuickSpawnItem(ItemID.PapyrusScarab);
     base.RightClick(player);
 }
Пример #3
0
 public override void OpenBossBag(Player player)
 {
     player.TryGettingDevArmor();
     if(Main.rand.Next(7) == 0)
     {
     player.QuickSpawnItem(mod.ItemType("AbominationMask"));
     }
     player.QuickSpawnItem(mod.ItemType("MoltenDrill"));
     player.QuickSpawnItem(mod.ItemType("SixColorShield"));
 }
Пример #4
0
        public override void OpenBossBag(Player player)
        {
            int amountToDrop = Main.rand.Next(20,30);
            player.QuickSpawnItem(mod.ItemType("ForestEnergy"), amountToDrop);
                player.QuickSpawnItem(mod.ItemType("TreeStaff"), 1);

                if (Main.rand.Next(4) == 0)
            {
                player.QuickSpawnItem(mod.ItemType("MegaTreeMask"), 1);
            }
        }
Пример #5
0
		public override void OpenVanillaBag(string context, Player player, int arg)
		{
			if (context == "bossBag" && arg == ItemID.FishronBossBag)
			{
				player.QuickSpawnItem(mod.ItemType("Bubble"), Main.rand.Next(8, 13));
			}
		}
Пример #6
0
 public override void RightClick(Player player)
 {
     player.QuickSpawnItem(ItemID.LifeCrystal, 15);
     player.QuickSpawnItem(ItemID.LifeFruit, 20);
     player.QuickSpawnItem(ItemID.ManaCrystal, 9);
     player.QuickSpawnItem(ItemID.AnkhShield);
     player.QuickSpawnItem(ItemID.FrostsparkBoots);
     player.QuickSpawnItem(ItemID.LavaWaders);
     player.QuickSpawnItem(ItemID.CellPhone);
     player.QuickSpawnItem(ItemID.SuspiciousLookingTentacle);
 }
Пример #7
0
		public override void OpenBossBag(Player player)
		{
			player.TryGettingDevArmor();
			player.TryGettingDevArmor();
			int choice = Main.rand.Next(7);
			if (choice == 0)
			{
				player.QuickSpawnItem(mod.ItemType("PuritySpiritMask"));
			}
			else if (choice == 1)
			{
				player.QuickSpawnItem(mod.ItemType("BunnyMask"));
			}
			if (choice != 1)
			{
				player.QuickSpawnItem(ItemID.Bunny);
			}
			player.QuickSpawnItem(mod.ItemType("PurityShield"));
		}
 public override void RightClick(Player player)
 {
     player.QuickSpawnItem(mod.ItemType("FollowingMharadiumBullet"), 999);
     item.stack = 2;
 }
Пример #9
0
 public override void RightClick(Player player)
 {
     player.QuickSpawnItem(mod.ItemType("MharadiumArrow"), 999);
     item.stack = 2;
 }
Пример #10
0
 public override void RightClick(Player player)
 {
     player.QuickSpawnItem(ItemID.LaserDrill);
 }
 public static void OpenBossBags(Player p, int type)
 {
     if (type == 3617)
     {
         int amount = Main.rand.Next(3, 7);
         p.QuickSpawnItem(58, amount);
         if (Main.rand.Next(6) == 0)
         {
             p.QuickSpawnItem(3715, 1);
         }
         if (Main.rand.Next(2) == 0)
         {
             p.QuickSpawnItem(3753, 1);
         }
         p.QuickSpawnItem(3618, 1);
     }
     if (type == 3758)
     {
         p.TryGettingDevArmor();
         int amount = Main.rand.Next(3, 7);
         p.QuickSpawnItem(58, amount);
         if (Main.rand.Next(6) == 0)
         {
             p.QuickSpawnItem(3716, 1);
         }
         p.QuickSpawnItem(3665, 1);
         if (Main.rand.Next(2) == 0)
         {
             p.QuickSpawnItem(3754, 1);
         }
         p.QuickSpawnItem(3720, Main.rand.Next(25, 41));
         p.QuickSpawnItem(1225, Main.rand.Next(15, 31));
     }
 }