diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-20 14:32:40 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-20 14:32:40 +0200 |
commit | b227fc9c2ef361f8aa5ee2f24aa1ade6bc972a73 (patch) | |
tree | 8fdd7e980107bfd8fcd58ffe21f2299b37d310c8 /resources/js/classes/Area.js | |
parent | 2c7890e90e1aad371854cfe60ad63eaa88e64fec (diff) |
area progress
Diffstat (limited to 'resources/js/classes/Area.js')
-rw-r--r-- | resources/js/classes/Area.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/resources/js/classes/Area.js b/resources/js/classes/Area.js new file mode 100644 index 0000000..3451757 --- /dev/null +++ b/resources/js/classes/Area.js @@ -0,0 +1,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; + } +} |