mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -34,7 +34,14 @@ export default class PetEquipData extends BaseData{
|
||||
|
||||
//锻造
|
||||
async forging(){
|
||||
return await API.PetEquipForging();
|
||||
return this.addEquip(await API.PetEquipForging());
|
||||
}
|
||||
|
||||
//添加装备
|
||||
addEquip(equip:PetEquip):PetEquip{
|
||||
if(this.equips.filter(item => item.equipId == equip.equipId).length) return null;
|
||||
this.equips.push(equip);
|
||||
return equip;
|
||||
}
|
||||
|
||||
//设置锻造宠
|
||||
|
Reference in New Issue
Block a user