fix: improve endgame clock and gameplay stability

This commit is contained in:
CAtlas0784 committed 2026-11-04 15:59:48 +07:00
1 parent ce6aabfc55
commit 658298ee86
46 files changed
+1915 -99

No files matched your search

+16 -3
View File
@@ -77,9 +77,22 @@ func init() {
if player == nil {
return nil
}
// The imported banner lists target another Client. Reject draws until
// their pools, grants and protocol fields are verified for this Client.
rsp.Retcode = uint32(pb.Retcode_RET_GACHA_NOT_SUPPORT)
mapped, _, err := common.LoadLimitedGachaBanners()
if err != nil {
return err
}
for _, banner := range mapped {
if banner.GachaID == req.GachaId {
return drawLimitedAvatar(s, req, rsp, banner)
}
}
drawn, err := drawSandboxPool(s, req, rsp)
if err != nil {
return err
}
if !drawn {
rsp.Retcode = uint32(pb.Retcode_RET_GACHA_NOT_SUPPORT)
}
return nil
})