Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Inscrição
Iniciar sessão
gitlord
/
isleward
espelho de
https://gitlab.com/Isleward/isleward.git
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Lançamentos
203
Wiki
Trabalho
Ver a proveniência
fixes
#1564
tags/v0.8.0.6^2
Shaun
há 3 anos
ascendente
d3230bbc38
cometimento
659703a107
2 ficheiros alterados
com
11 adições
e
0 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+7
-0
src/server/events/events.js
+4
-0
src/server/world/instancer.js
+ 7
- 0
src/server/events/events.js
Ver ficheiro
@@ -251,6 +251,13 @@ module.exports = {
config.events.afterGiveRewards(this, config);
},
stopAll: function () {
this.configs.forEach(c => {
if (c.event)
this.stopEvent(c);
});
},
stopEvent: function (config) {
let event = config.event;
+ 4
- 0
src/server/world/instancer.js
Ver ficheiro
@@ -99,9 +99,13 @@ module.exports = {
return;
}
spawners.reset();
objects.objects.length = 0;
objects.objects = [];
events.stopAll();
map.randomMap.generate();
map.seed = _.getGuid();
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar