mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-21 16:13:55 +00:00
Changed another thing to use the repaired functions
This commit is contained in:
parent
b43b97991e
commit
7d1cc514c2
2 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ function getStartPlayer() {
|
|||
|
||||
function getPointGen() {
|
||||
let gain = new Decimal(1)
|
||||
if (player.c.upgrades.includes(12)) gain = gain.times(layers.c.upgrades["12"].effect())
|
||||
if (hasUpg("c", 12)) gain = gain.times(layers.c.upgrades[12].effect())
|
||||
return gain
|
||||
}
|
||||
|
||||
|
|
|
@ -20,8 +20,8 @@ addLayer("c", {
|
|||
canBuyMax() {}, // Only needed for static layers with buy max
|
||||
gainMult() { // Calculate the multiplier for main currency from bonuses
|
||||
mult = new Decimal(1)
|
||||
if (hasUpg(this.layer, 166)) mult = mult.times(2)
|
||||
if (hasUpg(this.layer, 12)) mult = mult.times(this.upgrades[12].effect())
|
||||
if (hasUpg(this.layer, 166)) mult = mult.times(2) // These upgrades don't exist
|
||||
if (hasUpg(this.layer, 120)) mult = mult.times(this.upgrades[12].effect())
|
||||
return mult
|
||||
},
|
||||
gainExp() { // Calculate the exponent on main currency from bonuses
|
||||
|
|
Loading…
Reference in a new issue