Compare commits
1 Commits
burn/2-177
...
fix/128-re
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f292f9339 |
@@ -325,11 +325,14 @@ function checkMilestones() {
|
||||
|
||||
function checkProjects() {
|
||||
// Check for new project triggers
|
||||
const endgame = G.totalRescues >= 100000 && G.pactFlag === 1 && G.harmony > 50;
|
||||
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, suppress non-ReCKoning utility projects
|
||||
if (endgame && !pDef.id.startsWith('p_reckoning') && pDef.id === 'p_wire_budget') continue;
|
||||
if (pDef.trigger()) {
|
||||
G.activeProjects.push(pDef.id);
|
||||
log(`Available: ${pDef.name}`);
|
||||
@@ -1162,7 +1165,10 @@ function renderProjects() {
|
||||
|
||||
// Show available projects
|
||||
if (G.activeProjects) {
|
||||
// During endgame (rescues >= 100K + pact + harmony), suppress non-ReCKoning utility projects
|
||||
const endgame = G.totalRescues >= 100000 && G.pactFlag === 1 && G.harmony > 50;
|
||||
for (const id of G.activeProjects) {
|
||||
if (endgame && id === 'p_wire_budget') continue;
|
||||
const pDef = PDEFS.find(p => p.id === id);
|
||||
if (!pDef) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user