From 31c55e54b023ead4d3f9a2f9c53a12b25cda8ced Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 15 Sep 2024 13:27:28 +0200 Subject: remove stale TODO and add .exrc for folding --- .exrc | 3 +++ rules.js | 9 +-------- 2 files changed, 4 insertions(+), 8 deletions(-) create mode 100644 .exrc 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) { -- cgit v1.2.3