重置水池

This commit is contained in:
sk 2024-05-08 18:48:27 +08:00
parent 7219ddaed8
commit c09c059b79
1 changed files with 10 additions and 10 deletions

View File

@ -459,16 +459,6 @@ func (this *CoinPoolManager) ResetCoinPool(wgRcp *server.WGResetCoinPool) {
this.CoinPool.Store(key, value)
logger.Logger.Infof("$$$$$$$$金币池 %v 重置金币 %v.$$$$$$$$", key, value)
value = wgRcp.GetValue()
if value == -1 {
initValue := setting.GetInitNoviceValue()
if initValue != 0 { //初始化水池
value = initValue
}
}
this.NoviceCoinPool.Store(key, value)
logger.Logger.Infof("$$$$$$$$新手金币池 %v 重置金币 %v.$$$$$$$$", key, value)
case 2: //营收池
value := int64(wgRcp.GetValue())
if value == -1 {
@ -493,6 +483,16 @@ func (this *CoinPoolManager) ResetCoinPool(wgRcp *server.WGResetCoinPool) {
}
this.ProfitPool.Store(key, value)
logger.Logger.Infof("$$$$$$$$营收池 %v 重置金币 %v.$$$$$$$$", key, value)
case 8: // 新手池
value := wgRcp.GetValue()
if value == -1 {
initValue := setting.GetInitNoviceValue()
if initValue != 0 { //初始化水池
value = initValue
}
}
this.NoviceCoinPool.Store(key, value)
logger.Logger.Infof("$$$$$$$$新手金币池 %v 重置金币 %v.$$$$$$$$", key, value)
}
}
}