1
0
mirror of https://github.com/osmarks/website synced 2024-11-08 20:29:55 +00:00

track deaths, locations in heavpoot's game

This commit is contained in:
osmarks 2020-07-03 22:19:11 +01:00
parent 060ac1001a
commit 8890b18505
2 changed files with 13 additions and 2 deletions

View File

@ -32,6 +32,11 @@ description: It is pitch black (if you ignore all of the lighting). You are like
points.unlockAchievement(name)
}
}
function updateMetric(name, fn, def) {
if ("points" in window) {
points.updateMetric(name, fn, def)
}
}
var state="start"; // SPOILERS SPOILERS OH GOD SPOILERS OH GOD SPOILERS
var game={
"start":["hi you are level 3³³ ersearcher in the scp floundation. whatdo?",["173","go to SCP-173s chamber"],["antimemetics","go to the antimemetics division"],["start-2","keep going somewhere"],["blackmoonhowl","Does the black moon howl?","v"]],
@ -115,8 +120,12 @@ description: It is pitch black (if you ignore all of the lighting). You are like
return res
}
function c(st){
updateMetric("heavpootLocations", function(x) { return x + 1 }, 0)
if (st == "dontquestionit") { unlockAchievement("heavgame1") }
if (st == "blackmoondecode") { unlockAchievement("heavgame2") }
if (st == "blackmoondeath" || st == "6094" || st == "173" || st == "lacerated" || st == "traitor") {
updateMetric("heavpootDeaths", function(x) { return x + 1 }, 0)
}
if (st=="blackmoonno"){
redacted=""
}

View File

@ -16,10 +16,12 @@ const metricDisplayInfo = {
timeSpent: { name: "Time spent", units: "second" },
achievements: { name: "Achievements" },
foesVanquished: { name: "Foes vanquished", units: "foe" },
deaths: { name: "Deaths", units: "death" },
deaths: { name: "Emu War Deaths", units: "death" },
loremParagraphs: { name: "Lorem Ipsum paragraphs seen", units: "paragraph" },
commentsPosted: { name: "Comments posted", units: "comment" },
greatestInfipage: { name: "Largest infipage visited" }
greatestInfipage: { name: "Largest infipage visited" },
heavpootLocations: { name: "Heavpoot's Game states", units: "state" },
heavpootDeaths: { name: "Heavpoot's Game deaths", units: "deaths" }
}
const displayMetric = metric => {