@@ -27,16 +27,23 @@ if self.jinristep > nstep: self.标准模式 = self.触摸对战 = self.组队
27
27
if not self.组队模式: self.Tool.touchfile(self.无法进行组队FILE,"nstep对战结束")
28
28
#................................................................................
29
29
# 选择对战线路和英雄
30
- 分路名称=["对抗", "中路","发育","打野","游走"]
30
+ 分路名称=["对抗", "打野","中路","发育","游走"]
31
+ 线路坐标=[(-0.314, -0.26), (-0.194, -0.26), (-0.069, -0.26), (0.037, -0.26), (0.18, -0.26)]
32
+ 位置坐标=[(6,5),(9,5),(4,4),(9,2),(2,4)]
31
33
index=(self.runstep+self.mynode)%len(分路名称)
32
34
TimeECHO(f"本次{self.runstep}对战分路: {分路名称[index]}")
33
35
#
34
- # 第(列,行)的英雄位置
35
- pos=[(6,5),(4,4),(9,2),(9,5),(2,4)] [index]
36
+ #主战英雄
37
+ pos=位置坐标 [index]
36
38
参战英雄头像坐标=(-0.54+pos[0]*0.09,-0.31+pos[1]*0.11)
37
- 参战英雄线路坐标=[(-0.314, -0.26), (-0.069, -0.26), (0.037, -0.26), (-0.194, -0.26), (0.18, -0.26)][index]
38
39
self.Tool.cal_record_pos(参战英雄头像坐标, self.移动端.resolution, "参战英雄头像", savepos=True)
39
- self.Tool.cal_record_pos(参战英雄线路坐标, self.移动端.resolution, "参战英雄线路", savepos=True)
40
+ self.Tool.cal_record_pos(线路坐标[index], self.移动端.resolution, "参战英雄线路", savepos=True)
41
+ #备战英雄
42
+ index=(self.runstep+self.mynode+1)%len(分路名称)
43
+ pos=位置坐标[index]
44
+ 参战英雄头像坐标=(-0.54+pos[0]*0.09,-0.31+pos[1]*0.11)
45
+ self.Tool.cal_record_pos(参战英雄头像坐标, self.移动端.resolution, "备战英雄头像", savepos=True)
46
+ self.Tool.cal_record_pos(线路坐标[index], self.移动端.resolution, "备战英雄线路", savepos=True)
40
47
#................................................................................
41
48
# 礼包功能
42
49
self.启动礼包功能 = self.mynode == 0
0 commit comments