alles fertig
This commit is contained in:
@@ -40,12 +40,12 @@ async function readSingle(_i: number) {
|
||||
}
|
||||
|
||||
async function readRegion(_i: number) {
|
||||
const region = await getJson("region:1");
|
||||
const region = await getJson("bench:region:1");
|
||||
void region?.name;
|
||||
const enemyIds = (await getJson("region:1:enemies")) || [];
|
||||
const itemIds = (await getJson("region:1:items")) || [];
|
||||
for (const id of enemyIds) await getJson(`enemy:${id}`);
|
||||
for (const id of itemIds) await getJson(`item:${id}`);
|
||||
const enemyIds = (await getJson("bench:region:1:enemies")) || [];
|
||||
const itemIds = (await getJson("bench:region:1:items")) || [];
|
||||
for (const id of enemyIds) await getJson(`bench:enemy:${id}`);
|
||||
for (const id of itemIds) await getJson(`bench:item:${id}`);
|
||||
}
|
||||
|
||||
async function writeRegion(_i: number) {
|
||||
|
||||
Reference in New Issue
Block a user