summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-09-15 13:27:28 +0200
committerTor Andersson <tor@ccxvii.net>2024-09-15 13:27:28 +0200
commit31c55e54b023ead4d3f9a2f9c53a12b25cda8ced (patch)
treea3a87ddbc7ce2e54dee84ee265f8ded085f96ba9
parent434e2ee422eee7555836fab5480f0d71c15d83c1 (diff)
downloadwilderness-war-31c55e54b023ead4d3f9a2f9c53a12b25cda8ced.tar.gz
remove stale TODO and add .exrc for folding
-rw-r--r--.exrc3
-rw-r--r--rules.js9
2 files changed, 4 insertions, 8 deletions
diff --git a/.exrc b/.exrc
new file mode 100644
index 0000000..420e63b
--- /dev/null
+++ b/.exrc
@@ -0,0 +1,3 @@
+set foldmethod=expr
+set foldexpr=getline(v:lnum)=~'^/\\*\ .*\\*/$'?'>1':'='
+set foldexpr=getline(v:lnum)=~'^//\ [A-Z][A-Z]'?'>1':'='
diff --git a/rules.js b/rules.js
index 5f88499..6061967 100644
--- a/rules.js
+++ b/rules.js
@@ -1,11 +1,5 @@
"use strict"
-// TODO: don't allow activating force in Halifax/captured Louisbourg without a 3-value card (nothing to do but sail)
-
-// WONTFIX
-// TODO: select leader for defense instead of automatically picking the best
-// TODO: remove old 7 command leader(s) immediately as they're drawn, before placing reinforcements
-
const { spaces, pieces, cards } = require("./data")
const BRITAIN = 'Britain'
@@ -2743,7 +2737,6 @@ function end_designate_force() {
}
}
-// TODO: merge with designate_force using reason=intercept_lone_ax
states.designate_force_lone_ax = {
inactive() {
inactive_prompt("designate lone auxiliary force to intercept", game.force.commander, 0)
@@ -10079,7 +10072,7 @@ exports.view = function(state, current) {
return view
}
-// === COMMON LIBRARY ===
+// COMMON LIBRARY
// remove item at index (faster than splice)
function array_remove(array, index) {