Cheating at incremental games using angularjs

I don't know a thing about javascript frameworks, but I like to cheat at incremental games. So it's frustrating when a game is made with some framework that seems to leave everything inaccessible. (I think this is more about the framework trying to be hygenic than anti-cheating)

So I was happy to learn enough about angularjs to cheat at my favorite incremental game of the moment, Swarm Simulator.

var sc = angular.element(document.querySelector('.ng-scope')).scope()
sc.env.isDebugEnabled = 1
sc.game._units.byName.nexus.prodByName.energy.val = new Decimal(1000)
sc.game.unit('mutagen')._addCount(new Decimal(1e100))


Entry first conceived on 19 February 2015, 19:31 UTC, last modified on 21 February 2015, 2:42 UTC
Website Copyright © 2004-2024 Jeff Epler