Trying to make my own Modding Tree mod, and i’m trying to make an upgrade that boosts Layer 2’s points (slightly) by Layer 1’s points, but I havent been able to figure it out myself. I’ve got this code in the upgrade:
effect() {
return player[jj].points.add(1).mult(1.05)
},
effectDisplay() { return format(upgradeEffect(this.later, this.id))+“x” },
and this code under Layer 2’s gainMult:
if (hasUpgrade(‘j’, 22)) mult = mult.times(upgradeEffect(‘j’, 22))
if i need to specify certain things, i am willing to do so.