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:
parent
1a172ad61d
commit
e7b83e634d
4 changed files with 6 additions and 2 deletions
js
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue