You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can't modify the game.state directly, because it's immutable. Kind of annoying, but probably for the best. Instead we do it through actions. And we have many. However they are often cumbersome to call quickly.
Compare this:
in slay the spire console you write energy add 5
in slay the web console you write stw.game.enqueue({type: 'addEnergyToPlayer', amount: 5}); stw.game.update()
If you want to add a specific card into your hand, oh lord.
You can't modify the
game.state
directly, because it's immutable. Kind of annoying, but probably for the best. Instead we do it throughactions
. And we have many. However they are often cumbersome to call quickly.Compare this:
energy add 5
stw.game.enqueue({type: 'addEnergyToPlayer', amount: 5}); stw.game.update()
If you want to add a specific card into your hand, oh lord.
Can we make this nicer? Take inspiration from the sts base mod dev console, which is well made -> https://github.com/daviscook477/BaseMod/wiki/Console
The text was updated successfully, but these errors were encountered: