public int reload(int ammunition){
		if (!isReloading() && ammunition>0 && magazineCapacity-ammunitionInMagazine!=0 && reloadTime!=0){
			lastTimeReloaded=timeNow();
			
			int missingBullets=magazineCapacity-ammunitionInMagazine;
			if(ammunition <= missingBullets){
				ammunitionInMagazine+=ammunition;
				return 0;
			} else {
				ammunitionInMagazine+=missingBullets;
				return ammunition-missingBullets;
		
			}
		}
		return ammunition;
	}