修改战斗系统

This commit is contained in:
2025-09-19 00:29:55 +08:00
parent 60a8be8b48
commit a2eb88e9d3
27 changed files with 87540 additions and 3617 deletions

View File

@@ -90,8 +90,19 @@ func (h Controller) Complete_Task(data *task.CompleteTaskInboundInfo, c *player.
// })
}
if data.TaskId == 86 { //新手注册任务
var petid int
switch data.OutState {
r := model.GenPetInfo(1, []int{0, 31}, []int{0, 24}, []int{0}, []int{0}, []int{5})
case 1:
petid = 1
case 2:
petid = 7
case 3:
petid = 4
}
r := model.GenPetInfo(petid, []int{0, 31}, []int{0, 24}, []int{0, 39}, []int{0}, []int{5})
result.CaptureTime = r.CatchTime
result.PetTypeId = r.ID
c.Service.PetAdd(*r)