1
0
mirror of https://github.com/osmarks/website synced 2025-09-02 10:48:03 +00:00

Patch achievement system

This commit is contained in:
2022-03-07 20:07:16 +00:00
parent bac2a75be6
commit ab801b8848
10 changed files with 166 additions and 71 deletions

View File

@@ -29,12 +29,12 @@ description: It is pitch black (if you ignore all of the lighting). You are like
<script>
function unlockAchievement(name) {
if ("points" in window) {
points.unlockAchievement(name)
points.then(points => points.unlockAchievement(name))
}
}
function updateMetric(name, fn, def) {
if ("points" in window) {
points.updateMetric(name, fn, def)
points.then(points => points.updateMetric(name, fn, def))
}
}
var state="start"; // SPOILERS SPOILERS OH GOD SPOILERS OH GOD SPOILERS