优化卡牌图鉴初始化

This commit is contained in:
hahwu 2024-12-27 09:49:11 +08:00
parent 65790cbb02
commit 504a92cb43
2 changed files with 7 additions and 1 deletions

View File

@ -2701,7 +2701,7 @@ func ReqPlayroomInfo(args []interface{}) error {
}
PlayerData := G_GameLogicPtr.GetSimplePlayerByUid(Targer)
PlayroomMod.SetTarget(Targer)
if PlayerData.Loginout < GoUtil.Now()-100000000300 { // todo DEBUG
if PlayerData.Loginout < GoUtil.Now()-300 { // todo DEBUG
PlayroomMod.SetGameId(1)
Star := min(500, max(PlayerData.Star/10, 10))
ChessMod := player.PlayMod.getChessMod()

View File

@ -97,6 +97,12 @@ func (c *CardMod) InitData() {
if c.Cache.Handbook == nil {
c.Cache.Handbook = make(map[int]int)
}
for k := range c.CardList {
if _, ok := c.Handbook[k]; !ok {
c.Handbook[k] = 1
}
}
}
func (c *CardMod) Login(ServerOpenTime int64) {