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:
parent
060ac1001a
commit
8890b18505
@ -32,6 +32,11 @@ description: It is pitch black (if you ignore all of the lighting). You are like
|
|||||||
points.unlockAchievement(name)
|
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 state="start"; // SPOILERS SPOILERS OH GOD SPOILERS OH GOD SPOILERS
|
||||||
var game={
|
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"]],
|
"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
|
return res
|
||||||
}
|
}
|
||||||
function c(st){
|
function c(st){
|
||||||
|
updateMetric("heavpootLocations", function(x) { return x + 1 }, 0)
|
||||||
if (st == "dontquestionit") { unlockAchievement("heavgame1") }
|
if (st == "dontquestionit") { unlockAchievement("heavgame1") }
|
||||||
if (st == "blackmoondecode") { unlockAchievement("heavgame2") }
|
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"){
|
if (st=="blackmoonno"){
|
||||||
redacted=""
|
redacted=""
|
||||||
}
|
}
|
||||||
|
@ -16,10 +16,12 @@ const metricDisplayInfo = {
|
|||||||
timeSpent: { name: "Time spent", units: "second" },
|
timeSpent: { name: "Time spent", units: "second" },
|
||||||
achievements: { name: "Achievements" },
|
achievements: { name: "Achievements" },
|
||||||
foesVanquished: { name: "Foes vanquished", units: "foe" },
|
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" },
|
loremParagraphs: { name: "Lorem Ipsum paragraphs seen", units: "paragraph" },
|
||||||
commentsPosted: { name: "Comments posted", units: "comment" },
|
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 => {
|
const displayMetric = metric => {
|
||||||
|
Loading…
Reference in New Issue
Block a user