1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-04 07:11:09 +00:00

Fixed diff=0 and deactivated milestones

This commit is contained in:
Harley White 2021-06-30 23:07:44 -04:00
parent 1a172ad61d
commit e7b83e634d
4 changed files with 6 additions and 2 deletions

View file

@ -64,7 +64,7 @@ function updateWidth() {
function updateOomps(diff)
{
tmp.other.oompsMag = 0
if (player.points.lte(new Decimal(1e100))) return
if (player.points.lte(new Decimal(1e100)) || diff == 0) return
var pp = new Decimal(player.points);
var lp = tmp.other.lastPoints || new Decimal(0);

View file

@ -256,6 +256,7 @@ function toNumber(x) {
}
function updateMilestones(layer) {
if (tmp[layer].deactivated) return
for (id in layers[layer].milestones) {
if (!(hasMilestone(layer, id)) && layers[layer].milestones[id].done()) {
player[layer].milestones.push(id)
@ -267,6 +268,7 @@ function updateMilestones(layer) {
}
function updateAchievements(layer) {
if (tmp[layer].deactivated) return
for (id in layers[layer].achievements) {
if (isPlainObject(layers[layer].achievements[id]) && !(hasAchievement(layer, id)) && layers[layer].achievements[id].done()) {
player[layer].achievements.push(id)