From 6a4cb1ed6ea859d233e492f3ebf71deae04c5a91 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 23 Jun 2021 00:25:11 +0200 Subject: crusader: Sort blocks by initiative in battle screen. --- rules.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index db0960d..5c196a5 100644 --- a/rules.js +++ b/rules.js @@ -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: [], -- cgit v1.2.3