diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-05-03 23:02:38 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:42:59 +0100 |
commit | a89d9469e606706fbaf17db1a7ad4b9073f7cc54 (patch) | |
tree | e5ae8a72ab11efd37555ffd354dd50d40674f4b2 /rules.js | |
parent | ca69ca471048a3fa45185e4d5fefca0f27b68fa8 (diff) | |
download | 300-earth-and-water-a89d9469e606706fbaf17db1a7ad4b9073f7cc54.tar.gz |
300: some comments
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 38 |
1 files changed, 30 insertions, 8 deletions
@@ -5,7 +5,33 @@ // Diary: 2021-04-25 - Sunday - Supply, movement and battle. // Diary: 2021-04-26 - Monday Evening - Redid piece layout. Transport armies on fleets. // Diary: 2021-05-01 - Saturday Evening - Added undo. Tribute, Ostracism, and simple greek events. -// Diary: 2021-05-02 - Sunday - Movement events. +// Diary: 2021-05-02 - Sunday - Movement and battle events. + +// Event flags: +// greek: mines of laurion -> turn flag +// greek: themistocles -> turn flag +// greek: evangelion -> turn flag +// greek: triremes -> turn flag +// greek: leonidas -> turn or battle flag +// greek: 300 spartans -> battle flag +// greek: miltiades -> battle flag +// persian: cavalry -> turn or battle flag flag +// persian: great king -> turn flag + +// conflicts possible between: +// cavalry and 300/miltiades -- separate greek/persian solves +// leonidas + miltiades -- forbid combination? + +// Reaction event timing: +// before persian land battle: miltiades -> flag +// before persian land battle: pausanias * +// before persian land battle: 300 spartans -> flag +// after persian naval movement: themistocles +// in any land battle, after persian annihilation: the immortals +// in any naval battle, after persian lose 1 fleet: artemisia + +// 'immediately in response' -- interrupt play before or after event is completed? +// pausanias, molon labe exports.scenarios = [ "Default" @@ -408,11 +434,11 @@ function greek_can_naval_move() { } function persian_can_move() { - return persian_can_land_move() || have_persian_naval_move(); + return persian_can_land_move() || persian_can_naval_move(); } function greek_can_move() { - return greek_can_land_move() || have_greek_naval_move(); + return greek_can_land_move() || greek_can_naval_move(); } function gen_greek_cities(view) { @@ -843,11 +869,7 @@ states.greek_operation = { } function end_persian_movement() { - switch (game.persian.event) { - default: - end_persian_operation(); - break; - } + end_persian_operation(); } function end_greek_movement() { |