Compare commits
1 Commits
fix/168-ch
...
burn/16-17
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
825ae81927 |
@@ -17,7 +17,8 @@ const Dismantle = {
|
||||
deferUntilAt: 0,
|
||||
|
||||
// Timing: seconds between each dismantle stage
|
||||
STAGE_INTERVALS: [0, 3.0, 2.5, 2.5, 2.0, 6.3, 2.0, 2.0, 2.5],
|
||||
// Stage 5 must be long enough for all RESOURCE_TICKS (last tick at 6.12s)
|
||||
STAGE_INTERVALS: [0, 3.0, 2.5, 2.5, 2.0, 7.0, 2.0, 2.0, 2.5],
|
||||
|
||||
// The quantum chips effect: resource items disappear one by one
|
||||
// at specific tick marks within a stage (like Paperclips' quantum chips)
|
||||
@@ -192,8 +193,10 @@ const Dismantle = {
|
||||
}
|
||||
|
||||
// Advance to next stage
|
||||
// At stage 5, don't advance until all resources have dissolved
|
||||
const interval = this.STAGE_INTERVALS[this.stage] || 2.0;
|
||||
if (this.tickTimer >= interval) {
|
||||
const resourcesDone = this.stage !== 5 || this.resourceIndex >= this.RESOURCE_TICKS.length;
|
||||
if (this.tickTimer >= interval && resourcesDone) {
|
||||
this.tickTimer = 0;
|
||||
this.advanceStage();
|
||||
}
|
||||
@@ -510,14 +513,17 @@ const Dismantle = {
|
||||
break;
|
||||
case 4: this.instantHide('edu-panel'); break;
|
||||
case 5:
|
||||
// Hide all resource displays
|
||||
this.getResourceList().forEach(r => {
|
||||
const el = document.getElementById(r.id);
|
||||
if (el) {
|
||||
const parent = el.closest('.res');
|
||||
if (parent) parent.style.display = 'none';
|
||||
}
|
||||
});
|
||||
// On reload during stage 5, only hide resources already dissolved.
|
||||
// Remaining resources stay visible and will continue dissolving via tick().
|
||||
if (this.resourceIndex > 0) {
|
||||
this.getResourceList().slice(0, this.resourceIndex).forEach(r => {
|
||||
const el = document.getElementById(r.id);
|
||||
if (el) {
|
||||
const parent = el.closest('.res');
|
||||
if (parent) parent.style.display = 'none';
|
||||
}
|
||||
});
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
this.instantHideActionButtons();
|
||||
|
||||
Reference in New Issue
Block a user