다마고치 변경할 때 본체 색상도 선택하도록 추가
This commit is contained in:
1 parent
fda254aa35
commit
63fe0c8d41
35 files changed
+421
-188
No files matched your search
@@ -58,6 +58,7 @@ async function main(){
|
||||
const rebuilt=F.feldApply(stripped,{fields:true,bag:true,tama:true,saves:true},null,emb,E);assert.deepEqual(rebuilt,image,'Menu rebuild round trip');
|
||||
const fieldsOnly=F.feldApply(out,{fields:true},null,emb,E),fo=F.feldFind(fieldsOnly,emb.stub);
|
||||
assert(F.feldStrip(fieldsOnly,emb,E).subarray(fo.catOff,fo.catOff+4096).every(b=>b===255),'Font-only catalog removal');
|
||||
assert.deepEqual(F.feldApply(F.feldStrip(fieldsOnly,emb,E),{fields:true},null,emb,E),fieldsOnly,'Empty color catalog strip/rebuild');
|
||||
if(process.argv[3]){fs.writeFileSync(process.argv[3],image);fs.writeFileSync(process.argv[3]+'.json',JSON.stringify(info));}
|
||||
console.log(JSON.stringify({passed:true,characters:chars.length,items:items.length,portraits,menuBytes:emb.feld.length,keptLatestHappiness:p.happy,physicalDevice:false}));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user