Просмотр исходного кода

balance #1952

(cherry picked from commit 2086156533)
tags/v0.11.0.4
Shaun 1 год назад
committed by Big Bad Waffle
Родитель
Сommit
6aeed95514
1 измененных файлов: 2 добавлений и 3 удалений
  1. +2
    -3
      src/server/world/resourceSpawner.js

+ 2
- 3
src/server/world/resourceSpawner.js Просмотреть файл

@@ -131,15 +131,14 @@ module.exports = {
if (blueprint.quantity)
quantity = blueprint.quantity[0] + ~~(Math.random() * (blueprint.quantity[1] - blueprint.quantity[0]));

let zoneLevel = this.zoneConfig.level;
zoneLevel = ~~(zoneLevel[0] + ((zoneLevel[1] - zoneLevel[0]) / 2));
const nodeXp = this.zoneConfig.level[0] * 2;

let objBlueprint = extend({}, blueprint, position);
objBlueprint.properties = {
cpnResourceNode: {
nodeType: blueprint.type,
ttl: blueprint.ttl,
xp: zoneLevel * zoneLevel,
xp: nodeXp,
blueprint: extend({}, blueprint),
quantity: quantity
}


Загрузка…
Отмена
Сохранить