装备:获得天晶石&合成装备
This commit is contained in:
@@ -244,13 +244,13 @@ export class SendMailFun {
|
||||
}
|
||||
}
|
||||
|
||||
export function checkMailGoods(mail: MailType | GroupMailType | ServerMailType, equipCount: number) {
|
||||
export function checkMailGoods(mail: MailType | GroupMailType | ServerMailType, jewelCount: number) {
|
||||
let isEquipOver = false;
|
||||
for (let good of mail.goods) {
|
||||
let dicGoods = gameData.goods.get(good.id);
|
||||
let dicItid = ITID.get(dicGoods.itid);
|
||||
if (dicItid.table == 'equip') { // 装备
|
||||
if (++equipCount > BAG.BAG_EQUIP_UPLIMITED) {
|
||||
if (dicItid.table == 'jewel') { // 装备
|
||||
if (++jewelCount > BAG.BAG_EQUIP_UPLIMITED) {
|
||||
isEquipOver = true;
|
||||
break;
|
||||
}
|
||||
@@ -258,6 +258,6 @@ export function checkMailGoods(mail: MailType | GroupMailType | ServerMailType,
|
||||
}
|
||||
|
||||
return {
|
||||
isEquipOver, equipCount
|
||||
isEquipOver, jewelCount
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user