mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-05-10 03:51:33 +00:00
More fixes and improvements
This commit is contained in:
parent
4ac7199547
commit
350e941ced
4 changed files with 12 additions and 13 deletions
|
@ -118,7 +118,7 @@ function convertToDecimal() {
|
|||
player.points = new Decimal(player.points)
|
||||
for (layer in layers) {
|
||||
player[layer].points = new Decimal(player[layer].points)
|
||||
player[layer].best = new Decimal(player[layer].best)
|
||||
if (player[layer].best != undefined) player[layer].best = new Decimal(player[layer].best)
|
||||
if (player[layer].total !== undefined) player[layer].total = new Decimal(player[layer].total)
|
||||
if (layers[layer].convertToDecimal) layers[layer].convertToDecimal();
|
||||
}
|
||||
|
@ -298,14 +298,14 @@ function doReset(layer, force=false) {
|
|||
|
||||
if (layers[layer].incr_order){
|
||||
for (lr in layers[layer].incr_order)
|
||||
player.lr.order++
|
||||
if (!player[lr].unl) player[lr].order++
|
||||
}
|
||||
}
|
||||
|
||||
tmp.layerAmt[layer] = new Decimal(0) // quick fix
|
||||
}
|
||||
|
||||
if (layers[layer].resetsNothing()) return
|
||||
if (layers[layer].resetsNothing && layers[layer].resetsNothing()) return
|
||||
|
||||
|
||||
for (layerResetting in layers) {
|
||||
|
|
|
@ -3,7 +3,8 @@ var layers = {
|
|||
startData() { return {
|
||||
unl: true,
|
||||
points: new Decimal(0),
|
||||
best: new Decimal(0),
|
||||
best: new Decimal(0),
|
||||
total: new Decimal(0),
|
||||
upgrades: [],
|
||||
milestones: [],
|
||||
beep: false,
|
||||
|
@ -102,7 +103,6 @@ var layers = {
|
|||
startData() { return {
|
||||
unl: false,
|
||||
points: new Decimal(0),
|
||||
best: new Decimal(0),
|
||||
boop: false,
|
||||
}},
|
||||
color: "#FE0102",
|
||||
|
@ -121,7 +121,6 @@ var layers = {
|
|||
},
|
||||
row: 1,
|
||||
layerShown() {return true},
|
||||
resetsNothing() {return false},
|
||||
branches: [["c", 1]] // Each pair corresponds to a line added to the tree when this node is unlocked. The letter is the other end of the line, and the number affects the color, 1 is default
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue