add confirmation to startrealityover

This commit is contained in:
Omsi 2018-10-07 22:17:33 -07:00
parent 5b3ba19e1e
commit 4621a25828
2 changed files with 6 additions and 4 deletions

View File

@ -2396,7 +2396,7 @@
<button id="realitymachine" onclick="reality()">Make a new reality
<br>Machines gained: 1
<br>Glyph level: 1</button>
<button onclick="startRealityOver()">Start reality over (without gaining anything (no confirmation))</button>
<button onclick="startRealityOver()">Start reality over (without gaining anything)</button>
<br>
<br>
<button class="realityUpgrade" onclick="toggleGlyphRespec()" id="glyphRespec" style="width:150px; height: 40px; margin: auto">Clear glyph slots on Reality</button>

View File

@ -294,7 +294,9 @@ function unlockRealityUpgrade(id) {
}
function startRealityOver() {
glyphSelected = true
realizationCheck = 1
reality(true, true)
if(confirm("This will put you at the start of your reality and reset your progress in this reality. Are you sure you want to do this?")) {
glyphSelected = true
realizationCheck = 1
reality(true, true)
}
}