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