瀏覽代碼

radulos now has a respawn time of 10 minutes

tags/v0.1.10^2
big bad waffle 6 年之前
父節點
當前提交
7f51b729de
共有 2 個檔案被更改,包括 8 行新增3 行删除
  1. +1
    -0
      src/server/config/maps/cave/zone.js
  2. +7
    -3
      src/server/world/map.js

+ 1
- 0
src/server/config/maps/cave/zone.js 查看文件

@@ -172,6 +172,7 @@ module.exports = {

'radulos': {
level: 18,
spawnCd: 1714,

regular: {
hpMult: 75,


+ 7
- 3
src/server/world/map.js 查看文件

@@ -343,8 +343,12 @@ define([
if (objZoneName != name)
blueprint.objZoneName = objZoneName;

if ((this.zone) && (this.zone.objects) && (this.zone.objects[objZoneName.toLowerCase()]))
extend(true, blueprint, this.zone.objects[objZoneName.toLowerCase()]);
if (this.zone) {
if ((this.zone.objects) && (this.zone.objects[objZoneName.toLowerCase()]))
extend(true, blueprint, this.zone.objects[objZoneName.toLowerCase()]);
else if ((this.zone.objects) && (this.zone.mobs[objZoneName.toLowerCase()]))
extend(true, blueprint, this.zone.mobs[objZoneName.toLowerCase()]);
}

if (blueprint.blocking)
this.collisionMap[blueprint.x][blueprint.y] = 1;
@@ -379,7 +383,7 @@ define([
this.hiddenRooms.push(blueprint);
} else if (!clientObj) {
if (!mapFile.properties.isRandom)
spawners.register(blueprint, mapFile.properties.spawnCd);
spawners.register(blueprint, blueprint.spawnCd || mapFile.properties.spawnCd);
else {
var room = this.rooms.find(function (r) {
return (!(


Loading…
取消
儲存