private int randomizeMinimap(int arg0, int lightness) {
		if (arg0 == -2) {
			return 0xbc614e;
		}
		if (arg0 == -1) {
			if (lightness < 0) {
				lightness = 0;
			} else if (lightness > 127) {
				lightness = 127;
			}
			lightness = 127 - lightness;
			return lightness;
		}
		lightness = lightness * (arg0 & 0x7f) / 128;
		if (lightness < 2) {
			lightness = 2;
		} else if (lightness > 126) {
			lightness = 126;
		}
		return (arg0 & 0xff80) + lightness;
	}