优化
This commit is contained in:
parent
66ca58f075
commit
53a5f0693f
@ -4321,12 +4321,10 @@ func ReqCollect(player *Player, buf []byte) error {
|
|||||||
func ReqSellChessNum(player *Player, buf []byte) error {
|
func ReqSellChessNum(player *Player, buf []byte) error {
|
||||||
req := &msg.ReqSellChessNum{}
|
req := &msg.ReqSellChessNum{}
|
||||||
proto.Unmarshal(buf, req)
|
proto.Unmarshal(buf, req)
|
||||||
BaseMod := player.PlayMod.getBaseMod()
|
|
||||||
ChessMod := player.PlayMod.getChessMod()
|
|
||||||
data, _ := mergeDataCfg.GetOne(int(req.ChessId))
|
data, _ := mergeDataCfg.GetOne(int(req.ChessId))
|
||||||
Num := data.SellNum
|
Num := data.SellNum
|
||||||
limitedTimeEventMod := player.PlayMod.getLimitedTimeEventMod()
|
limitedTimeEventMod := player.PlayMod.getLimitedTimeEventMod()
|
||||||
if checkChess(int(req.ChessId), BaseMod.GetEnergyMul(), ChessMod.GetEmitList()) || limitedTimeEventMod.CheckExist(limitedTimeEvent.EVENT_TYPE_PAYBACK_DAY) {
|
if limitedTimeEventMod.CheckExist(limitedTimeEvent.EVENT_TYPE_PAYBACK_DAY) {
|
||||||
Num = data.Star
|
Num = data.Star
|
||||||
}
|
}
|
||||||
player.PushClientRes(&msg.ResSellChessNum{
|
player.PushClientRes(&msg.ResSellChessNum{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user