Browse Source

balance #1952

(cherry picked from commit 2086156533)
tags/v0.11.0.4
Shaun 1 year ago
committed by Big Bad Waffle
parent
commit
6aeed95514
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/server/world/resourceSpawner.js

+ 2
- 3
src/server/world/resourceSpawner.js View File

@@ -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
}


Loading…
Cancel
Save