summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-23 00:25:11 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:38 +0100
commit6a4cb1ed6ea859d233e492f3ebf71deae04c5a91 (patch)
tree9a693ae30580ad47246e55f7b051b73ccd52d3b7 /rules.js
parentdc1aa50ec82e74e8e48d4abdfceab28aca107274 (diff)
downloadcrusader-rex-6a4cb1ed6ea859d233e492f3ebf71deae04c5a91.tar.gz
crusader: Sort blocks by initiative in battle screen.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js8
1 files changed, 2 insertions, 6 deletions
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: [],