Browse Source

feature[#1590]: Items in shops can now define different blueprints for items obtained after purchase vs the item that was seen in the shop

tags/v0.8.1^2
Shaun 3 years ago
parent
commit
6e0e1acd49
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/server/components/trade.js

+ 4
- 1
src/server/components/trade.js View File

@@ -208,7 +208,10 @@ module.exports = {
}

if (item.type !== 'skin') {
let clonedItem = extend({}, item);
//Some shop items have both an in-shop definition (item) as well as a definition
// for the item that should be given to the player (giveItem)
let clonedItem = extend({}, item.giveItem || item);

if (item.worth.currency)
clonedItem.worth = 0;
if ((item.stats) && (item.stats.stats)) {


Loading…
Cancel
Save