Useful CoC2 Console Commands

Mad Dog

Well-Known Member
Jun 1, 2018
537
281
For future reference.

Unlocks all CGs (From @ctenken):
JavaScript:
Options.systemOptions.cgs = cgs.map(str => {
    str = str.replace(/.*?CG\//, '');
    str = str.replace(/\.png/, '');
    return str;
});

Unlocks all Busts (From @ctenken):
JavaScript:
Options.systemOptions.busts = charImages.filter(x => x.includes('fulls/')).map(str => {
    str = str.replace(/.*?fulls\//, '');
    str = str.replace(/\..*/, '');
    return str;
});

Reset Miko Preg Status (From @Savin):
JavaScript:
flags.MAIDENS_PREG_PATH = flags.MAIDENS_PREG_TS = flags.MIKO_PREG_REQ = flags.MIKO_PREG_NUM_KIDS = flags.MIKO_PREG_NUM_BIRTHS = flags.MIKO_PREG_ANN = undefined; PregManager.preg(GLOBALS.PREG_MIKO).debugEndPregnancy();

Reset Mai Preg Status (Edited @Savin's Command):
JavaScript:
flags.MAIDENS_PREG_PATH = flags.MAIDENS_PREG_TS = flags.MAI_PREG_REQ = flags.MAI_PREG_NUM_KIDS = flags.MAI_PREG_NUM_BIRTHS = flags.MAI_PREG_ANN = undefined; PregManager.preg(GLOBALS.PREG_MAI).debugEndPregnancy();
 
Last edited: