mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-22 00:21:32 +00:00
idk
This commit is contained in:
parent
b20e35919e
commit
0b50935be1
2 changed files with 14 additions and 12 deletions
21
index.html
21
index.html
|
@ -1,5 +1,12 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<head>
|
<head>
|
||||||
|
<script>
|
||||||
|
const modInfo = {
|
||||||
|
name: "The Modding Tree",
|
||||||
|
id: "modbase",
|
||||||
|
pointsName: "points"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<title>The Modding Tree</title>
|
<title>The Modding Tree</title>
|
||||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||||
<link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
|
||||||
|
@ -11,13 +18,14 @@
|
||||||
<script type="text/javascript" src="js/game.js"></script>
|
<script type="text/javascript" src="js/game.js"></script>
|
||||||
<script type="text/javascript" src="js/v.js"></script>
|
<script type="text/javascript" src="js/v.js"></script>
|
||||||
<script type="text/javascript" src="js/canvas.js"></script>
|
<script type="text/javascript" src="js/canvas.js"></script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body onload="load()">
|
<body onload="load()">
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<div class="vl" v-if="player.tab!='tree'&&player.tab!='gameEnded'"></div>
|
<div class="vl" v-if="player.tab!='tree'&&player.tab!='gameEnded'"></div>
|
||||||
<div v-if="player.tab=='gameEnded'" class="fullWidth">
|
<div v-if="player.tab=='gameEnded'" class="fullWidth">
|
||||||
<br>
|
<br>
|
||||||
<h2>The Modding Tree {{VERSION.withoutName}}</h2><br><br>
|
<h2>{{modInfo.name}} {{VERSION.withoutName}}</h2><br><br>
|
||||||
<h3>Congratulations! You have reached the end and beaten this game, but for now...</h3><br>
|
<h3>Congratulations! You have reached the end and beaten this game, but for now...</h3><br>
|
||||||
<h3>Please check the Discord to see there are new content updates!</h3><br><br>
|
<h3>Please check the Discord to see there are new content updates!</h3><br><br>
|
||||||
<div v-if="!player.timePlayedReset">It took you {{formatTime(player.timePlayed)}} to beat the game.</div>
|
<div v-if="!player.timePlayedReset">It took you {{formatTime(player.timePlayed)}} to beat the game.</div>
|
||||||
|
@ -51,7 +59,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div v-if="player.tab=='info'" class="col right">
|
<div v-if="player.tab=='info'" class="col right">
|
||||||
<button class="back" onclick="showTab('tree')">←</button><br>
|
<button class="back" onclick="showTab('tree')">←</button><br>
|
||||||
<h2>The Modding Tree</h2>
|
<h2>{{modInfo.name}}</h2>
|
||||||
<br>
|
<br>
|
||||||
<h3>{{VERSION.withName}}</h3>
|
<h3>{{VERSION.withName}}</h3>
|
||||||
<br>
|
<br>
|
||||||
|
@ -107,7 +115,7 @@
|
||||||
<br>
|
<br>
|
||||||
<span v-if="player.points.lt('1e1000')">You have </span>
|
<span v-if="player.points.lt('1e1000')">You have </span>
|
||||||
<h2 id="points">{{format(player.points)}}</h2>
|
<h2 id="points">{{format(player.points)}}</h2>
|
||||||
<span v-if="player.points.lt('1e1e6')"> points</span>
|
<span v-if="player.points.lt('1e1e6')"> {{modInfo.pointsName}}</span>
|
||||||
<br><br><br><br><br>
|
<br><br><br><br><br>
|
||||||
<table>
|
<table>
|
||||||
<td><layer-node layer='c' abb='C'></layer-node></td>
|
<td><layer-node layer='c' abb='C'></layer-node></td>
|
||||||
|
@ -147,11 +155,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
|
||||||
// Mod Identifier, for ~~btpt~~ any userscripts. Consider adding this to your mod!
|
|
||||||
const modInfo = {
|
|
||||||
name: "The Modding Tree",
|
|
||||||
id: "modbase"
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
|
@ -99,13 +99,14 @@ function exportSave() {
|
||||||
document.body.removeChild(el);
|
document.body.removeChild(el);
|
||||||
}
|
}
|
||||||
|
|
||||||
function importSave(imported=undefined) {
|
function importSave(imported=undefined, forced=false) {
|
||||||
if (imported===undefined) imported = prompt("Paste your save here")
|
if (imported===undefined) imported = prompt("Paste your save here")
|
||||||
try {
|
try {
|
||||||
tempPlr = Object.assign(getStartPlayer(), JSON.parse(atob(imported)))
|
tempPlr = Object.assign(getStartPlayer(), JSON.parse(atob(imported)))
|
||||||
if(tempPlr.versionType != "Modding") // Wrong save
|
if(tempPlr.versionType != modInfo.id && !forced) // Wrong save (use "Forced" to force it to accept.)
|
||||||
return
|
return
|
||||||
player = tempPlr;
|
player = tempPlr;
|
||||||
|
player.versionType = modInfo.id
|
||||||
fixSave()
|
fixSave()
|
||||||
save()
|
save()
|
||||||
window.location.reload()
|
window.location.reload()
|
||||||
|
|
Loading…
Reference in a new issue