This website works better with JavaScript.
Почетна
Преглед
Помоћ
Регистрација
Пријавите Се
gitlord
/
isleward
огледало од
https://gitlab.com/Isleward/isleward.git
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Издања
203
Вики
Activity
Преглед изворни кода
Fixes
#67
tags/v0.1.7^2
Big Bad Waffle
пре 6 година
родитељ
c2f5a89724
комит
8f1af835c5
2 измењених фајлова
са
13 додато
и
6 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-6
src/client/js/components/inventory.js
+3
-0
src/server/components/equipment.js
+ 10
- 6
src/client/js/components/inventory.js
Прегледај датотеку
@@ -40,12 +40,16 @@ define([
return (item.id == nId);
});
if (findItem) {
if (!nItem.eq)
delete findItem.eq;
if (nItem.stats)
delete findItem.stats;
if (!nItem.power)
delete findItem.power;
[
'eq',
'stats',
'power',
'pos'
].forEach(function(s) {
if (!nItem[s])
delete findItem[s];
});
$.extend(true, findItem, nItem);
newItems.splice(i, 1);
+ 3
- 0
src/server/components/equipment.js
Прегледај датотеку
@@ -84,6 +84,9 @@ define([
return;
}
delete item.pos;
this.obj.syncer.setArray(true, 'inventory', 'getItems', item);
var spellId = null;
var currentEqId = this.eq[item.slot];
var currentEq = this.obj.inventory.findItem(currentEqId);
Write
Preview
Loading…
Откажи
Сачувај