TryGettingDevArmor() private method

private TryGettingDevArmor ( ) : void
return void
Esempio n. 1
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 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"));
 }
 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));
     }
 }