feat(pet): 宠物系统重构和功能增强 - 修复战斗boss中effect ID索引错误问题 - 实现宠物仓库和背包管理功能 - 添加宠物列表排序保存功能 - 重构宠物备份列表同步逻辑 - 优化宠物释放和获取逻辑 - 添加宠物背包仓库切换功能 - 修复地图模型广播信息结构问题 - 调整宠物特效数据库查询逻辑 ```
This commit is contained in:
@@ -65,12 +65,8 @@ func (s *InfoService) GetLogin() *model.PlayerInfo {
|
||||
return nil
|
||||
}
|
||||
tt.Data.AllPetNumber = uint32(NewPetService(s.userid).PetCount(0))
|
||||
if len(tt.Data.BackupPetList) == 0 {
|
||||
storagePets := NewPetService(s.userid).PetInfo(1)
|
||||
tt.Data.BackupPetList = make([]model.PetInfo, len(storagePets))
|
||||
for i := range storagePets {
|
||||
tt.Data.BackupPetList[i] = storagePets[i].Data
|
||||
}
|
||||
if tt.Data.BackupPetList == nil {
|
||||
tt.Data.BackupPetList = make([]model.PetInfo, 0)
|
||||
}
|
||||
|
||||
if tt.Data.MapID > 300 || tt.Data.MapID == 0 { //如果位于基地,就重置到传送仓
|
||||
|
||||
Reference in New Issue
Block a user