The if on my upgrade has an syntax error! how do i fix it?

i was peacefuly making my mod until i had an syntax error on the if on my upgrade! there is any way to fix it?
notice: i already readed the tutorial on how to add upgrades on a layer.

1 Like

@thepaperpilot do you know how to fix this bug?

1 Like

proof:

1 Like

You’ve placed an expression outside of a function, which is not valid. I’d suggest learning JavaScript before continuing with your TMT mod.

That code should actually go into the getPointGen function inside mod.js.

1 Like