Simplified upgrade/achievement query
Closed this issue · 0 comments
DainDwarf commented
Instead of game.getUpgrade('bla').isActive
, implement a game.hasUpgrade('bla')
that does the query to isActive
itself.
Also add aliases on game service so that for computed dependency, instead of game.upgrades.@each.isActive
you can depend on game.upgradeStatus
(or something like that)
EVEN BETTER make your own computed macro that will do all the tedious work! So that you can easily do isStuffAvailable: upgrade('Stuff'),