1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-24 01:11:46 +00:00

Fixed things in tabFormat not updating

This commit is contained in:
Harley White 2021-05-07 09:47:25 -04:00
parent c5c78b3eb0
commit 124df2d3f9
4 changed files with 11 additions and 11 deletions

View file

@ -1,6 +1,9 @@
# The Modding Tree changelog: # The Modding Tree changelog:
# v2.5: Dreams Really Do Come True - 5/7/21 # v2.5.1 - 5/7/21
- Fixed dynamic things in tabFormat not updating.
## v2.5: Dreams Really Do Come True - 5/7/21
- Optimizations, hopefully a significant amount. - Optimizations, hopefully a significant amount.
- Added OOM/s point gen display at high values (thanks to Ducdat!) - Added OOM/s point gen display at high values (thanks to Ducdat!)
- Only one tab will display if the window is not wide enough (also thanks to Ducdat!) - Only one tab will display if the window is not wide enough (also thanks to Ducdat!)
@ -14,7 +17,8 @@
- Locked (not yet visible) milestones no longer take up space. Also fixed hidden milestones taking a tiny bit of space. - Locked (not yet visible) milestones no longer take up space. Also fixed hidden milestones taking a tiny bit of space.
- Re-centered respec buttons. - Re-centered respec buttons.
- Force-displayed tooltips are not hidden by resets. - Force-displayed tooltips are not hidden by resets.
- Added formatting support for very small numbers. Disabled in most places by default because rounding errors can cause issues. Access it with formatSmall, or enable it globally by adding "allowSmall: true" to modInfo. - Added formatting support for very small numbers. Disabled in most places by default because rounding errors might cause issues. Access it with formatSmall, or enable it globally by adding "allowSmall: true" to modInfo.
# v2.4.1 - 4/29/21 # v2.4.1 - 4/29/21
- A number of minor fixes, many thanks to thepaperpilot. - A number of minor fixes, many thanks to thepaperpilot.

View file

@ -11,7 +11,7 @@ let modInfo = {
// Set your version in num and name // Set your version in num and name
let VERSION = { let VERSION = {
num: "2.5", num: "2.5.1",
name: "Dreams Really Do Come True", name: "Dreams Really Do Come True",
} }

View file

@ -5,7 +5,7 @@ var scrolled = false;
// Don't change this // Don't change this
const TMT_VERSION = { const TMT_VERSION = {
tmtNum: "2.5", tmtNum: "2.5.1",
tmtName: "Dreams Really Do Come True" tmtName: "Dreams Really Do Come True"
} }
@ -333,7 +333,7 @@ function gameLoop(diff) {
addTime(diff) addTime(diff)
player.points = player.points.add(tmp.pointGen.times(diff)).max(0) player.points = player.points.add(tmp.pointGen.times(diff)).max(0)
for (x = 0; x <= maxRow; x++){ for (let x = 0; x <= maxRow; x++){
for (item in TREE_LAYERS[x]) { for (item in TREE_LAYERS[x]) {
let layer = TREE_LAYERS[x][item] let layer = TREE_LAYERS[x][item]
player[layer].resetTime += diff player[layer].resetTime += diff
@ -351,7 +351,7 @@ function gameLoop(diff) {
} }
} }
for (x = maxRow; x >= 0; x--){ for (let x = maxRow; x >= 0; x--){
for (item in TREE_LAYERS[x]) { for (item in TREE_LAYERS[x]) {
let layer = TREE_LAYERS[x][item] let layer = TREE_LAYERS[x][item]
if (tmp[layer].autoPrestige && tmp[layer].canReset) doReset(layer); if (tmp[layer].autoPrestige && tmp[layer].canReset) doReset(layer);

View file

@ -134,11 +134,7 @@ function updateTempData(layerData, tmpData, funcsData) {
NaNalert = true; NaNalert = true;
} }
} }
if (tmpData[item] === undefined)
Vue.set(tmpData, item, value) Vue.set(tmpData, item, value)
else
tmpData[item]=value
} }
} }
} }