Compare commits
1 Commits
fix/168-ch
...
burn/128-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4ef8063ed |
10
js/engine.js
10
js/engine.js
@@ -335,12 +335,18 @@ function checkMilestones() {
|
||||
}
|
||||
|
||||
function checkProjects() {
|
||||
// Suppress non-ReCKoning projects during endgame sequence (#128)
|
||||
const isEndgame = G.totalRescues >= 100000 && G.pactFlag === 1 && G.harmony > 50;
|
||||
const hasReCKoning = G.activeProjects && G.activeProjects.some(id => id.startsWith('p_reckoning_'));
|
||||
|
||||
// Check for new project triggers
|
||||
for (const pDef of PDEFS) {
|
||||
const alreadyPurchased = G.completedProjects && G.completedProjects.includes(pDef.id);
|
||||
if (!alreadyPurchased && !G.activeProjects) G.activeProjects = [];
|
||||
|
||||
if (!alreadyPurchased && !G.activeProjects.includes(pDef.id)) {
|
||||
// During endgame, only allow ReCKoning projects to activate (#128)
|
||||
if (isEndgame && !pDef.id.startsWith('p_reckoning_')) continue;
|
||||
if (pDef.trigger()) {
|
||||
G.activeProjects.push(pDef.id);
|
||||
log(`Available: ${pDef.name}`);
|
||||
@@ -1173,7 +1179,11 @@ function renderProjects() {
|
||||
|
||||
// Show available projects
|
||||
if (G.activeProjects) {
|
||||
const isEndgame = G.totalRescues >= 100000 && G.pactFlag === 1 && G.harmony > 50;
|
||||
for (const id of G.activeProjects) {
|
||||
// During endgame, suppress non-ReCKoning projects from display (#128)
|
||||
if (isEndgame && !id.startsWith('p_reckoning_')) continue;
|
||||
|
||||
const pDef = PDEFS.find(p => p.id === id);
|
||||
if (!pDef) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user