java.js
// Base for upgrades that are of other types
Base for upgrades that are of other types
Base for upgrades that are of other types
function specialUpgrade(cost, req, reqvar, varToIncrease, increaseValue, elementIden, levelThing) {
	if ((reqvar >= req) && (size >= cost)) {
		size = size - cost;
		refreshAll();
		upgradesbought++;
		spentonupgrades = spentonupgrades + cost;
		document.getElementById(elementIden).style.display = "none";
		document.getElementById(levelThing).innerHTML = "level 1";
		return varToIncrease + increaseValue;
	}
}
function specialUpgrade ( cost , req , reqvar , varToIncrease , increaseValue , elementIden , levelThing ) { if ( ( reqvar >= req ) && ( size >= cost ) ) { size = size - cost ; refreshAll ( ) ; upgradesbought ++ ; spentonupgrades = spentonupgrades + cost ; document . getElementById ( elementIden ) . style . display = "none" ; document . getElementById ( levelThing ) . innerHTML = "level 1" ; return varToIncrease + increaseValue ; } }
Base for upgrades that are of other types
Base for upgrades that are of other types