mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-10-09 00:26:11 +00:00
宠物上阵
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user