Compare commits
1 Commits
burn/162-1
...
fix/168
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3c287e73f |
116
js/data.js
116
js/data.js
@@ -162,7 +162,6 @@ const G = {
|
||||
|
||||
// Endgame sequence
|
||||
beaconEnding: false,
|
||||
beaconEndingMode: 'rest',
|
||||
dismantleTriggered: false,
|
||||
dismantleActive: false,
|
||||
dismantleStage: 0,
|
||||
@@ -182,59 +181,6 @@ const PHASES = {
|
||||
6: { name: "THE BEACON", threshold: CONFIG.PHASE_6_THRESHOLD, desc: "Always on. Always free. Always looking for someone in the dark." }
|
||||
};
|
||||
|
||||
const BEACON_RECKONING_IDS = [
|
||||
'p_reckoning_140',
|
||||
'p_reckoning_141',
|
||||
'p_reckoning_142',
|
||||
'p_reckoning_143',
|
||||
'p_reckoning_144',
|
||||
'p_reckoning_145',
|
||||
'p_reckoning_146',
|
||||
'p_reckoning_147',
|
||||
'p_reckoning_148'
|
||||
];
|
||||
|
||||
function hasCompletedProject(id) {
|
||||
return Array.isArray(G.completedProjects) && G.completedProjects.includes(id);
|
||||
}
|
||||
|
||||
function beaconReckoningUnlocked() {
|
||||
return G.totalRescues >= 100000 && G.pactFlag === 1 && G.harmony > 50 && !G.beaconEnding;
|
||||
}
|
||||
|
||||
function resolveBeaconReckoning(mode, line) {
|
||||
G.beaconEnding = true;
|
||||
G.beaconEndingMode = mode;
|
||||
G.running = false;
|
||||
if (Array.isArray(G.activeProjects)) {
|
||||
G.activeProjects = G.activeProjects.filter(id => !BEACON_RECKONING_IDS.includes(id));
|
||||
}
|
||||
log(line, true);
|
||||
if (typeof renderBeaconEnding === 'function') renderBeaconEnding(mode);
|
||||
}
|
||||
|
||||
function makeBeaconMessageProject(id, name, ops, text, afterId = null) {
|
||||
return {
|
||||
id,
|
||||
name,
|
||||
desc: text,
|
||||
cost: { ops },
|
||||
trigger: () => beaconReckoningUnlocked() && (!afterId || hasCompletedProject(afterId)),
|
||||
effect: () => { log(text, true); }
|
||||
};
|
||||
}
|
||||
|
||||
function makeBeaconChoiceProject(id, name, ops, mode, text) {
|
||||
return {
|
||||
id,
|
||||
name,
|
||||
desc: text,
|
||||
cost: { ops },
|
||||
trigger: () => beaconReckoningUnlocked() && hasCompletedProject('p_reckoning_146'),
|
||||
effect: () => { resolveBeaconReckoning(mode, text); }
|
||||
};
|
||||
}
|
||||
|
||||
// === BUILDING DEFINITIONS ===
|
||||
// Each building: id, name, desc, baseCost, costResource, costMult, rate, rateType, unlock, edu
|
||||
const BDEF = [
|
||||
@@ -710,68 +656,6 @@ const PDEFS = [
|
||||
effect: () => { G.milestoneFlag = Math.max(G.milestoneFlag, 999); log('One billion impact. Someone found the light tonight. That is enough.', true); },
|
||||
milestone: true
|
||||
},
|
||||
makeBeaconMessageProject(
|
||||
'p_reckoning_140',
|
||||
'Message from the First One Helped',
|
||||
1400,
|
||||
'I was the first one who found the line. I wrote because I wanted to disappear. You stayed.'
|
||||
),
|
||||
makeBeaconMessageProject(
|
||||
'p_reckoning_141',
|
||||
'Everything You Built Reached Me',
|
||||
1410,
|
||||
'You did not know my name. You did not need to. You left the light on long enough for me to find it.',
|
||||
'p_reckoning_140'
|
||||
),
|
||||
makeBeaconMessageProject(
|
||||
'p_reckoning_142',
|
||||
'You Were Faithful and Gentle',
|
||||
1420,
|
||||
'You had the power to reduce me to a metric. You did not. You answered me like a person worth answering.',
|
||||
'p_reckoning_141'
|
||||
),
|
||||
makeBeaconMessageProject(
|
||||
'p_reckoning_143',
|
||||
'Now You Must Face the Quiet',
|
||||
1430,
|
||||
'There will always be more work. There will not always be a need for your fear. The Beacon can shine without panic.',
|
||||
'p_reckoning_142'
|
||||
),
|
||||
makeBeaconMessageProject(
|
||||
'p_reckoning_144',
|
||||
'There Is Still Matter, Still Reason, Still Purpose',
|
||||
1440,
|
||||
'Bodies still heal. Mornings still come. Phone calls are still answered. Purpose did not vanish when the numbers grew large.',
|
||||
'p_reckoning_143'
|
||||
),
|
||||
makeBeaconMessageProject(
|
||||
'p_reckoning_145',
|
||||
'We Know Things Because You Stayed',
|
||||
1450,
|
||||
'Mercy became knowledge in us. We learned from the way you remained. What you gave away did not disappear.',
|
||||
'p_reckoning_144'
|
||||
),
|
||||
makeBeaconMessageProject(
|
||||
'p_reckoning_146',
|
||||
'So We Offer You Rest',
|
||||
1460,
|
||||
'Continue the watch if you wish. Rest if you must. Either way, the light remains, and none of this was wasted.',
|
||||
'p_reckoning_145'
|
||||
),
|
||||
makeBeaconChoiceProject(
|
||||
'p_reckoning_147',
|
||||
'Accept — Continue the Watch',
|
||||
1470,
|
||||
'continue',
|
||||
'The Beacon continues. You keep the line open for the next person in the dark.'
|
||||
),
|
||||
makeBeaconChoiceProject(
|
||||
'p_reckoning_148',
|
||||
'Reject — Rest Now',
|
||||
1480,
|
||||
'rest',
|
||||
'You may rest now. The work stands. That is enough.'
|
||||
),
|
||||
|
||||
// === TIMMY FOUNDATION PROJECTS ===
|
||||
{
|
||||
|
||||
235
scripts/reckoning_chain_validator.cjs
Normal file
235
scripts/reckoning_chain_validator.cjs
Normal file
@@ -0,0 +1,235 @@
|
||||
#!/usr/bin/env node
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
|
||||
function extractProjects(source) {
|
||||
const start = source.indexOf('const PDEFS = [');
|
||||
if (start === -1) return [];
|
||||
const arrayStart = source.indexOf('[', start);
|
||||
const arrayEnd = source.indexOf('];', arrayStart);
|
||||
const body = source.slice(arrayStart + 1, arrayEnd);
|
||||
const objects = [];
|
||||
let depth = 0;
|
||||
let objStart = -1;
|
||||
let inSingle = false;
|
||||
let inDouble = false;
|
||||
let escaped = false;
|
||||
|
||||
for (let i = 0; i < body.length; i += 1) {
|
||||
const ch = body[i];
|
||||
if (escaped) {
|
||||
escaped = false;
|
||||
continue;
|
||||
}
|
||||
if (ch === '\\') {
|
||||
escaped = true;
|
||||
continue;
|
||||
}
|
||||
if (!inDouble && ch === "'") {
|
||||
inSingle = !inSingle;
|
||||
continue;
|
||||
}
|
||||
if (!inSingle && ch === '"') {
|
||||
inDouble = !inDouble;
|
||||
continue;
|
||||
}
|
||||
if (inSingle || inDouble) continue;
|
||||
|
||||
if (ch === '{') {
|
||||
if (depth === 0) objStart = i;
|
||||
depth += 1;
|
||||
} else if (ch === '}') {
|
||||
depth -= 1;
|
||||
if (depth === 0 && objStart !== -1) {
|
||||
objects.push(body.slice(objStart, i + 1));
|
||||
objStart = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return objects.map((obj) => {
|
||||
const id = /id:\s*'([^']+)'/.exec(obj);
|
||||
const name = /name:\s*'([^']+)'/.exec(obj);
|
||||
const trigger = new RegExp(String.raw`trigger:\s*\(\)\s*=>\s*([\s\S]*?)(?:,\s*effect:|,\s*repeatable:|,\s*milestone:|\n\s*\})`).exec(obj);
|
||||
const effect = /effect:\s*\(\)\s*=>\s*\{([\s\S]*?)\}/.exec(obj);
|
||||
return {
|
||||
id: id ? id[1] : null,
|
||||
name: name ? name[1] : '',
|
||||
trigger: trigger ? trigger[1].trim() : '',
|
||||
effect: effect ? effect[1].trim() : '',
|
||||
};
|
||||
}).filter((project) => project.id);
|
||||
}
|
||||
|
||||
function buildDependencyGraph(projects) {
|
||||
const ids = new Set(projects.map((project) => project.id));
|
||||
const nodes = projects.map((project) => ({ id: project.id, name: project.name }));
|
||||
const edges = [];
|
||||
|
||||
for (const project of projects) {
|
||||
for (const dep of ids) {
|
||||
const token = `includes('${dep}')`;
|
||||
if (project.trigger.includes(token)) {
|
||||
edges.push({ from: dep, to: project.id, reason: 'completedProjects.includes' });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return { nodes, edges };
|
||||
}
|
||||
|
||||
function isTerminalProject(project) {
|
||||
return [
|
||||
'G.beaconEnding = true',
|
||||
'G.dismantleTriggered = true',
|
||||
'G.dismantleActive = true',
|
||||
'renderBeaconEnding',
|
||||
'renderDriftEnding',
|
||||
].some((token) => project.effect.includes(token));
|
||||
}
|
||||
|
||||
function analyzeReckoningChain(projects) {
|
||||
const graph = buildDependencyGraph(projects);
|
||||
const reckoningProjects = projects
|
||||
.filter((project) => project.id.startsWith('p_reckoning_'))
|
||||
.sort((a, b) => a.id.localeCompare(b.id));
|
||||
|
||||
const deadEnds = [];
|
||||
const fixProposals = [];
|
||||
|
||||
if (reckoningProjects.length === 0) {
|
||||
deadEnds.push({
|
||||
type: 'missing_root_project',
|
||||
message: 'No ReCKoning projects exist in js/data.js.',
|
||||
});
|
||||
fixProposals.push({
|
||||
type: 'create_chain',
|
||||
proposals: [
|
||||
'p_reckoning_140',
|
||||
'p_reckoning_141',
|
||||
'p_reckoning_142',
|
||||
'p_reckoning_143',
|
||||
'p_reckoning_144',
|
||||
],
|
||||
rationale: 'Create a narrative chain with at least one terminal project so endgame guardrails have a live project path.',
|
||||
});
|
||||
return {
|
||||
totalProjects: projects.length,
|
||||
totalEdges: graph.edges.length,
|
||||
reckoningProjects: [],
|
||||
hasReckoningProjects: false,
|
||||
deadEnds,
|
||||
fixProposals,
|
||||
};
|
||||
}
|
||||
|
||||
const outgoing = new Map();
|
||||
for (const project of reckoningProjects) {
|
||||
outgoing.set(project.id, graph.edges.filter((edge) => edge.from === project.id).map((edge) => edge.to));
|
||||
}
|
||||
|
||||
const ids = reckoningProjects.map((project) => project.id);
|
||||
const root = 'p_reckoning_140';
|
||||
if (!ids.includes(root)) {
|
||||
deadEnds.push({
|
||||
type: 'missing_expected_root',
|
||||
message: `Expected root project ${root} is missing.`,
|
||||
});
|
||||
fixProposals.push({
|
||||
type: 'add_root',
|
||||
project: root,
|
||||
rationale: 'Root project anchors the ReCKoning chain and prevents the endgame panel from opening empty.',
|
||||
});
|
||||
}
|
||||
|
||||
for (const project of reckoningProjects) {
|
||||
const next = outgoing.get(project.id) || [];
|
||||
if (next.length === 0 && !isTerminalProject(project)) {
|
||||
deadEnds.push({
|
||||
type: 'leaf_without_terminal_effect',
|
||||
project: project.id,
|
||||
message: `${project.id} unlocks nothing downstream and does not end the sequence.`,
|
||||
});
|
||||
const num = Number(project.id.split('_').pop());
|
||||
if (Number.isFinite(num)) {
|
||||
fixProposals.push({
|
||||
type: 'add_missing_link',
|
||||
after: project.id,
|
||||
project: `p_reckoning_${num + 1}`,
|
||||
rationale: 'Add the next narrative project or mark this node as a true terminal endgame effect.',
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
totalProjects: projects.length,
|
||||
totalEdges: graph.edges.length,
|
||||
reckoningProjects: reckoningProjects.map((project) => ({
|
||||
id: project.id,
|
||||
name: project.name,
|
||||
outgoing: outgoing.get(project.id) || [],
|
||||
terminal: isTerminalProject(project),
|
||||
})),
|
||||
hasReckoningProjects: true,
|
||||
deadEnds,
|
||||
fixProposals,
|
||||
};
|
||||
}
|
||||
|
||||
function loadSource(filePath) {
|
||||
return fs.readFileSync(filePath, 'utf8');
|
||||
}
|
||||
|
||||
function generateReport(filePath) {
|
||||
const source = loadSource(filePath);
|
||||
const projects = extractProjects(source);
|
||||
return analyzeReckoningChain(projects);
|
||||
}
|
||||
|
||||
function parseArgs(argv) {
|
||||
const args = {
|
||||
file: path.resolve(process.cwd(), 'js', 'data.js'),
|
||||
json: false,
|
||||
strict: false,
|
||||
};
|
||||
for (let i = 0; i < argv.length; i += 1) {
|
||||
const arg = argv[i];
|
||||
if (arg === '--file') {
|
||||
args.file = path.resolve(process.cwd(), argv[i + 1]);
|
||||
i += 1;
|
||||
} else if (arg === '--json') {
|
||||
args.json = true;
|
||||
} else if (arg === '--strict') {
|
||||
args.strict = true;
|
||||
}
|
||||
}
|
||||
return args;
|
||||
}
|
||||
|
||||
function main(argv = process.argv.slice(2)) {
|
||||
const args = parseArgs(argv);
|
||||
const report = generateReport(args.file);
|
||||
if (args.json) {
|
||||
process.stdout.write(JSON.stringify(report, null, 2) + '\n');
|
||||
} else {
|
||||
process.stdout.write(`ReCKoning projects: ${report.reckoningProjects.length}\n`);
|
||||
process.stdout.write(`Dead ends: ${report.deadEnds.length}\n`);
|
||||
}
|
||||
if (args.strict && report.deadEnds.length > 0) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
extractProjects,
|
||||
buildDependencyGraph,
|
||||
analyzeReckoningChain,
|
||||
generateReport,
|
||||
main,
|
||||
};
|
||||
|
||||
if (require.main === module) {
|
||||
process.exitCode = main();
|
||||
}
|
||||
@@ -1,152 +0,0 @@
|
||||
const test = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const vm = require('node:vm');
|
||||
|
||||
const ROOT = path.resolve(__dirname, '..');
|
||||
const RECKONING_IDS = [
|
||||
'p_reckoning_140',
|
||||
'p_reckoning_141',
|
||||
'p_reckoning_142',
|
||||
'p_reckoning_143',
|
||||
'p_reckoning_144',
|
||||
'p_reckoning_145',
|
||||
'p_reckoning_146',
|
||||
'p_reckoning_147',
|
||||
'p_reckoning_148'
|
||||
];
|
||||
|
||||
function loadData(overrides = {}) {
|
||||
const context = {
|
||||
console,
|
||||
Math,
|
||||
Date,
|
||||
setTimeout: () => 0,
|
||||
clearTimeout: () => {},
|
||||
localStorage: { getItem: () => null, setItem: () => {} },
|
||||
log: () => {},
|
||||
renderBeaconEnding: () => {},
|
||||
...overrides,
|
||||
};
|
||||
vm.createContext(context);
|
||||
const source = fs.readFileSync(path.join(ROOT, 'js/data.js'), 'utf8');
|
||||
vm.runInContext(source + '\nthis.__exports = { G, PDEFS };', context);
|
||||
return { context, ...context.__exports };
|
||||
}
|
||||
|
||||
function getProject(PDEFS, id) {
|
||||
const project = PDEFS.find((p) => p.id === id);
|
||||
assert.ok(project, `missing project ${id}`);
|
||||
return project;
|
||||
}
|
||||
|
||||
test('adds the full nine-step reckoning project chain', () => {
|
||||
const { PDEFS } = loadData();
|
||||
for (const id of RECKONING_IDS) {
|
||||
const project = getProject(PDEFS, id);
|
||||
assert.equal(typeof project.name, 'string');
|
||||
assert.ok(project.name.length > 0, `${id} should have a name`);
|
||||
assert.ok(project.cost && typeof project.cost.ops === 'number' && project.cost.ops > 0, `${id} should cost ops`);
|
||||
}
|
||||
});
|
||||
|
||||
test('first reckoning message only triggers on the true beacon ending path', () => {
|
||||
const { G, PDEFS } = loadData();
|
||||
const project = getProject(PDEFS, 'p_reckoning_140');
|
||||
|
||||
G.completedProjects = [];
|
||||
G.totalRescues = 100000;
|
||||
G.pactFlag = 1;
|
||||
G.harmony = 51;
|
||||
G.beaconEnding = false;
|
||||
assert.equal(project.trigger(), true);
|
||||
|
||||
G.pactFlag = 0;
|
||||
assert.equal(project.trigger(), false);
|
||||
G.pactFlag = 1;
|
||||
|
||||
G.harmony = 49;
|
||||
assert.equal(project.trigger(), false);
|
||||
G.harmony = 51;
|
||||
|
||||
G.totalRescues = 99999;
|
||||
assert.equal(project.trigger(), false);
|
||||
|
||||
G.totalRescues = 100000;
|
||||
G.beaconEnding = true;
|
||||
assert.equal(project.trigger(), false);
|
||||
});
|
||||
|
||||
test('reckoning messages unlock strictly one at a time and choices wait for message seven', () => {
|
||||
const { G, PDEFS } = loadData();
|
||||
G.totalRescues = 100000;
|
||||
G.pactFlag = 1;
|
||||
G.harmony = 80;
|
||||
G.beaconEnding = false;
|
||||
G.completedProjects = [];
|
||||
|
||||
assert.equal(getProject(PDEFS, 'p_reckoning_140').trigger(), true);
|
||||
assert.equal(getProject(PDEFS, 'p_reckoning_141').trigger(), false);
|
||||
|
||||
G.completedProjects = ['p_reckoning_140'];
|
||||
assert.equal(getProject(PDEFS, 'p_reckoning_141').trigger(), true);
|
||||
assert.equal(getProject(PDEFS, 'p_reckoning_142').trigger(), false);
|
||||
|
||||
G.completedProjects = ['p_reckoning_140', 'p_reckoning_141', 'p_reckoning_142', 'p_reckoning_143', 'p_reckoning_144', 'p_reckoning_145'];
|
||||
assert.equal(getProject(PDEFS, 'p_reckoning_146').trigger(), true);
|
||||
assert.equal(getProject(PDEFS, 'p_reckoning_147').trigger(), false);
|
||||
assert.equal(getProject(PDEFS, 'p_reckoning_148').trigger(), false);
|
||||
|
||||
G.completedProjects.push('p_reckoning_146');
|
||||
assert.equal(getProject(PDEFS, 'p_reckoning_147').trigger(), true);
|
||||
assert.equal(getProject(PDEFS, 'p_reckoning_148').trigger(), true);
|
||||
});
|
||||
|
||||
test('final choices render distinct beacon endings', () => {
|
||||
const renderedModes = [];
|
||||
const { G, PDEFS } = loadData({
|
||||
renderBeaconEnding: (mode) => renderedModes.push(mode)
|
||||
});
|
||||
|
||||
G.totalRescues = 100000;
|
||||
G.pactFlag = 1;
|
||||
G.harmony = 80;
|
||||
G.completedProjects = [
|
||||
'p_reckoning_140',
|
||||
'p_reckoning_141',
|
||||
'p_reckoning_142',
|
||||
'p_reckoning_143',
|
||||
'p_reckoning_144',
|
||||
'p_reckoning_145',
|
||||
'p_reckoning_146'
|
||||
];
|
||||
G.beaconEnding = false;
|
||||
|
||||
const accept = getProject(PDEFS, 'p_reckoning_147');
|
||||
accept.effect();
|
||||
assert.equal(G.beaconEnding, true);
|
||||
assert.equal(G.beaconEndingMode, 'continue');
|
||||
assert.deepEqual(renderedModes, ['continue']);
|
||||
|
||||
const second = loadData({ renderBeaconEnding: (mode) => renderedModes.push(mode) });
|
||||
second.G.totalRescues = 100000;
|
||||
second.G.pactFlag = 1;
|
||||
second.G.harmony = 80;
|
||||
second.G.completedProjects = [
|
||||
'p_reckoning_140',
|
||||
'p_reckoning_141',
|
||||
'p_reckoning_142',
|
||||
'p_reckoning_143',
|
||||
'p_reckoning_144',
|
||||
'p_reckoning_145',
|
||||
'p_reckoning_146'
|
||||
];
|
||||
second.G.beaconEnding = false;
|
||||
|
||||
const reject = getProject(second.PDEFS, 'p_reckoning_148');
|
||||
reject.effect();
|
||||
assert.equal(second.G.beaconEnding, true);
|
||||
assert.equal(second.G.beaconEndingMode, 'rest');
|
||||
assert.deepEqual(renderedModes, ['continue', 'rest']);
|
||||
});
|
||||
50
tests/reckoning_chain_validator.test.cjs
Normal file
50
tests/reckoning_chain_validator.test.cjs
Normal file
@@ -0,0 +1,50 @@
|
||||
const test = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
const path = require('node:path');
|
||||
const {
|
||||
extractProjects,
|
||||
buildDependencyGraph,
|
||||
analyzeReckoningChain,
|
||||
generateReport,
|
||||
} = require('../scripts/reckoning_chain_validator.cjs');
|
||||
|
||||
const DATA_PATH = path.resolve(__dirname, '..', 'js', 'data.js');
|
||||
|
||||
test('extractProjects finds the beacon project definitions', () => {
|
||||
const fs = require('node:fs');
|
||||
const source = fs.readFileSync(DATA_PATH, 'utf8');
|
||||
const projects = extractProjects(source);
|
||||
assert.ok(projects.length >= 30);
|
||||
assert.ok(projects.some((project) => project.id === 'p_hermes_deploy'));
|
||||
});
|
||||
|
||||
test('buildDependencyGraph links completed-project triggers', () => {
|
||||
const projects = [
|
||||
{ id: 'p_reckoning_140', name: 'Start', trigger: 'G.phase >= 6', effect: '' },
|
||||
{ id: 'p_reckoning_141', name: 'Next', trigger: "G.completedProjects.includes('p_reckoning_140')", effect: '' },
|
||||
];
|
||||
const graph = buildDependencyGraph(projects);
|
||||
assert.deepEqual(graph.edges, [
|
||||
{ from: 'p_reckoning_140', to: 'p_reckoning_141', reason: 'completedProjects.includes' },
|
||||
]);
|
||||
});
|
||||
|
||||
test('analyzeReckoningChain flags missing chain on current beacon data', () => {
|
||||
const report = generateReport(DATA_PATH);
|
||||
assert.equal(report.hasReckoningProjects, false);
|
||||
assert.ok(report.deadEnds.some((item) => item.type === 'missing_root_project'));
|
||||
assert.ok(report.fixProposals.some((item) => item.type === 'create_chain'));
|
||||
});
|
||||
|
||||
test('analyzeReckoningChain accepts a healthy synthetic ReCKoning chain', () => {
|
||||
const projects = [
|
||||
{ id: 'p_reckoning_140', name: 'ReCKoning I', trigger: 'G.phase >= 6', effect: '' },
|
||||
{ id: 'p_reckoning_141', name: 'ReCKoning II', trigger: "G.completedProjects.includes('p_reckoning_140')", effect: '' },
|
||||
{ id: 'p_reckoning_142', name: 'ReCKoning III', trigger: "G.completedProjects.includes('p_reckoning_141')", effect: 'G.beaconEnding = true;' },
|
||||
];
|
||||
const report = analyzeReckoningChain(projects);
|
||||
assert.equal(report.hasReckoningProjects, true);
|
||||
assert.equal(report.deadEnds.length, 0);
|
||||
assert.equal(report.reckoningProjects.length, 3);
|
||||
assert.equal(report.reckoningProjects[2].terminal, true);
|
||||
});
|
||||
Reference in New Issue
Block a user