summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js18
1 files changed, 13 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index e4db39c..48af26f 100644
--- a/rules.js
+++ b/rules.js
@@ -21,7 +21,7 @@ const countries = ['Poland', 'Hungary', 'East_Germany', 'Bulgaria', 'Czechoslova
const elite_spaces = [12, 15, 27, 43, 51, 69]
const all_power_cards = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 ]
const numberless_cards = [25, 26, 27, 28, 29, 30, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52]
-const auto_resolve_events = [5, 8, 9, 13, 17, 25, 26, 30, 35, 50, 53, 59, 62, 63, 65, 70, 72, 74, 99, 102, 108]
+const auto_resolve_events = [5, 8, 9, 13, 17, 25, 26, 30, 35, 50, 53, 58, 59, 62, 63, 65, 70, 72, 74, 99, 102, 108]
const switch_events = [6, 20, 71]
exports.scenarios = [ "Standard" ]
@@ -1099,7 +1099,11 @@ states.raise_stakes_1 = {
},
card(card) {
push_undo()
- log(`Discarded P${power_cards[card].number}`) /*Set this to include value as with power struggle*/
+ if (numberless_cards.includes(card)) {
+ log_gap(`Discarded: P${card}`)
+ } else {
+ log_gap(`Discarded: P${card} V${power_cards[card].value}`)
+ }
discard(card)
game.raised_stakes_discard ++
@@ -1143,7 +1147,11 @@ states.raise_stakes_2 = {
},
card(card) {
push_undo()
- log(`Discarded P${power_cards[card].number}`)
+ if (numberless_cards.includes(card)) {
+ log_gap(`Discarded: P${card}`)
+ } else {
+ log_gap(`Discarded: P${card} V${power_cards[card].value}`)
+ }
discard(card)
game.raised_stakes_discard ++
@@ -1156,8 +1164,8 @@ states.raise_stakes_2 = {
log('Did not raise the stakes')
game.raised_stakes_discard = 0
game.valid_cards = []
- next_player()
log_h2('Play Cards')
+ next_player()
game.state = 'begin_power_struggle'
},
done () {
@@ -1617,7 +1625,7 @@ states.end_turn_4_5_4 = {
goto_game_over(DEM, `${DEM} won by held scoring card!`)
}
else if (game.persistent_events['new_years_eve_party']) {
- log_h2(`New Year's Eve Party`)
+ log_h1(`New Year's Eve Party`)
game.state = 'new_years_eve_party'
}
else if(game.turn === 10) {