다마고치 선택 그림과 실제 외형 및 이름을 일치시킴
This commit is contained in:
1 parent
6ff604302e
commit
fda254aa35
20 files changed
+193
-114
No files matched your search
@@ -50,6 +50,14 @@ const root=require('path').resolve(__dirname,'..');
|
||||
assert.equal(F.itemCatalog(german.rom,'de').find(x=>x.id===5001).name,'MILCH');
|
||||
fs.writeFileSync(process.argv[3]+'.de.bin',german.rom);
|
||||
await w.__loadRom(file(german.rom));language('en');const back=await w.__composeRom();assert(back&&!back.same);const backInfo=F.feldFind(back.rom,F.embedded().stub);assert(Buffer.from(back.rom.subarray(backInfo.off,backInfo.off+0x8000)).includes(Buffer.from('ITOSM_EN_MENU_V1')));
|
||||
for(const lang of ['ko','en','de']){
|
||||
await w.__loadRom(file(rom));language(lang);d.getElementById('btnPetRom').click();
|
||||
const select=d.getElementById('petChar');select.value='4062:5';d.getElementById('btnPetSave').click();
|
||||
const C=w.ParamixCore,S=w.ParamixSaves,state=w.__state,expected=C.characterGhost(state.ctx.rom,4062);
|
||||
assert.equal(S.paraPet({pages:S.paraFromImage(state.ctx.rom,state.ctx.editionId)},state.ctx.editionId).id,4062);
|
||||
assert.deepEqual(Buffer.from(state.ctx.rom.subarray(0xdee000,0xdee000+expected.length)),Buffer.from(expected),'Browser did not apply complete appearance: '+lang);
|
||||
d.getElementById('btnPetSave').click();assert.deepEqual(Buffer.from(state.ctx.rom.subarray(0xdee000,0xdee000+expected.length)),Buffer.from(expected),'Same-character repair failed: '+lang);
|
||||
}
|
||||
assert.deepEqual(errors,[]);w.close();
|
||||
console.log('PASS: KO/EN/DE ROM builds, EN-DE-EN menu rebuilds, German item names, late API response and source preservation; no device write');
|
||||
console.log('PASS: KO/EN/DE ROM builds, menu rebuilds, native character appearance and same-ID repair through the browser save button, German names, late API response and source preservation; no device write');
|
||||
})().catch(e=>{console.error(e);process.exit(1);});
|
||||
Reference in new issue
Block a user