summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-03-22 17:29:44 +0100
committerTor Andersson <tor@ccxvii.net>2025-03-23 00:13:22 +0100
commit954c9c0690a64a8ed172a5b10cb8a4b5a32293fe (patch)
tree4c23e436b7c7277db9d4661cbeaa9022e62be6e9
parent3207789c844dd48f4647e8fa7693d35d6559927e (diff)
downloadland-and-freedom-954c9c0690a64a8ed172a5b10cb8a4b5a32293fe.tar.gz
Log claimed medallions with magic strings.
-rw-r--r--rules.js9
-rw-r--r--rules.ts9
2 files changed, 8 insertions, 10 deletions
diff --git a/rules.js b/rules.js
index a93cde7..fd1297f 100644
--- a/rules.js
+++ b/rules.js
@@ -30,7 +30,7 @@ const front_names = [
'the Front closest to Victory',
];
const bonus_names = ['Morale Bonus', 'Teamwork Bonus'];
-const { cards, medallions, tracks, } = data_1.default;
+const { cards, tracks, } = data_1.default;
const bonuses = [data_1.MORALE_BONUS, data_1.TEAMWORK_BONUS];
const faction_cards = [
make_list(37, 54),
@@ -1108,10 +1108,10 @@ function setup_momentum() {
}
}
states.choose_medallion = {
- inactive: 'earn a medallion',
+ inactive: 'claim a medallion',
prompt() {
gen_spend_hero_points();
- view.prompt = 'Earn a Medallion.';
+ view.prompt = 'Claim a Medallion.';
for (let m of game.medallions[POOL_ID]) {
if (m !== null)
gen_action_medallion(m);
@@ -1125,8 +1125,7 @@ states.choose_medallion = {
},
medallion(m) {
const faction = get_active_faction();
- const medallion = medallions[m];
- logp(`earned ${medallion.name}`);
+ logp("claimed M" + m);
const index = game.medallions[POOL_ID].indexOf(m);
game.medallions[POOL_ID][index] = null;
switch (m) {
diff --git a/rules.ts b/rules.ts
index e5fa8bd..840a412 100644
--- a/rules.ts
+++ b/rules.ts
@@ -105,7 +105,7 @@ const bonus_names: string[] = ['Morale Bonus', 'Teamwork Bonus'];
const {
cards,
- medallions,
+ // medallions,
// fronts,
tracks,
} = data;
@@ -1399,10 +1399,10 @@ function setup_momentum() {
}
states.choose_medallion = {
- inactive: 'earn a medallion',
+ inactive: 'claim a medallion',
prompt() {
gen_spend_hero_points();
- view.prompt = 'Earn a Medallion.';
+ view.prompt = 'Claim a Medallion.';
for (let m of game.medallions[POOL_ID]) {
if (m !== null)
gen_action_medallion(m);
@@ -1416,9 +1416,8 @@ states.choose_medallion = {
},
medallion(m: number) {
const faction = get_active_faction();
- const medallion = medallions[m];
- logp(`earned ${medallion.name}`);
+ logp("claimed M" + m)
const index = game.medallions[POOL_ID].indexOf(m);