Sfoglia il codice sorgente

more work

tags/v0.11.0
Shaun 2 anni fa
parent
commit
54443950a3
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. +3
    -2
      src/server/config/quests/questBuilder.js

+ 3
- 2
src/server/config/quests/questBuilder.js Vedi File

@@ -10,7 +10,7 @@ module.exports = {
}, },


obtain: function (obj, template) { obtain: function (obj, template) {
let zoneName = template ? template.zoneName : obj.zoneName;
let zoneName = template?.zoneName ?? obj.zoneName;
let zone = mapList.mapList.find(m => m.name === zoneName); let zone = mapList.mapList.find(m => m.name === zoneName);


//Zone doesn't exist any more. Probably been renamed //Zone doesn't exist any more. Probably been renamed
@@ -36,7 +36,8 @@ module.exports = {
this.instance.eventEmitter.emit('onBeforeGetQuests', { this.instance.eventEmitter.emit('onBeforeGetQuests', {
obj, obj,
config, config,
zoneName
zoneName,
template
}); });
if (config.infini.length === 0) if (config.infini.length === 0)
return; return;


Caricamento…
Annulla
Salva