coryshaw1 / saliens-hack

Hack for Sailens, the game of Steam Summer Sale 2018 - AutoSelect Planet, Invincibility, and InstaKill
MIT License
106 stars 31 forks source link

force score to be an integer #23

Closed Gummibeer closed 6 years ago

Gummibeer commented 6 years ago

fixes #22

coryshaw1 commented 6 years ago

Should we do Math.round just in case? I haven't seen 599.9999, but just to be on the safe side.

Gummibeer commented 6 years ago

I don't know if it will fail if it's too low (has an impossible value)? If it's too high it will definitely. Wouldn't it be easier to do not touch the score logic? It will get to the max score in every case - because the game runs successful the maximum round-time.

coryshaw1 commented 6 years ago

I think the code is needed if the tab isn't active, the score doesn't increase as fast. Probably from other enemies not spawning. Need more info, and am open to suggestions.

Math.round would have the same effect as using Math.floor in the impossible value sense.

Gummibeer commented 6 years ago

It's changed 😃