卡牌优化

This commit is contained in:
hahwu 2025-06-30 11:06:51 +08:00
parent bb826fdf47
commit 8916d8489d
2 changed files with 5 additions and 3 deletions

View File

@ -281,8 +281,9 @@ func (p *Player) ZeroUpdate(a []interface{}) {
if VarMod.DailyResetTime < zeroTimestamp {
VarMod.DailyResetTime = zeroTimestamp
VarMod.DailyVar = make(map[int]interface{})
//卡牌
p.PlayMod.getCardMod().ZeroUpdate()
//卡牌 赛季结束补发图鉴奖励
HandbookItem := p.PlayMod.getCardMod().ZeroUpdate(G_GameLogicPtr.SeverInfo.OpenTime)
p.HandleItem(HandbookItem, msg.ITEM_POP_LABEL_AllCollectRewardHB.String())
p.PushClientRes(p.PlayMod.getCardMod().BackData())
// 每日任务

View File

@ -140,10 +140,11 @@ func (c *CardMod) Login(ServerOpenTime int64) []*item.Item {
return []*item.Item{{Id: item.ITEM_ENERGY_ID, Num: HandbookItemNum}}
}
func (c *CardMod) ZeroUpdate() {
func (c *CardMod) ZeroUpdate(ServerOpenTime int64) []*item.Item {
c.ReqTimes = cardCfg.GetReqTimes()
c.ExTimes = cardCfg.GetExTimes()
c.GoldTimes = 2
return c.Login(ServerOpenTime)
}
// 增加卡牌