fix: improve endgame clock and gameplay stability
This commit is contained in:
1 parent
ce6aabfc55
commit
658298ee86
46 files changed
+1915
-99
No files matched your search
@@ -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
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user