-
Notifications
You must be signed in to change notification settings - Fork 9
/
_NE十五炮.py
127 lines (109 loc) · 3 KB
/
_NE十五炮.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# coding=utf-8
"""
阵名: NE十五炮
出处: https://tieba.baidu.com/p/1067040250
节奏: C8u: IPP-PP|PADC|PPDD|IPP-PP|NDC|PPDD, (13|6|6|13|6|6)
"""
from pvz import *
@RunningInThread
def DianCai():
Card("小喷", (4, 9))
Card("阳光", (5, 9))
Delay(120)
Shovel((4, 9))
Shovel((5, 9))
SetZombies(["普僵", "撑杆", "舞王", "小丑", "气球", "矿工", "跳跳", "蹦极", "扶梯", "篮球", "白眼", "红眼"])
SelectCards(["复制冰", "原版冰", "核蘑菇", "樱桃", "倭瓜", "墓碑", "南瓜", "三叶草", "阳光菇", "小喷菇"])
# UpdatePaoList([
# (1, 1), (2, 1), (3, 1), (4, 1), (5, 1),
# (1, 5), (2, 5), (3, 5), (4, 5), (5, 5),
# (1, 7), (2, 7), (3, 7), (4, 7), (5, 7),
# ])
AutoCollect() # 自动收集资源
for wave in range(1, 21):
print("当前操作波次: " + str(wave))
Prejudge(-195, wave)
# PPD
if wave in (10, ):
Until(-56)
Pao((2, 9), (4, 9))
Until(0)
Pao((2, 9))
# IPP-PP
elif wave in (1, 7, 11, 17):
Until(-150)
Pao((2, 8.5), (4, 8.5))
Until(5 - 100)
Card("寒冰菇", (1, 9))
if wave == 11:
Until(-150 + 83)
DianCai()
Until(1300 - 200 - 373)
Pao((2, 9), (4, 9))
# PADC
elif wave in (2, 8, 12, 18):
Until(-95)
Pao((2, 9))
Until(-12)
Pao((2, 9))
Until(-95 + 373 - 100)
Card("樱桃", (5, 9))
# PPDD
elif wave in (3, 9, 13, 19):
Until(-95)
Pao((2, 9), (5, 9))
Until(-15)
Pao((1, 9), (4, 9))
Until(0)
DianCai()
Until(601 + 44 - 100 - 320) # 44cs 预判冰
Card("模仿者寒冰菇", (1, 9))
if wave in (9, 19):
Until(601 - 150)
Pao((4, 9))
Delay(450)
Pao((1, 9))
Until(601 + 1300 - 200 - 373)
Delay(300)
Pao((2, 9), (5, 9))
# IPP-PP
elif wave in (4, 14):
Until(-150)
Pao((2, 8.5), (4, 8.5))
Until(1300 - 200 - 373)
Pao((2, 9), (4, 9))
# NDC
elif wave in (5, 15):
Until(-12)
Pao((2, 9))
Until(-95 + 373 - 100)
Card("核蘑菇", (3, 9) if wave == 5 else (2, 9))
# PPDD
elif wave in (6, 16):
Until(-95)
Pao((2, 9), (5, 9))
Until(-12)
Pao((1, 9), (4, 9))
Until(0)
DianCai()
elif wave == 20:
Until(-56)
Pao((1, 9), (4, 9))
Until(-35)
Pao((2, 9), (5, 9)) # 炸墓碑冒出的僵尸
Until(601 - 100 - 83)
Pao((1, 8.3), (4, 8.3))
Until(601 - 100)
# 冰杀小偷
with MouseLock():
SafeClick()
ClickSeed("寒冰菇")
ClickGrid((1, 9))
ClickGrid((2, 9))
ClickGrid((3, 9))
ClickGrid((4, 9))
ClickGrid((5, 9))
SafeClick()
Delay(100)
Pao((2, 8.2), (5, 8.2))
print("第 %s 波手动收尾." % wave)