alles fertig

This commit is contained in:
Hikyu
2026-07-10 21:21:19 +02:00
parent a35e6a99cb
commit 91c3266d86
24 changed files with 842 additions and 369 deletions
+5 -5
View File
@@ -31,11 +31,11 @@ async function readSingle(_i: number) {
}
async function readRegion(_i: number) {
await redis.hget("region:1", "name");
const enemyIds = await redis.smembers("region:1:enemies");
const itemIds = await redis.smembers("region:1:items");
for (const id of enemyIds) await redis.hgetall(`enemy:${id}`);
for (const id of itemIds) await redis.hgetall(`item:${id}`);
await redis.hget("bench:region:1", "name");
const enemyIds = await redis.smembers("bench:region:1:enemies");
const itemIds = await redis.smembers("bench:region:1:items");
for (const id of enemyIds) await redis.hgetall(`bench:enemy:${id}`);
for (const id of itemIds) await redis.hgetall(`bench:item:${id}`);
}
async function writeRegion(_i: number) {