feat(config): 添加超时空地图配置和时间地图查询功能 新增IsTimeSpace字段用于标识地图是否为超时空地图, 添加TimeMap API接口支持查询超时空地图配置 perf(socket): 优化XORDecryptU解密函数减少内存分配 基于bytebufferpool实现缓冲区池化,大幅降低高频调用下的 内存分配和GC压力,提升性能表现 refactor(utils): 优化packVal序列化函数提升性能和稳定性 减少反射开销,优化内存拷贝操作,改进错误处理机制, 替换panic为error返回,增强代码健壮性 docs(readme): 添加新的pprof性能分析地址配置 ```
This commit is contained in:
@@ -213,40 +213,19 @@ func (pet *PetInfo) Cure() {
|
||||
}
|
||||
}
|
||||
}
|
||||
func (pet *PetInfo) RandShiny() {
|
||||
|
||||
co := service.NewShinyService().RandShiny(pet.ID)
|
||||
if co != nil {
|
||||
pet.ShinyInfo = append(pet.ShinyInfo, co.Color)
|
||||
}
|
||||
//o.ShinyInfo[0].ColorMatrixFilter = GenerateRandomOffspringMatrix().Get()
|
||||
//g.Dump(ttt.ShinyInfo)
|
||||
// ttt.Shiny = 0 //待确认是否刷新异色
|
||||
}
|
||||
|
||||
// 强制选色,这个是给熔炉用的
|
||||
func (pet *PetInfo) FixShiny() {
|
||||
|
||||
co := service.NewShinyService().FixShiny(pet.ID)
|
||||
if co != nil {
|
||||
pet.ShinyInfo = append(pet.ShinyInfo, co.Color)
|
||||
} else {
|
||||
r := GenerateRandomOffspringMatrix()
|
||||
var t data.GlowFilter
|
||||
t.ColorMatrixFilter = r.Get()
|
||||
pet.ShinyInfo = append(pet.ShinyInfo, t)
|
||||
|
||||
}
|
||||
|
||||
co := service.NewShinyService().RandShiny(pet.ID)
|
||||
pet.ShinyInfo = append(pet.ShinyInfo, co.Color)
|
||||
}
|
||||
|
||||
// 比重融合
|
||||
func (pet *PetInfo) RandomByWeightShiny() {
|
||||
|
||||
co := service.NewShinyService().RandomByWeightShiny(pet.ID)
|
||||
if co != nil {
|
||||
pet.ShinyInfo = append(pet.ShinyInfo, co.Color)
|
||||
}
|
||||
pet.ShinyInfo = append(pet.ShinyInfo, co.Color)
|
||||
|
||||
}
|
||||
func (pet *PetInfo) IsShiny() bool {
|
||||
|
||||
Reference in New Issue
Block a user