Add temporary RNG-testing dev functions

This commit is contained in:
SpectralFlame 2023-03-08 20:41:48 -06:00 committed by cyip92
parent e66d710515
commit a611383b6c

View File

@ -528,3 +528,41 @@ dev.forceCloudSave = async function() {
dev.unlockAllCosmeticSets = function() {
player.reality.glyphs.cosmetics.unlockedFromNG = Object.keys(GameDatabase.reality.glyphCosmeticSets);
};
// TODO Remove the following three functions before merge; they make cheating *way* too easy
dev.prepGlyphRNGTest = function() {
dev.cheatToReality();
for (let row = 0; row < 13; row++) player.achievementBits[row] = 255;
player.reality.seed = player.reality.initialSeed;
player.reality.perks = new Set([0]);
player.realities = 1;
};
// Puts all 4 available choices in the inventory, advances the seed as if you just realitied,
// and then puts the save back in a reality-ready state
dev.advanceGlyphSeed = function() {
const oldSeed = { seed: player.reality.seed, secondGaussian: player.reality.secondGaussian };
GlyphSelection.generate(4);
for (const glyph of GlyphSelection.glyphs) {
Glyphs.addToInventory(glyph);
Glyphs.moveToSlot(glyph, 10 * player.realities + BASIC_GLYPH_TYPES.indexOf(glyph.type));
}
GlyphSelection.glyphs = [];
player.reality.seed = oldSeed.seed;
player.reality.secondGaussian = oldSeed.secondGaussian;
setTimeout(() => {
processManualReality(true);
dev.cheatToReality();
}, 50);
};
dev.cheatToReality = function() {
player.break = true;
player.dilation.studies = [6];
player.infinityPoints = new Decimal("2e4000");
player.eternityPoints = new Decimal("2e4000");
setTimeout(() => {
eternity();
Tab.reality.glyphs.show();
}, 100);
};