Sfoglia il codice sorgente

fix stashing quantity = 1

tags/v0.1.2^2
Vladde Nordholm 7 anni fa
parent
commit
fc184d77e4
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. +3
    -2
      src/server/components/inventory.js

+ 3
- 2
src/server/components/inventory.js Vedi File

@@ -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) {


Caricamento…
Annulla
Salva