Skip to content

Commit aa52adf

Browse files
committed
Automated commit by bot: Thu Nov 14 12:00:01 2024
1 parent 1149245 commit aa52adf

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

Diff for: docs/exp/duizhanmoshi.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,23 @@ if self.jinristep > nstep: self.标准模式 = self.触摸对战 = self.组队
2727
if not self.组队模式: self.Tool.touchfile(self.无法进行组队FILE,"nstep对战结束")
2828
#................................................................................
2929
# 选择对战线路和英雄
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)]
3133
index=(self.runstep+self.mynode)%len(分路名称)
3234
TimeECHO(f"本次{self.runstep}对战分路: {分路名称[index]}")
3335
#
34-
# 第(列,行)的英雄位置
35-
pos=[(6,5),(4,4),(9,2),(9,5),(2,4)][index]
36+
#主战英雄
37+
pos=位置坐标[index]
3638
参战英雄头像坐标=(-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]
3839
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)
4047
#................................................................................
4148
# 礼包功能
4249
self.启动礼包功能 = self.mynode == 0

0 commit comments

Comments
 (0)