diff --git a/experiments/heavpoot-game/index.html b/experiments/heavpoot-game/index.html index 6911493..3aac298 100644 --- a/experiments/heavpoot-game/index.html +++ b/experiments/heavpoot-game/index.html @@ -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="" } diff --git a/experiments/points/index.js b/experiments/points/index.js index 4868749..9d4d2f4 100644 --- a/experiments/points/index.js +++ b/experiments/points/index.js @@ -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 => {