fix(logic): 修改稀有宠物抓捕概率范围
将随机数生成范围从 0-9 调整为 1-12,提高稀有宠物的抓捕成功率
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
// 传送仓抓稀有
|
||||
func (h Controller) Cacthpet(data *pet.C2S_9756, c *player.Player) (result *pet.S2C_9756, err errorcode.ErrorCode) {
|
||||
result = &pet.S2C_9756{
|
||||
UseEV: uint32(grand.Intn(10)),
|
||||
UseEV: uint32(grand.N(1, 13)),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user