Sandcastle-Builder icon indicating copy to clipboard operation
Sandcastle-Builder copied to clipboard

Coma doesn't reset department

Open subanark opened this issue 8 years ago • 6 comments

If an item is available for a DORD reward when you coma, it will remain there.

subanark avatar Jan 26 '17 21:01 subanark

Looking at the code, all boosts should be set to unlocked and then all gui things including the shop should be redrawn, so I'm not sure how that could occur. Do you have a save for testing?

eternaldensity avatar Apr 04 '17 22:04 eternaldensity

In order for this to occur, you need to play from Coma to getting DoRD without refreshing the page. Then when DoRD activates you could unlock a boost you shouldn't be able to get.

Locked boosts keep the department variable across Coma. Some boosts change this (e.g. DiP rewards). The best one I have is https://docs.google.com/document/d/1v_hTrWasYHTNliOja382DfdV8AmprNvvJ-OIioEn_bY/edit?usp=sharing

Molpy down, then Coma. Cheat yourself DoRD and do a bunch of Molpy.RewardRedacted(1) and you should unlock Monty Haul (asumining you didn't ONG since Coma). Which normally has a 1/3 chance of unlocking on the ONG.

subanark avatar Apr 04 '17 23:04 subanark

Ah, okay.

It's because the function that checks whether boosts should be in the department never does the reverse. So just zeroing out all the department variables should fix it. Good. Although... wouldn't it also be a problem on Molpy Down too? Or is the DoRD not supposed to reset on Molpy Down? I forget.

eternaldensity avatar Apr 06 '17 04:04 eternaldensity

Just make sure you keep it set to 1 for the boosts that are available from the start of the game.

subanark avatar Apr 06 '17 04:04 subanark

Oh yeah, the ones that have department=1 from initialisation and that should never change... Actually that's gonna be a nuisance :(

eternaldensity avatar Apr 06 '17 09:04 eternaldensity

This is easy to fix: just put a function declaration around all the boost setup, and call it again in the coma code, so then it'll all be guaranteed completely reset.

eternaldensity avatar Apr 21 '17 06:04 eternaldensity