forked from LondonClass/pvzscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_RE十六炮.py
87 lines (77 loc) · 2.39 KB
/
_RE十六炮.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
# coding=utf-8
"""
阵名: RE十六炮
出处: https://tieba.baidu.com/p/1410367512
节奏: ch6: PSD/P|IP-PPD|PSD/P|IP-PPD, (6|12|6|12)
"""
from pvz import *
WriteMemory("int", 0x00679300, 0x0040FCED) # 取消点炮限制
SetZombies(["普僵", "撑杆", "橄榄", "冰车", "小丑", "气球", "跳跳", "蹦极", "扶梯", "篮球", "白眼", "红眼"])
SelectCards(["玉米", "玉米炮", "樱桃", "倭瓜", "坚果", "核蘑菇", "冰蘑菇", "模仿者寒冰菇", "咖啡豆", "花盆"])
UpdatePaoList([
(1, 3), # P
(1, 5), # S
(1, 7), # P
(1, 1), # D
(2, 3), # P
(2, 5), # P
(2, 7), # P
(2, 1), # D
(3, 3), # P
(3, 5), # S
(3, 7), # P
(3, 1), # D
(4, 6), # P
(4, 1), # P
(5, 6), # P
(5, 1), # D
])
AutoCollect() # 自动收集资源
IceSpots([(5, 3), (4, 3)], 11)
for wave in range(1, 21):
print("当前操作波次: " + str(wave))
# PPSD
if wave in (1, 3, 5, 7, 9, 10, 12, 14, 16, 18):
Prejudge(-10, wave) # -10+373 < 377
RoofPao((2, 9), (2, 9), (4, 9))
Delay(110) # 110 拦截
RoofPao((2, 8.8))
Until(601 + 50 - 298) # 50cs 预判冰
Coffee()
if wave == 9:
Until(601 - 150)
RoofPao((2, 9))
Until(601 + 1200 - 200 - 373)
RoofPao((5, 9), (5, 9))
Delay(1100) # 等会儿
RoofPao((5, 9))
# IP-PPD
elif wave in (2, 4, 6, 8, 11, 13, 15, 17, 19):
Prejudge(-150, wave)
RoofPao((2, 9))
Until(1200 - 200 - 373) # 1200cs 波长
RoofPao((2, 9), (4, 9)) # 激活炸
Delay(220) # 220 拦截
RoofPao((2, 7.8))
if wave == 19:
Until(1200 - 10)
RoofPao((2, 9), (2, 9), (4, 9))
Delay(110) # 110 拦截
RoofPao((2, 8.8))
Until(1200 + 601 - 150)
RoofPao((5, 9))
Until(1200 + 601 + 1200 - 200 - 373)
Delay(50) # 等会儿
RoofPao((5, 9))
elif wave == 20:
Prejudge(-200, wave)
Coffee() # 冰消空降
Until(-100)
RoofPao((2, 8.5), (5, 8.5)) # 炸冰车
Until(50)
RoofPao((4, 2.5), (4, 6.7)) # 炸小偷
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)