summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-23 13:19:55 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-01 16:11:22 +0200
commit59083cac119d7434ab8b19cd889da6b623fefb13 (patch)
tree9ce695a56257477273e22cf9520f0ac7a179c7ed /rules.js
parentfa27795120c1544498f43c0386f78668e34e2713 (diff)
downloadwaterloo-campaign-1815-59083cac119d7434ab8b19cd889da6b623fefb13.tar.gz
Split CSS off into separate file.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/rules.js b/rules.js
index 473b6fc..44a2dee 100644
--- a/rules.js
+++ b/rules.js
@@ -420,11 +420,8 @@ function update_zoc() {
// === COMMAND PHASE ===
function goto_command_phase() {
- log("")
log(".h1 Turn " + game.turn)
- log("")
log(".h2 Command Phase")
- log("")
bring_on_reinforcements()
goto_hq_placement_step()
}
@@ -839,7 +836,6 @@ function goto_organization_phase() {
}
}
- log("")
log(".h2 Organization Phase")
// F: ADVANCE FORMATION
@@ -877,7 +873,6 @@ function can_withdraw_any() {
}
function goto_withdrawal() {
- log("")
log(".h2 Withdrawal")
game.remain = 0
game.active = P2
@@ -999,9 +994,7 @@ function can_move_any() {
}
function goto_movement_phase() {
- log("")
log(".h2 Movement Phase")
- log("")
game.remain = 0
game.active = P2
next_movement()
@@ -1130,6 +1123,11 @@ states.movement_to = {
set_piece_hex(game.who, x)
+ if (game.active === P1)
+ log("F: P" + game.who + " moved to " + x)
+ else
+ log("C: P" + game.who + " moved to " + x)
+
// must flip (stream without road, or enter zoc)
if (!(move_seen[x-1000] & 2))
set_piece_mode(game.who, 1)
@@ -1428,9 +1426,7 @@ function can_attack_any() {
}
function goto_attack_phase() {
- log("")
log(".h2 Attack Phase")
- log("")
game.remain = 0
game.active = P2
next_attack()