1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-04-24 02:01:03 +00:00

Setting that shows last milestone gained

Also fixed the screen width detection
This commit is contained in:
Harley White 2021-05-06 16:26:44 -04:00
parent 69dc926eb6
commit e6c03dbf4d
8 changed files with 57 additions and 40 deletions

View file

@ -297,6 +297,7 @@ function updateMilestones(layer) {
if (!(hasMilestone(layer, id)) && layers[layer].milestones[id].done()) {
player[layer].milestones.push(id)
if (tmp[layer].milestonePopups || tmp[layer].milestonePopups === undefined) doPopup("milestone", tmp[layer].milestones[id].requirementDescription, "Milestone Gotten!", 3, tmp[layer].color);
player[layer].lastMilestone = id
}
}
}