diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-19 17:30:54 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-19 17:30:54 +0200 |
commit | ee8c23e21e55e2833b4a978c25dc8fb0605f3e7b (patch) | |
tree | 5fb3dca7f6c1548d15ad1df6b1f82d4d24016aca | |
parent | 7a1977d97834a0ecd6184193aff17f9fde6e5a05 (diff) | |
download | plantagenet-ee8c23e21e55e2833b4a978c25dc8fb0605f3e7b.tar.gz |
Remove unneccessary push_state and pop_state functions.
-rw-r--r-- | rules.ts | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -19,13 +19,6 @@ number of roses in data Scenario special rules. - - CLEANUPS - influence checks and capabilities (don't check game.state === "parley" etc) - clean up end_feed transition between command/disembark - - parley - levy and campaign separate states? - feed - needs push_state? */ /* @@ -74,7 +67,6 @@ interface Game { undo: any[], state: string, - stack: any[], // TODO active: Player, rebel: Side, @@ -8405,7 +8397,6 @@ exports.setup = function (seed, scenario, options) { active: null, state: "setup_lords", - stack: [], victory_check: 0, turn: 0, @@ -11783,17 +11774,6 @@ states.game_over = { // === UTILITY FUNCTIONS === -function push_state(next) { - if (!states[next]) - throw Error("No such state: " + next) - game.stack.push(game.state) - game.state = next -} - -function pop_state() { - game.state = game.stack.pop() -} - function save_state_for_the_kings_name() { game.event_the_kings_name = game.undo[game.undo.length - 1] } |