Пожалуйста, включите JavaScript.
Главная
Обзор
Помощь
Регистрация
Вход
gitlord
/
isleward
зеркало из
https://gitlab.com/Isleward/isleward.git
Следить
1
В избранное
0
Форкнуть
0
Код
Задачи
0
Релизы
203
Вики
Активность
Просмотр исходного кода
Fixes
#67
tags/v0.1.7^2
Big Bad Waffle
6 лет назад
Родитель
c2f5a89724
Сommit
8f1af835c5
2 измененных файлов
:
13 добавлений
и
6 удалений
Разделённый вид
Опции Diff
Показать статистику
Скачать Patch файл
Скачать Diff файл
+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);
Редактирование
Предпросмотр
Загрузка…
Отмена
Сохранить