优化
This commit is contained in:
parent
62b8959806
commit
b9bd656130
@ -10,7 +10,6 @@ import (
|
||||
type AvatarMod struct {
|
||||
List map[int]*Avatar
|
||||
SetId int
|
||||
Init bool
|
||||
}
|
||||
|
||||
type Avatar struct {
|
||||
@ -28,8 +27,7 @@ func (f *AvatarMod) Login(RegisterTime int64) {
|
||||
}
|
||||
func (a *AvatarMod) InitData() {
|
||||
now := GoUtil.Now()
|
||||
if a.List == nil || !a.Init {
|
||||
a.Init = true
|
||||
if a.List == nil {
|
||||
InitId := avatarCfg.GetInitList()
|
||||
a.List = make(map[int]*Avatar, len(InitId))
|
||||
for _, v := range InitId {
|
||||
|
||||
@ -529,10 +529,7 @@ func (cb *ChessBorad) PutChessInBag(Grid, ChessId, EmitId int) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
EmitColorId := mergeDataCfg.GetEmitId(ChessId)
|
||||
// ChessLv := mergeDataCfg.GetLvById(ChessId)
|
||||
// ChessMaxLv := mergeDataCfg.GetMaxLvById(ChessId)
|
||||
if Grid == 0 && cb.RetireReward[EmitColorId] { // 背包id为0且发射器已退役奖励已领取 直接放入荣誉室
|
||||
if Grid == 0 { // 背包id为0且发射器已退役奖励已领取 直接放入荣誉室
|
||||
cb.AddHonor(ChessId)
|
||||
return nil
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user