Explorar el Código

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

fix stashing quantity = 1

See merge request !64
tags/v0.1.2^2
Big Bad Waffle hace 7 años
padre
commit
ca39520848
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. +3
    -2
      src/server/components/inventory.js

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

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

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

salvageItem: function(id) {


Cargando…
Cancelar
Guardar