卡牌优化
This commit is contained in:
parent
bb826fdf47
commit
8916d8489d
@ -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())
|
||||
|
||||
// 每日任务
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
// 增加卡牌
|
||||
|
||||
Loading…
Reference in New Issue
Block a user