修改战斗系统
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user