Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions web/js/nrdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ function check_ampere_agenda_limits() {

function check_startup_constraints() {
if(MWL && MWL['name'].includes("Startup Ban List 24.09")){
const five_threes = NRDB.data.cards.find({
const five_threes = NRDB.data.cards.find({
indeck: { '$gt': 0 },
type_code: 'agenda'
}).filter(function (card) {
Expand Down Expand Up @@ -1112,7 +1112,17 @@ function build_plaintext(deck) {
lines.push($(line).text().trim());
break;
default:
lines.push($(line).text().trim());
let lineText = $(line).text().trim().replace("x", "");
let infCount = (lineText.match(/●/g)||[]).length;
let allianceInfCount = (lineText.match(/○/g)||[]).length;
lineText = lineText.replaceAll(/[●○]/g, "");
if (infCount > 0) {
lineText += `(${infCount} influence)`;
}
if (allianceInfCount > 0) {
lineText += `(${allianceInfCount} discounted influence)`;
}
lines.push(lineText);
}
});

Expand Down