diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-23 00:25:11 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:19:38 +0100 |
commit | 6a4cb1ed6ea859d233e492f3ebf71deae04c5a91 (patch) | |
tree | 9a693ae30580ad47246e55f7b051b73ccd52d3b7 /rules.js | |
parent | dc1aa50ec82e74e8e48d4abdfceab28aca107274 (diff) | |
download | crusader-rex-6a4cb1ed6ea859d233e492f3ebf71deae04c5a91.tar.gz |
crusader: Sort blocks by initiative in battle screen.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -5,6 +5,8 @@ // TODO: sort blocks in battle screen! +// TODO: pause after battle ends (ui maybe?) + exports.scenarios = [ "Third Crusade" ]; @@ -3197,12 +3199,6 @@ function setup_game() { // VIEW -function compare_block_initiative(a, b) { - let aa = BLOCKS[a].combat; - let bb = BLOCKS[b].combat; - return (aa < bb) ? -1 : (aa > bb) ? 1 : 0; -} - function make_battle_view() { let battle = { FR: [], FC: [], FF: [], |