modify 废币区才加能量

This commit is contained in:
sk 2025-01-18 10:14:45 +08:00
parent 523213c7a3
commit 63943054a4
1 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import (
)
const (
PowerMax = 700000
PowerMax = 134000
PowerInit = 400000
)
@ -301,8 +301,10 @@ func CSPushCoinPlayerOp(s *netlib.Session, packetid int, data interface{}, sid i
if val <= 0 {
logger.Logger.Errorf("推币机价值查询bug itemId:%v", v.GetItemId())
}
if msg.GetOpParam() != 1 {
PushCoinAddPower(p, val*v.GetItemNum())
}
logger.Logger.Debugf("推币机,掉落 ItemId:%v ItemNum:%v Value:%v", v.GetItemId(), v.GetItemNum(), val)
PushCoinAddPower(p, val*v.GetItemNum())
// 减少桌面道具
PushCoinAddValue(p, map[int32]int64{v.GetItemId(): -v.GetItemNum()})