diff --git a/js/mod.js b/js/mod.js
index f7d62f7..39cef6b 100644
--- a/js/mod.js
+++ b/js/mod.js
@@ -9,8 +9,6 @@ let modInfo = {
initialStartPoints: new Decimal (10), // Used for hard resets and new players
offlineLimit: 1, // In hours
- startTab: "none",
- startNavTab: "tree",
}
// Set your version in num and name
diff --git a/js/tree.js b/js/tree.js
new file mode 100644
index 0000000..82a5db4
--- /dev/null
+++ b/js/tree.js
@@ -0,0 +1,15 @@
+var layoutInfo = {
+ startTab: "none",
+ showTree: true,
+
+ treeLayout: ""
+
+
+}
+
+
+// A "ghost" layer which offsets other layers in the tree
+addNode("spook", {
+ layerShown: "ghost",
+},
+)
diff --git a/js/utils.js b/js/utils.js
index 58f7bd4..8371970 100644
--- a/js/utils.js
+++ b/js/utils.js
@@ -7,7 +7,8 @@ function exponentialFormat(num, precision) {
m = new Decimal(1)
e = e.add(1)
}
- return m.toStringWithDecimalPlaces(precision)+"e"+e.toStringWithDecimalPlaces(0)
+ e = (e.gte(10000) ? commaFormat(e, 0) : e.toStringWithDecimalPlaces(0))
+ return m.toStringWithDecimalPlaces(precision)+"e"+e
}
function commaFormat(num, precision) {
@@ -61,7 +62,9 @@ function formatWhole(decimal) {
function formatTime(s) {
if (s<60) return format(s)+"s"
else if (s<3600) return formatWhole(Math.floor(s/60))+"m "+format(s%60)+"s"
- else return formatWhole(Math.floor(s/3600))+"h "+formatWhole(Math.floor(s/60)%60)+"m "+format(s%60)+"s"
+ else if (s<86400) return formatWhole(Math.floor(s/3600))+"h "+formatWhole(Math.floor(s/60)%60)+"m "+format(s%60)+"s"
+ else if (s<31536000) return formatWhole(Math.floor(s/84600)%365)+"d " + formatWhole(Math.floor(s/3600)%24)+"h "+formatWhole(Math.floor(s/60)%60)+"m "+format(s%60)+"s"
+ else return formatWhole(Math.floor(s/31536000))+"y "+formatWhole(Math.floor(s/84600)%365)+"d " + formatWhole(Math.floor(s/3600)%24)+"h "+formatWhole(Math.floor(s/60)%60)+"m "+format(s%60)+"s"
}
function toPlaces(x, precision, maxAccepted) {
@@ -80,8 +83,8 @@ function save() {
function startPlayerBase() {
return {
- tab: modInfo.startTab,
- navTab: modInfo.startNavTab,
+ tab: layoutInfo.startTab,
+ navTab: (layoutInfo.showTree ? "tree" : "none"),
time: Date.now(),
autosave: true,
notify: {},