feat(item): 调整玄彩道具使用数量限制 玄彩道具检查逻辑从 items <= 0 修改为 items < 100, 确保玩家拥有至少100个道具才能使用。 fix(fight): 修复战斗操作通道阻塞问题 添加10秒超时机制到战斗操作通道发送逻辑中, 避免通道满载时的
This commit is contained in:
@@ -102,7 +102,7 @@ func (h Controller) handlexuancaiItem(currentPet *model.PetInfo, c *player.Playe
|
||||
return errorcode.ErrorCodes.ErrItemUnusable
|
||||
}
|
||||
items := c.Service.Item.CheakItem(uint32(xmlres.PetMAP[int(currentPet.ID)].Type) + 400686)
|
||||
if items <= 0 {
|
||||
if items < 100 {
|
||||
return errorcode.ErrorCodes.ErrInsufficientItems
|
||||
}
|
||||
c.Service.Item.UPDATE(uint32(items), -100)
|
||||
|
||||
Reference in New Issue
Block a user