summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-27 15:52:34 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-27 15:52:34 +0000
commit9971dc265828ac89d465ed9955efd3f86b3fe956 (patch)
tree7497d0b96ac974ff556d8bcbcc272f9135d2e92e
parent882e4d532cd05476d3cb7e13b85cc6afe5953dbb (diff)
download1989-dawn-of-freedom-9971dc265828ac89d465ed9955efd3f86b3fe956.tar.gz
Tidy up code
-rw-r--r--rules.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 9d5fc40..c780550 100644
--- a/rules.js
+++ b/rules.js
@@ -1420,7 +1420,6 @@ states.raise_stakes_1 = {
inactive: 'raise the stakes.',
prompt () {
- console.log('raise stakes 1 - com hand', game.com_pwr_hand, 'dem hand', game.dem_pwr_hand)
if ((game.active === DEM && game.dem_pwr_hand < 3) || (game.active === COM && game.com_pwr_hand < 3)) {
view.prompt = 'Raise the stakes: you must pass.'
gen_action('pass')
@@ -1528,7 +1527,6 @@ states.raise_stakes_2 = {
states.power_struggle = {
inactive: 'play a card.',
prompt () {
- console.log('game.vm_event', game.vm_event)
if (game.phase === 0) {
if (game.valid_cards.length > 0) {
view.prompt = "Play a card."
@@ -2818,7 +2816,6 @@ function valid_cards(player_hand, presence) {
} else if (game.phase === 1) {
for (let c of player_hand) {
let card = power_cards.find(card => card && card.number === c);
- console.log('card', card, )
if (card.name === power_cards[game.played_power_card].name) {
valid_cards_set.add(card.number);
} else if (card.name === game.proxy_power_card) {
@@ -7133,7 +7130,6 @@ states.vm_kiss_of_death_finish = {
prompt() {
if (game.vm_event > 0 && game.vm_event !== C_COMMON_EUROPEAN_HOME && (cards[game.vm_event].side === 'D' || cards[game.vm_event].side === 'N')) {
view.prompt = `Play ${clean_name(cards[game.vm_event].name)} for the event.`
- console.log('kiss of death before event button: game.stategy_discard', game.strategy_discard)
gen_action('event')
} else {
view.prompt = 'Event does not occur.'