ソースを参照

balance #1952

(cherry picked from commit 2086156533)
tags/v0.11.0.4
Shaun 1年前
committed by Big Bad Waffle
コミット
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
}


読み込み中…
キャンセル
保存