diff options
-rw-r--r-- | rules.js | 55 |
1 files changed, 25 insertions, 30 deletions
@@ -2902,48 +2902,43 @@ function score_country(country) { log('Democrat:') if (presence.dem_control) { - logi(`Control, ${pluralize(presence.dem_battlegrounds,' battleground')}`) - dem_vp += value_control + presence.dem_battlegrounds + logi(`+${value_control} VP Control`) + dem_vp += value_control } else if (presence.dem_domination) { - logi(`Domination, ${pluralize(presence.dem_battlegrounds,' battleground')}`) - dem_vp += value_domination + presence.dem_battlegrounds + logi(`+${value_domination} VP Domination`) + dem_vp += value_domination } else if (presence.dem_spaces) { - if (presence.dem_battlegrounds > 0) { - logi(`Presence, ${pluralize(presence.dem_battlegrounds,' battleground')}`) - dem_vp += value_presence + presence.dem_battlegrounds - } else { - logi(`Presence`) - dem_vp += value_presence - } + logi(`+${value_presence} VP Presence`) + dem_vp += value_presence } - else { - logi('No presence') - } - logi(`+${dem_vp} VP`) + if (presence.dem_battlegrounds > 0) { + logi(`+${presence.dem_battlegrounds} VP Battlegrounds`) + dem_vp += presence.dem_battlegrounds + } + if (!presence.dem_spaces) + logi(`+${dem_vp} VP`) - log_gap('Communist:') + log('Communist:') if (presence.com_control) { - logi(`Control, ${pluralize(presence.com_battlegrounds,' battleground')}`) - com_vp -= (value_control + presence.com_battlegrounds) + logi(`-${value_control} VP Control`) + com_vp -= value_control } else if (presence.com_domination) { - logi(`Domination, ${pluralize(presence.com_battlegrounds,' battleground')}`) - com_vp -= (value_domination + presence.com_battlegrounds) + logi(`-${value_domination} VP Domination`) + com_vp -= value_domination } else if (presence.com_spaces) { - if (presence.com_battlegrounds > 0) { - logi(`Presence, ${pluralize(presence.com_battlegrounds,' battleground')}`) - com_vp -= (value_presence + presence.com_battlegrounds) - } else { - logi(`Presence`) - com_vp -= value_presence - } - } else { - logi('No presence') + logi(`-${value_presence} VP Presence`) + com_vp -= value_presence + } + if (presence.com_battlegrounds > 0) { + logi(`-${presence.com_battlegrounds} VP Battlegrounds`) + com_vp -= presence.com_battlegrounds } - logi(`${com_vp} VP`) + if (!presence.com_spaces) + logi(`-${com_vp} VP`) game.vp += dem_vp + com_vp if (game.state === 'final_scoring') { if ((dem_vp + com_vp) > 0) |