Skip to content

Commit 0fe5f7a

Browse files
committed
增加:经营活动
1 parent 1b219fb commit 0fe5f7a

File tree

3 files changed

+186
-22
lines changed

3 files changed

+186
-22
lines changed
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
import { IFuncOrigin, IFuncOperatorOrigin, IFuncOperator } from '@/interface/IFunc';
2+
import { Script } from '@/system/script';
3+
// const normal = -1; //定义常量
4+
const left = 0;
5+
const center = 1;
6+
const right = 2;
7+
8+
export class Func101 implements IFuncOrigin {
9+
id = 101;
10+
name = '每月活动_经营';
11+
operator: IFuncOperatorOrigin[] = [{ // 0 挑战准备界面
12+
desc: [
13+
1280, 720,
14+
[
15+
[right, 1134, 592, 0x42589f],
16+
[right, 1223, 590, 0x4259a1],
17+
[right, 1135, 674, 0x616890],
18+
[right, 1221, 674, 0x59628f],
19+
[right, 1176, 662, 0xfffdf6],
20+
[right, 1177, 594, 0xfffdf7],
21+
]
22+
],
23+
oper: [
24+
[center, 1280, 720, 1129, 595, 1222, 667, 1000],
25+
]
26+
}, { // 1 挑战界面
27+
desc: [
28+
1280, 720,
29+
[
30+
[left, 55, 36, 0xa06c3c],
31+
[center, 332, 10, 0xaf905b],
32+
[left, 26, 50, 0x845b3b],
33+
[left, 244, 37, 0x593716],
34+
[left, 169, 34, 0xf8f3e0],
35+
]
36+
]
37+
}, { // 2 挑战达成
38+
desc: [
39+
1280, 720,
40+
[
41+
[center, 767, 27, 0xd5ccad],
42+
[center, 795, 27, 0x75504a],
43+
[center, 789, 49, 0x745148],
44+
[center, 781, 53, 0x6d4941],
45+
[center, 804, 55, 0xe9d1b1],
46+
]
47+
],
48+
oper: [
49+
[center, 1280, 720, 770, 27, 802, 51, 1000],
50+
[center, 1280, 720, 683, 401, 793, 441, 1000],
51+
]
52+
}, { // 3 挑战选店长
53+
desc: [
54+
1280, 720,
55+
[
56+
[left, 89, 101, 0x76623c],
57+
[right, 1177, 105, 0x8c7d41],
58+
[left, 156, 598, 0x738cb7],
59+
[center, 438, 102, 0x2d3957],
60+
[right, 1066, 109, 0x26304a],
61+
]
62+
],
63+
oper: [
64+
[center, 1280, 720, 266, 296, 406, 440, 200],
65+
[center, 1280, 720, 547, 296, 668, 433, 200],
66+
[center, 1280, 720, 806, 290, 939, 434, 200],
67+
[center, 1280, 720, 1054, 291, 1133, 434, 200],
68+
[center, 1280, 720, 1099, 604, 1177, 660, 1000],
69+
]
70+
}, { // 4 结算
71+
desc: [1280, 720,
72+
[
73+
[center, 378, 303, 0x775630],
74+
[center, 375, 443, 0x836138],
75+
[right, 908, 289, 0x73542f],
76+
[right, 923, 449, 0x87643b],
77+
[right, 891, 349, 0xa68b73],
78+
[center, 396, 355, 0xa2846c],
79+
]
80+
],
81+
oper: [
82+
[center, 1280, 720, 1065, 252, 1151, 425, 1000],
83+
[center, 1280, 720, 1065, 252, 1151, 425, 1000],
84+
]
85+
}, { // 5 票不足
86+
desc: [
87+
1280, 720,
88+
[
89+
[left, 260, 545, 0xeecfa0],
90+
[center, 468, 543, 0xedcfa4],
91+
[center, 539, 549, 0xe8c894],
92+
[center, 713, 546, 0xe6c692],
93+
[center, 922, 543, 0xefd1a3],
94+
[right, 998, 548, 0xe8c793],
95+
]
96+
],
97+
oper: [
98+
[center, 1280, 720, 1065, 252, 1151, 425, 1000],
99+
]
100+
}];
101+
operatorFunc(thisScript: Script, thisOperator: IFuncOperator[]): boolean {
102+
if (thisScript.oper({
103+
id: 101,
104+
name: '经营_结束',
105+
operator: [thisOperator[5]]
106+
})) {
107+
thisScript.doPush(thisScript, { text: '经营活动已结束,请查看。', before() { thisScript.myToast('脚本即将停止,正在上传数据'); } });
108+
thisScript.stop();
109+
sleep(3000);
110+
return true;
111+
}
112+
if (thisScript.oper({
113+
id: 101,
114+
name: '经营_杂项',
115+
operator: [thisOperator[0], thisOperator[2], thisOperator[4]]
116+
})) {
117+
return true;
118+
}
119+
120+
if (thisScript.oper({
121+
id: 101,
122+
name: '经营_选人',
123+
operator: [{
124+
desc: thisOperator[3].desc,
125+
oper: [
126+
thisOperator[3].oper[0],
127+
thisOperator[3].oper[1],
128+
thisOperator[3].oper[2],
129+
thisOperator[3].oper[3],
130+
]
131+
}]
132+
})) {
133+
thisScript.regionSwipe(thisOperator[3].oper[2], thisOperator[3].oper[1], [500, 800]);
134+
thisScript.regionClick([thisOperator[3].oper[3], thisOperator[3].oper[4]]);
135+
return true;
136+
}
137+
138+
if (thisScript.oper({
139+
name: '经营_箱子',
140+
operator: [{ desc: thisOperator[1].desc }]
141+
})) {
142+
const point3 = thisScript.findMultiColor('经营_选取店长');
143+
if (point3) {
144+
thisScript.regionClick([[point3.x + 20, point3.y - 80, point3.x + 60, point3.y - 60, 200]]);
145+
return true;
146+
}
147+
const point = thisScript.findMultiColor('经营_箱子');
148+
if (point) {
149+
thisScript.regionClick([[point.x - 15, point.y - 15, point.x + 15, point.y + 15, 200]]);
150+
return true;
151+
}
152+
const point2 = thisScript.findMultiColor('经营_加号');
153+
if (point2) {
154+
thisScript.regionClick([[point2.x - 15, point2.y - 15, point2.x + 15, point2.y + 15, 200]]);
155+
return true;
156+
}
157+
}
158+
159+
160+
return false;
161+
}
162+
}

src/common/multiFindColors.ts

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3100,43 +3100,42 @@ const multiFindColors: IMultiFindColorsOrigin = {
31003100
]
31013101
]]
31023102
},
3103-
'音动小街_挑战_箱子': {
3103+
'经营_箱子': { // 领箱子
31043104
region: [center, 1280, 720, 107, 81, 1210, 444],
3105-
desc: [[ // 领箱子
3105+
desc: [[
31063106
1280, 720,
31073107
[
3108-
[center, 633, 361, 0xae2c18],
3109-
[center, 633, 343, 0x6cafaf],
3110-
[center, 658, 365, 0x520707],
3111-
[center, 658, 393, 0xe2d3db],
3112-
[center, 660, 363, 0x520707],
3108+
[center, 607, 341, 0xe1a928],
3109+
[center, 600, 337, 0xa82518],
3110+
[center, 616, 337, 0xb73619],
3111+
[center, 625, 337, 0x4d0305],
3112+
[center, 609, 341, 0xf3c436],
31133113
]
31143114
]]
31153115
},
3116-
'音动小街_挑战_加号': {
3116+
'经营_加号': { // 点+号
31173117
region: [center, 1280, 720, 107, 81, 1210, 444],
3118-
desc: [[ // 点+号
3118+
desc: [[
31193119
1280, 720,
31203120
[
3121-
[center, 187, 222, 0xeef7f7],
3122-
[center, 171, 207, 0x71b4b4],
3123-
[center, 171, 231, 0xacc1c7],
3124-
[center, 205, 202, 0x6aaeae],
3125-
[center, 205, 203, 0x6dafaf],
3121+
[left, 182, 204, 0xeef7f7],
3122+
[left, 168, 182, 0x485a9f],
3123+
[left, 200, 189, 0x4962a5],
3124+
[left, 167, 204, 0xeef7f7],
3125+
[left, 183, 204, 0xeef7f7],
3126+
[left, 178, 245, 0xd9d1c3],
31263127
]
31273128
]]
31283129
},
3129-
'音动小街_挑战_营业中': {
3130-
region: [center, 1280, 720, 153, 616, 1150, 660],
3130+
'经营_选取店长': {
3131+
region: [center, 1280, 720, 153, 616, 1150, 719],
31313132
desc: [[
31323133
1280, 720,
31333134
[
3134-
[center, 895, 629, 0x8a3f37],
3135-
[center, 892, 641, 0x8a3f37],
3136-
[center, 918, 639, 0x8a3f37],
3137-
[center, 918, 631, 0x893f37],
3138-
[center, 930, 639, 0xfcfbe0],
3139-
[center, 924, 635, 0xfbf9de],
3135+
[center, 596, 690, 0xe5ca9f],
3136+
[center, 617, 690, 0x4e5a7f],
3137+
[center, 660, 691, 0x535f81],
3138+
[center, 705, 693, 0x4b526d],
31403139
]
31413140
]]
31423141
},

src/common/version.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,9 @@ export const versionList = [{
12931293
}, {
12941294
version: '20241230_01',
12951295
desc: '增加:9突破取消锁定,1战斗主题非简约主题会提示更换'
1296+
}, {
1297+
version: '20241231_01',
1298+
desc: '增加:经营活动'
12961299
}];
12971300

12981301
export default versionList[versionList.length - 1].version;

0 commit comments

Comments
 (0)