blob: 87d008d58dd086a8b3d7a55e69b0f2da1823cab8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
export interface Zone {
name: string
visited: boolean
}
export function cleanVisitedZones(data: any): Zone[] {
const rawZones = data?.visited_zones || []
// TODO: store all the zones that exist in SkyBlock, add add those to the array with visited being false
const zones: Zone[] = []
for (const rawZoneName of rawZones) {
zones.push({
name: rawZoneName,
visited: true
})
}
return zones
}
|