From ed03fc83ec2b8c1c3f78ab083a4dd880c7036d32 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 29 Nov 2024 23:53:25 +0000 Subject: Update prompt for Nomenklatura --- play.js | 4 ++-- rules.js | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/play.js b/play.js index dacf383..07538a7 100644 --- a/play.js +++ b/play.js @@ -796,8 +796,8 @@ function on_update() { action_button("continue", "Continue playing") action_button("extra", "Take action round") action_button("pass", "Pass") - action_button("remove", "Remove SPs") - action_button("add", "Add SPs") + action_button("remove", "Remove") + action_button("add", "Place") action_button("ops", "Operations") action_button("discard", "Discard") action_button("strike", "Strike") diff --git a/rules.js b/rules.js index abf4c3c..1d96e29 100644 --- a/rules.js +++ b/rules.js @@ -7345,6 +7345,10 @@ states.vm_nomenklatura = { prompt() { view.prompt = 'Nomenklatura: Choose to remove all Democratic SPs from Elite spaces or place 3 SPs in any Elite space(s).' gen_action('remove') + let dem_elites = spaces.filter((space) => space.socio === SOCIO_ELITE && game.demInfl[space.space_id] > 0).length + if (dem_elites === 0) { + view.actions.remove = 0 + } gen_action('add') }, remove() { -- cgit v1.2.3