Useful CoC2 Console Commands

Mad Dog

Well-Known Member
Jun 1, 2018
537
285
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:

Dansky32

Well-Known Member
Apr 16, 2022
81
1
25
Is there a way to use those commands to unlock the cgs and busts on the windows version instead of the web one?
 

TalRasha

Well-Known Member
Mar 14, 2023
82
45
30
Is there a way to use those commands to unlock the cgs and busts on the windows version instead of the web one?
It's the same ctrl+shift+i. Or, if console by some reasons won't open, go to (your game folder)\resources\app\ find there file named index.html and open it.