no message

This commit is contained in:
sk 2024-10-08 16:05:47 +08:00
parent e224d2a4bd
commit d5332ddb34
1 changed files with 14 additions and 12 deletions

View File

@ -2033,19 +2033,21 @@ func (this *Player) ResetPermit() {
// 清理数据
bag := BagMgrSingleton.GetBagInfo(this.SnId)
if bag != nil {
BagMgrSingleton.AddItems(&model.AddItemParam{
Platform: this.Platform,
SnId: this.SnId,
Change: []*model.Item{
{
ItemId: common.ItemIDPermit,
ItemNum: -bag.BagItem[common.ItemIDPermit].ItemNum,
if bag.BagItem[common.ItemIDPermit] != nil {
BagMgrSingleton.AddItems(&model.AddItemParam{
Platform: this.Platform,
SnId: this.SnId,
Change: []*model.Item{
{
ItemId: common.ItemIDPermit,
ItemNum: -bag.BagItem[common.ItemIDPermit].ItemNum,
},
},
},
GainWay: common.GainWayPermitReset,
Operator: "system",
Remark: "赛季积分清理",
})
GainWay: common.GainWayPermitReset,
Operator: "system",
Remark: "赛季积分清理",
})
}
if model.GameParamData.PermitInitScore > 0 {
bagInfo := BagMgrSingleton.GetBagInfo(this.SnId)