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