java.js
// A base for refreshing displays on special buttons
A base for refreshing displays on special buttons
A base for refreshing displays on special buttons
function refreshSpecialModel(pointVariable, pointReq, ElementIdent, lockedend, unlockedtext, doRound) {
	const elmchang = document.getElementById(ElementIdent);
	if (pointVariable >= pointReq) {elmchang.innerHTML = unlockedtext;}
	else {
		const subtractending = pointReq - pointVariable;
		if (doRound === 1) {
			roundSizeDisp(subtractending, 'n', 1);
			elmchang.innerHTML = newdisp + lockedend;
		} else {elmchang.innerHTML = subtractending + lockedend;}
	}
}
function refreshSpecialModel ( pointVariable , pointReq , ElementIdent , lockedend , unlockedtext , doRound ) { const elmchang = document . getElementById ( ElementIdent ) ; if ( pointVariable >= pointReq ) { elmchang . innerHTML = unlockedtext ; } else { const subtractending = pointReq - pointVariable ; if ( doRound === 1 ) { roundSizeDisp ( subtractending , 'n' , 1 ) ; elmchang . innerHTML = newdisp + lockedend ; } else { elmchang . innerHTML = subtractending + lockedend ; } } }
A base for refreshing displays on special buttons
A base for refreshing displays on special buttons
// shows the text when its uplocked i guess