Przeglądaj źródła

fixes #1081

tags/v0.4.3^2
Shaun Kichenbrand 4 lat temu
rodzic
commit
f8725765c4
2 zmienionych plików z 8 dodań i 1 usunięć
  1. +3
    -1
      src/server/components/quests.js
  2. +5
    -0
      src/server/config/quests/questBuilder.js

+ 3
- 1
src/server/components/quests.js Wyświetl plik

@@ -30,7 +30,9 @@ module.exports = {
if (!quest.init(hideMessage)) {
this.quests.spliceWhere(q => (q === quest));
return false;
} return true;
}

return true;
},

complete: function (id) {


+ 5
- 0
src/server/config/quests/questBuilder.js Wyświetl plik

@@ -8,6 +8,7 @@ module.exports = {
init: function (instance) {
this.instance = instance;
},

obtain: function (obj, template) {
let zoneName = template ? template.zoneName : obj.zoneName;
let zonePath = mapList.mapList.find(m => m.name === zoneName).path;
@@ -31,6 +32,10 @@ module.exports = {
if (config.infini.length === 0)
return;

const minPlayerLevel = ~~(obj.instance.map.zone.level[0] * 0.75);
if (obj.stats.values.level < minPlayerLevel)
return;

let pickQuest = null;
if ((template) && (template.type))
pickQuest = config.infini.find(c => c.type === template.type);


Ładowanie…
Anuluj
Zapisz