Ver código fonte

Merge branch '74-stash-quanity' into 'staging'

fix stashing quantity = 1

See merge request !64
tags/v0.1.2^2
Big Bad Waffle 7 anos atrás
pai
commit
ca39520848
1 arquivos alterados com 3 adições e 2 exclusões
  1. +3
    -2
      src/server/components/inventory.js

+ 3
- 2
src/server/components/inventory.js Ver arquivo

@@ -153,9 +153,10 @@ define([
var stash = this.obj.stash; var stash = this.obj.stash;
if (!stash.active) if (!stash.active)
return; return;

var clonedItem = extend(true, {}, item);
this.destroyItem(id); this.destroyItem(id);
stash.deposit(item);
stash.deposit(clonedItem);
}, },


salvageItem: function(id) { salvageItem: function(id) {


Carregando…
Cancelar
Salvar