diff options
author | Joël Simoneau <simoneaujoel@gmail.com> | 2025-03-12 20:26:25 -0400 |
---|---|---|
committer | Joël Simoneau <simoneaujoel@gmail.com> | 2025-03-12 20:26:25 -0400 |
commit | 37f7499a65665416d1aa8573ca6e7bdf162bb143 (patch) | |
tree | 8b14ddfe66df8c993fdd3413207dffea0e29fe3a /rules.js | |
parent | 041a30e48bea02b754b1782bfea8da467929f025 (diff) | |
download | vijayanagara-37f7499a65665416d1aa8573ca6e7bdf162bb143.tar.gz |
Removing dev helpers
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -249,10 +249,6 @@ exports.setup = function (seed, scenario, _options) { if (scenario === "Solo") game.solo = 1 - // TODO: setup start pieces - - // goto_card() - game.current = DS game.state = "todo" @@ -993,7 +989,8 @@ function can_march_in_space(s) { } function can_rebel() { - // todo: implement dynasty logic + if (game.succ === 0) + return false for (let s = first_space; s <= last_space; ++s) { if (can_rebel_in_space(s)) return true @@ -1262,7 +1259,7 @@ states.attack_space = { view.actions.roll = 1 }, roll() { - // clear_undo() TODO: remove for prd + clear_undo() roll_attack() log(">.ad " + game.dice.slice(0,4).filter(d => d > 0).map(d => AD[d]).join(" ")) log(">.dd " + game.dice.slice(4).filter(d => d > 0).map(d => DD[d]).join(" ")) |