blob: 3451757c9f11a67bc80b7738eeaa505df39faf4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
class Area {
slug = '';
monsterProgress = 0;
trainerProgress = 0;
isCompleted = false;
constructor (slug) {
this.slug = slug;
}
async initialize () {}
get encounters () {
return DB.areas[this.slug].encounters;
}
get requiredEncounters () {
return DB.areas[this.slug].requiredEncounters;
}
get trainers () {
return DB.areas[this.slug].trainers;
}
get environment () {
return DB.areas[this.slug].environment;
}
get previousArea () {
return DB.areas[this.slug].previousArea;
}
get nextArea () {
return DB.areas[this.slug].nextArea;
}
}
|