summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2023-06-03 22:50:14 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:34 +0100
commit10d96d5eb8a0564025f8eb683f926cae7d3cd5f0 (patch)
treec7c571d2178e5e20163afdf02e9392e1bcb29b0c /play.js
parent0772e464ecd2bd4ef65f060e73f0cc4a395e3da6 (diff)
downloadplantagenet-10d96d5eb8a0564025f8eb683f926cae7d3cd5f0.tar.gz
Plantagenet seasons and Plan
Diffstat (limited to 'play.js')
-rw-r--r--play.js29
1 files changed, 25 insertions, 4 deletions
diff --git a/play.js b/play.js
index d63fb6e..7250f78 100644
--- a/play.js
+++ b/play.js
@@ -209,6 +209,28 @@ const NOWHERE = -1
const CALENDAR = 100
+const SUMMER = 0
+const SPRING = 1
+const WINTER = 2
+
+const SEASONS = [
+ WINTER,
+ SPRING,
+ SUMMER,
+ SPRING,
+ WINTER,
+ WINTER,
+ SPRING,
+ SUMMER,
+ SPRING,
+ WINTER,
+ WINTER,
+ SPRING,
+ SUMMER,
+ SPRING,
+ WINTER,
+ null
+]
// === ACTIONS ===
function is_action(action, arg) {
@@ -294,10 +316,9 @@ function current_season() {
function max_plan_length() {
switch (current_season()) {
- case SUMMER: return 6
- case EARLY_WINTER: return 4
- case LATE_WINTER: return 4
- case RASPUTITSA: return 5
+ case SUMMER: return 7
+ case WINTER: return 4
+ case SPRING: return 6
}
}