public void update(String name, PlayerCharacter p)
	{
		//Tests if the name of the supplied is the same as the items name.
	
			int amount = 0;
			for(Item item : p.getInventory())
			{
				if(item.getName().equals(itemToObtain.getName()))
				{
					amount++;
				}
			}
			
			if(p.getWeapon() != null)
			{
				if(p.getWeapon().getName().equals(itemToObtain.getName()))
				{
					amount++;
				}
			}
			
			if(p.getArmor() != null)
			{
				if(p.getArmor().getName().equals(itemToObtain.getName()))
				{
					amount++;
				}
			}
			
			
			setNumberDone(amount);
			updateStatus();
		}