-
Notifications
You must be signed in to change notification settings - Fork 9
/
_ME十三炮.py
88 lines (74 loc) · 2.3 KB
/
_ME十三炮.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# coding=utf-8
"""
阵名: ME十三炮
出处: https://tieba.baidu.com/p/5288033944
节奏: C5u-35s: PPD|PPD|PPD|IP-PPD, (6|6|6|17)
"""
from pvz import *
@RunningInThread
def I():
Card("花盆", (3, 7))
Card("寒冰菇", (3, 7))
Delay(100 + 1)
Shovel((3, 7))
@RunningInThread
def II():
Card("花盆", (3, 7))
Card("复制冰", (3, 7))
Delay(320 + 100 + 1)
Shovel((3, 7))
SetZombies(["普僵", "撑杆", "橄榄", "冰车", "小丑", "气球", "跳跳", "蹦极", "扶梯", "篮球", "白眼", "红眼"])
SelectCards(["玉米", "玉米炮", "三叶草", "保护伞", "樱桃", "倭瓜", "坚果", "花盆", "寒冰菇", "复制冰"])
UpdatePaoList([
(1, 3), (1, 5), (1, 1), \
(2, 3), (2, 5), (2, 1), \
(3, 3), (3, 5), (3, 1), \
(4, 6), \
(4, 1), (5, 6), (5, 1) \
])
AutoCollect() # 自动收集资源
for wave in range(1, 21):
print("当前操作波次: " + str(wave))
if wave in (20, ):
Prejudge(10 - 320, wave)
II() # 冰消空降
Until(100)
RoofPao((5, 8))
Until(800)
RoofPao((2, 9), (2, 9), (2, 9), (2, 9))
Until(1000)
RoofPao((4, 9), (4, 9), (4, 9), (4, 9))
print("第 %s 波手动收尾." % wave)
# IP-PPD
elif wave in (4, 8, 10, 14, 18):
Prejudge(-150, wave)
if wave in (4, 10, 18): # 本波原版冰
Until(5 - 100)
I()
Until(100)
RoofPao((5, 8))
Until(1700 - 200 - 373)
RoofPao((2, 8.5), (4, 8.5))
Delay(230) # Until(1700 - 200 - 373 + 230) # 减速延迟 230 炸小鬼
RoofPao((2, 7))
# PPD
else: # elif wave in (1, 2, 3, 5, 6, 7, 9, 11, 12, 13, 15, 16, 17, 19):
Prejudge(10, wave) # 刷新后
RoofPao((2, 8.5), (4, 8.5))
Delay(130) # Until(10 + 130) # 原速延迟 130 炸小鬼
RoofPao((2, 7.7))
if wave in (7, 13): # 下一波的复制冰
Until(601 + 5 - 100 - 320)
II()
if wave in (9, 19): # 收尾
Until(601)
RoofPao((2, 8.5), (4, 8.5))
Delay(130)
RoofPao((2, 7.5))
# 自动操作收尾
Until(601 + 601)
RoofPao((2, 8.5))
Delay(300)
RoofPao((5, 8))
Delay(500)
RoofPao((5, 8))