java.js
// Checks to see if something was unlocked, and displays a snackbar if it was
Checks to see if something was unlocked, and displays a snackbar if it was
Checks to see if something was unlocked and displays a snackbar if it was
function checkSpecial(pointVariable, pointReq, isUnlockedVar, unlockMessage, displayTime) {
	if (isUnlockedVar === 0) {
		if (pointVariable >= pointReq) {
			displaySnackbar(displayTime, unlockMessage);
			return 1;
		} else {return 0;}
	} else {return 1;}
}
function checkSpecial ( pointVariable , pointReq , isUnlockedVar , unlockMessage , displayTime ) { if ( isUnlockedVar === 0 ) { if ( pointVariable >= pointReq ) { displaySnackbar ( displayTime , unlockMessage ) ; return 1 ; } else { return 0 ; } } else { return 1 ; } }
Checks to see if something was unlocked, and displays a snackbar if it was
Checks to see if something was unlocked and displays a snackbar if it was