summaryrefslogtreecommitdiff
path: root/resources/js/classes/Area.js
diff options
context:
space:
mode:
Diffstat (limited to 'resources/js/classes/Area.js')
-rw-r--r--resources/js/classes/Area.js18
1 files changed, 17 insertions, 1 deletions
diff --git a/resources/js/classes/Area.js b/resources/js/classes/Area.js
index 1b07e35..3a20d21 100644
--- a/resources/js/classes/Area.js
+++ b/resources/js/classes/Area.js
@@ -31,14 +31,30 @@ class Area {
return DB.areas[this.slug].encounter_percent_total;
}
- get requiredEncounters () {
+ get requiredEncountersBase () {
return DB.areas[this.slug].requiredEncounters;
}
+ get requiredEncounters () {
+ return this.requiredEncountersBase * (this.trainerProgress + 1);
+ }
+
get trainers () {
return DB.areas[this.slug].trainers;
}
+ /**
+ * @typedef {Object} AreaItem
+ * @property {ItemSlug} slug
+ * @property {number} dropRatio
+ * @inner
+ *
+ * @returns {AreaItem[]}
+ */
+ get items () {
+ return DB.areas[this.slug].items;
+ }
+
get environment () {
return DB.areas[this.slug].environment;
}