summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--map.svg4
-rw-r--r--rules.js7
2 files changed, 9 insertions, 2 deletions
diff --git a/map.svg b/map.svg
index 01cb51a..76733a3 100644
--- a/map.svg
+++ b/map.svg
@@ -203,13 +203,13 @@
/>
<path id="supply_outer" d="M94.936 728.41c0 6.078-4.927 11.004-11 11.004-6.083 0-11.011-4.926-11.011-11.004 0-6.08 4.928-11.006 11.01-11.006 6.074 0 11 4.926 11 11.006z"
- fill="bisque"
+ fill="cornsilk"
stroke="#222"
stroke-width="1.5"
/>
<path id="supply_outer" d="M2600.348 250.864c0 6.078-4.928 11.004-11.001 11.004-6.083 0-11.01-4.926-11.01-11.004 0-6.08 4.927-11.006 11.01-11.006 6.073 0 11 4.926 11 11.006z"
- fill="bisque"
+ fill="cornsilk"
stroke="#222"
stroke-width="1.5"
/>
diff --git a/rules.js b/rules.js
index 2a6b4f6..49dea02 100644
--- a/rules.js
+++ b/rules.js
@@ -6946,6 +6946,13 @@ exports.setup = function (seed, scenario, options) {
return game
}
+exports.is_checkpoint = function (a, b) {
+ if (!a.log) return true
+ let ax = a.log[a.log.length-2].startsWith(".h2")
+ let bx = b.log[b.log.length-2].startsWith(".h2")
+ return bx && (!ax || a.log.length !== b.log.length)
+}
+
exports.view = function(state, current) {
load_state(state)