卡牌优化
This commit is contained in:
parent
a34ad81edb
commit
2ef0238730
@ -283,8 +283,9 @@ func (p *Player) ZeroUpdate(a []interface{}) {
|
|||||||
if VarMod.DailyResetTime < zeroTimestamp {
|
if VarMod.DailyResetTime < zeroTimestamp {
|
||||||
VarMod.DailyResetTime = zeroTimestamp
|
VarMod.DailyResetTime = zeroTimestamp
|
||||||
VarMod.DailyVar = make(map[int]interface{})
|
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())
|
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}}
|
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.ReqTimes = cardCfg.GetReqTimes()
|
||||||
c.ExTimes = cardCfg.GetExTimes()
|
c.ExTimes = cardCfg.GetExTimes()
|
||||||
c.GoldTimes = 2
|
c.GoldTimes = 2
|
||||||
|
return c.Login(ServerOpenTime)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 增加卡牌
|
// 增加卡牌
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user