update
This commit is contained in:
parent
82f1f44917
commit
5ce7e72a8b
@ -48,6 +48,7 @@ func (this *ModuleRobot_Caravan) DoPipeline(robot IRobot) (err error) {
|
||||
resp proto.Message
|
||||
errdata *pb.ErrorData
|
||||
)
|
||||
this.curCity += 1
|
||||
if resp, errdata = robot.SendMessage("caravan", "gotocity", &pb.CaravanGotoCityReq{
|
||||
City: this.curCity,
|
||||
Ticket: 1,
|
||||
@ -67,6 +68,9 @@ func (this *ModuleRobot_Caravan) DoPipeline(robot IRobot) (err error) {
|
||||
}
|
||||
}
|
||||
//CaravanBuyOrSellReq
|
||||
if _, ok := data.City[this.curCity]; !ok {
|
||||
return
|
||||
}
|
||||
var item string
|
||||
for _, v := range data.City[this.curCity].Special {
|
||||
item = v
|
||||
|
Loading…
Reference in New Issue
Block a user