宠物上阵

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-16 02:44:43 +08:00
parent 391ce959cb
commit 1683ec01a0
27 changed files with 5227 additions and 187 deletions

View File

@@ -16,7 +16,7 @@ export default class PlayerPetData extends BaseData{
}
//获取全部宠物
getData(){
getData():PlayerPetOV[]{
return this.datas;
}
@@ -33,6 +33,11 @@ export default class PlayerPetData extends BaseData{
await this.UpdatePlayerPet();
}
//通过宠物Id找到宠物
petIdQueryPetInfo(petId:number):PlayerPetOV{
return this.datas.filter(item => item.petId == petId)[0]
}
}