1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-22 08:31:33 +00:00

Enforces changing the gameInfo id.

This commit is contained in:
Harley White 2022-06-25 20:01:00 -04:00
parent 6cbe548084
commit 5954e8ef7e
2 changed files with 3 additions and 0 deletions

View file

@ -114,6 +114,8 @@ var systemComponents = {
<br>
<span v-if="player.points.lt('1e1000')" class="overlayThing">You have </span>
<h2 class="overlayThing" id="points">{{format(player.points)}}</h2>
<span v-if="modInfo.gameInfo.id =='mygame'" class="overlayThing" style="font-size:40px">Change your game's id in gameInfo. Saving is disabled until you do.</span>
<br>
<span v-if="player.points.lt('1e1e6')" class="overlayThing"> {{pluralize(player.points, gameInfo.singularName || gameInfo.pointsName, gameInfo.pointsName)}}</span>
<br>
<span v-if="canGenPoints()" class="overlayThing">({{tmp.other.oompsMag != 0 ? format(tmp.other.oomps) + " OOM" + (tmp.other.oompsMag < 0 ? "^OOM" : tmp.other.oompsMag > 1 ? "^" + tmp.other.oompsMag : "") + "s" : formatSmall(getPointGen())}}/sec)</span>

View file

@ -1,6 +1,7 @@
// ************ Save stuff ************
function save(force) {
NaNcheck(player)
if (gameInfo.id == "mygame") return
if (NaNalert && !force) return
localStorage.setItem(gameInfo.id, btoa(unescape(encodeURIComponent(JSON.stringify(player)))));
localStorage.setItem(gameInfo.id+"_options", btoa(unescape(encodeURIComponent(JSON.stringify(options)))));