Jeff Epler's blog2015-02-19T19:31:59ZPhotos, electronics, cnc, and moreJeff Eplerjepler@unpythonic.netCheating at incremental games using angularjs2015-02-19T19:31:59Z2015-02-19T19:31:59Zhttps://emergent.unpythonic.net/01424374319
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)
<p>So I was happy to learn enough about angularjs to cheat at my favorite
incremental game of the moment, <a href="https://swarmsim.github.io/">Swarm Simulator</a>.
<p><pre >
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))
</pre>