diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2023-06-03 22:50:14 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:34 +0100 |
commit | 10d96d5eb8a0564025f8eb683f926cae7d3cd5f0 (patch) | |
tree | c7c571d2178e5e20163afdf02e9392e1bcb29b0c /play.js | |
parent | 0772e464ecd2bd4ef65f060e73f0cc4a395e3da6 (diff) | |
download | plantagenet-10d96d5eb8a0564025f8eb683f926cae7d3cd5f0.tar.gz |
Plantagenet seasons and Plan
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 29 |
1 files changed, 25 insertions, 4 deletions
@@ -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 } } |