summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-03-11 01:05:43 +0100
committerTor Andersson <tor@ccxvii.net>2025-03-11 01:08:51 +0100
commitd167c9891968b02627fc240b0b75ae9fd9b770af (patch)
treedbcf68bea4a48771d0f25e42b6ff51133c466b7e /rules.js
parent0b20f381756c0aab5a2182680f6311a6b4530b0d (diff)
downloadland-and-freedom-d167c9891968b02627fc240b0b75ae9fd9b770af.tar.gz
More UI tweaks.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js38
1 files changed, 17 insertions, 21 deletions
diff --git a/rules.js b/rules.js
index 465e725..da68d1e 100644
--- a/rules.js
+++ b/rules.js
@@ -673,7 +673,7 @@ states.add_card_to_tableau = {
inactive: 'add a card to their tableau',
prompt() {
gen_spend_hero_points();
- view.prompt = 'Choose a card to add to your tableau.';
+ view.prompt = 'Add a card to your tableau.';
const faction = get_active_faction();
for (const c of game.hands[faction]) {
gen_action_card(c);
@@ -932,7 +932,7 @@ states.play_card = {
inactive: 'choose a card',
prompt() {
gen_spend_hero_points();
- view.prompt = 'Choose a card to play';
+ view.prompt = 'Play a card.';
const faction = get_active_faction();
const hand = game.hands[faction];
for (let c of hand) {
@@ -993,7 +993,7 @@ states.choose_card = {
states.choose_final_bid = {
inactive: 'choose Final Bid',
prompt() {
- view.prompt = 'Choose a card to add to the Final Bid';
+ view.prompt = 'Add a card to the Final Bid.';
const faction = get_active_faction();
for (let c of game.hands[faction]) {
if (!game.selected_cards[faction].includes(c)) {
@@ -1047,7 +1047,7 @@ states.choose_medallion = {
inactive: 'choose a medallion',
prompt() {
gen_spend_hero_points();
- view.prompt = 'Choose a medallion';
+ view.prompt = 'Choose a Medallion.';
for (let m of game.medallions.pool) {
gen_action_medallion(m);
}
@@ -1086,10 +1086,7 @@ states.choose_medallion = {
states.confirm_turn = {
inactive: 'confirm their turn',
prompt() {
- if (game.fascist)
- view.prompt = 'Fascist Test: Done.';
- else
- view.prompt = 'Confirm your actions or undo';
+ view.prompt = 'You will not be able to undo this action.';
gen_action('confirm');
},
confirm() {
@@ -1299,10 +1296,10 @@ states.move_track = {
else
view.prompt = `Move ${name} ${-value} steps down.`;
if (track === data_1.GOVERNMENT && value === data_1.TOWARDS_CENTER) {
- view.prompt = `Move ${name} towards center`;
+ view.prompt = `Move ${name} towards center.`;
}
else if (track === data_1.GOVERNMENT && value === data_1.AWAY_FROM_CENTER) {
- view.prompt = `Move ${name} away from center`;
+ view.prompt = `Move ${name} away from center.`;
}
if (track === data_1.LIBERTY_OR_COLLECTIVIZATION) {
gen_move_track(data_1.LIBERTY, game.tracks[data_1.LIBERTY] + value);
@@ -1452,15 +1449,15 @@ function resolve_spend_hp() {
}
function set_player_turn_prompt({ can_play_card, use_ap, use_momentum, use_morale_bonus, }) {
if (can_play_card)
- view.prompt = "Player Turn: Play card for Action Points or for the Event.";
+ view.prompt = "Play card for Action Points or for the Event.";
else if (use_momentum)
- view.prompt = "Player Turn: Play a second card.";
+ view.prompt = "Play a second card.";
else if (use_ap && use_morale_bonus)
- view.prompt = "Player Turn: Use Action Points and Morale Bonus.";
+ view.prompt = "Use Action Points and Morale Bonus.";
else if (use_morale_bonus)
- view.prompt = "Player Turn: Use Morale Bonus.";
+ view.prompt = "Use Morale Bonus.";
else if (use_ap)
- view.prompt = "Player Turn: Use Action Points.";
+ view.prompt = "Use Action Points.";
else
view.prompt = "Player Turn: Done.";
}
@@ -1655,7 +1652,7 @@ states.return_card = {
prompt() {
const faction = get_active_faction();
gen_spend_hero_points();
- view.prompt = 'Choose a card to return to your hand';
+ view.prompt = 'Return a card to your hand.';
view.trash = game.trash[faction];
let possible = false;
for (let c of game.trash[faction]) {
@@ -1793,16 +1790,15 @@ states.swap_card_tableau_hand = {
inactive: 'swap cards',
prompt() {
gen_spend_hero_points();
- view.prompt =
- 'Choose a card in your tableau and a card in your hand to swap';
+ view.prompt = 'Swap a card in your tableau with a card in your hand.';
const faction = get_active_faction();
gen_action('skip');
if (game.tableaus[faction].length === 0) {
- view.prompt = 'No card in your tableau to swap. You must skip';
+ view.prompt = 'No card in your tableau to swap.';
return;
}
if (game.hands[faction].length === 0) {
- view.prompt = 'No card in your hand to swap. You must skip';
+ view.prompt = 'No card in your hand to swap.';
return;
}
if (!game.selected_cards[faction].some((card_id) => game.hands[faction].includes(card_id))) {
@@ -2244,7 +2240,7 @@ function play_card_to_tableau(faction) {
return card;
}
function resolve_fascist_test() {
- game.fascist = 1;
+ game.fascist = 2;
log_h2('Fascist Test', 'fascist');
const test = get_current_event().test;
const status = game.fronts[test.front].status;