mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-05-05 07:41:04 +00:00
v1.1
It is finally here!
This commit is contained in:
parent
8da71643e5
commit
c08042da7e
9 changed files with 848 additions and 697 deletions
|
@ -212,10 +212,6 @@
|
|||
this.layer = 0;
|
||||
this.mag = 0;
|
||||
}
|
||||
|
||||
if (isNaN(this.sign)) this.sign = 0
|
||||
if (isNaN(this.layer)) this.layer = 0
|
||||
if (isNaN(this.mag)) this.mag = 0
|
||||
}
|
||||
|
||||
Object.defineProperty(Decimal.prototype, "m", {
|
||||
|
@ -2743,4 +2739,4 @@ for (var i = 0; i < 10; ++i)
|
|||
|
||||
return Decimal;
|
||||
|
||||
}));
|
||||
}));
|
16
js/canvas.js
16
js/canvas.js
|
@ -23,10 +23,18 @@ function resizeCanvas() {
|
|||
}
|
||||
|
||||
var colors = {
|
||||
1: "#ffffff",
|
||||
2: "#bfbfbf",
|
||||
3: "#7f7f7f"
|
||||
default: {
|
||||
1: "#ffffff",
|
||||
2: "#bfbfbf",
|
||||
3: "#7f7f7f",
|
||||
},
|
||||
aqua: {
|
||||
1: "#bfefff",
|
||||
2: "#8fb3bf",
|
||||
3: "#5f777f",
|
||||
},
|
||||
}
|
||||
var colors_theme
|
||||
|
||||
function drawTree() {
|
||||
if (!retrieveCanvasData()) return;
|
||||
|
@ -107,7 +115,7 @@ function drawTreeBranch(num1, num2, color_id = 1) { // taken from Antimatter Dim
|
|||
let y2 = end.top + (end.height / 2) + (document.getElementById("treeTab").scrollTop || document.body.scrollTop);
|
||||
ctx.lineWidth = 15;
|
||||
ctx.beginPath();
|
||||
ctx.strokeStyle = colors[color_id]
|
||||
ctx.strokeStyle = colors_theme[color_id]
|
||||
ctx.moveTo(x1, y1);
|
||||
ctx.lineTo(x2, y2);
|
||||
ctx.stroke();
|
||||
|
|
1412
js/game.js
1412
js/game.js
File diff suppressed because it is too large
Load diff
|
@ -41,7 +41,7 @@ function updateTemp() {
|
|||
tmp.enhEff2 = getEnhancerEff2()
|
||||
tmp.subbedEnh = new Decimal(0)
|
||||
if (tmp.challActive ? tmp.challActive.h[52] : true) {
|
||||
tmp.subbedEnh = tmp.subbedEnh.plus(new Decimal(player.h.time).times(40).plus(1).log10().pow(10).max(10)).round()
|
||||
tmp.subbedEnh = tmp.subbedEnh.add(new Decimal(player.h.time).times(40).add(1).log10().pow(10).max(10)).round()
|
||||
}
|
||||
|
||||
tmp.freeExtCap = getFreeExtCapsules()
|
||||
|
@ -121,7 +121,7 @@ function updateTemp() {
|
|||
|
||||
data.compressed = tmp.s.sbUnl.sub(SPACE_BUILDINGS.max).max(0).floor().toNumber()
|
||||
data.work = new Decimal(1)
|
||||
if (player.i.building) data.work = data.work.add(player.i.extraBuildings.add(1).log10().add(2).div(5))
|
||||
if (player.i.building) data.work = data.work.add(player.i.extraBuildings.add(4).sqrt().div(5))
|
||||
data.workEff = Decimal.pow(2, data.work.sub(1))
|
||||
}
|
||||
}
|
||||
|
|
3
js/v.js
3
js/v.js
|
@ -35,6 +35,7 @@ function loadVue() {
|
|||
formatWhole,
|
||||
formatTime,
|
||||
focused,
|
||||
getThemeName,
|
||||
layerUnl,
|
||||
getLayerEffDesc,
|
||||
doReset,
|
||||
|
@ -56,6 +57,8 @@ function loadVue() {
|
|||
spellActive,
|
||||
updateToCast,
|
||||
keepGoing,
|
||||
VERSION,
|
||||
ENDGAME,
|
||||
LAYERS,
|
||||
LAYER_RES,
|
||||
LAYER_TYPE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue