-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplayer.py
125 lines (105 loc) · 5.58 KB
/
player.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
#####################################################################################
## ____ _______ _________________ _ _____ ________ ___ ______________
## / __/__< / / / / __/ __/ ___/ __ \/ |/ / _ \ / __/ __ \/ _ \/_ __/ _/ __/
## / _//___/ /_ _/ _\ \/ _// /__/ /_/ / / // / _\ \/ /_/ / , _/ / / _/ // _/
## /_/ /_/ /_/ /___/___/\___/\____/_/|_/____/ /___/\____/_/|_| /_/ /___/___/
##
## A P-ROC Project by Mark Sunnucks
## Built on PyProcGame from Adam Preble and Gerry Stellenberg
## Thanks to Scott Danesi for inspiration from his Earthshaker Aftershock
#####################################################################################
#################################################################################
#
# ___ __ ______ __
# / _ \/ /__ ___ _____ ____ / __/ /____ _/ /____
# / ___/ / _ `/ // / -_) __/ _\ \/ __/ _ `/ __(_-<
# /_/ /_/\_,_/\_, /\__/_/ /___/\__/\_,_/\__/___/
# /___/
#################################################################################
import procgame.game
class Player(procgame.game.Player):
def __init__(self, name):
super(Player, self).__init__(name)
### Create Player Stats Array ############################
self.player_stats = {}
### General Stats ########################################
self.player_stats['ball_in_play']=False
self.player_stats['extra_balls']=0
self.player_stats['extra_ball_lit']=False
### Ball Saver ###########################################
self.player_stats['ballsave_active']=False
self.player_stats['ballsave_timer_active']=False
### Bonus and Status #####################################
self.player_stats['status']=''
self.player_stats['bonus_x']=1
self.player_stats['bumper_score'] = 500
self.player_stats['spinner_score'] = 500
self.player_stats['bonus']=0
self.player_stats['loop_shots']=0
self.player_stats['bonusXRight']='off'
self.player_stats['bonusXLeft']='off'
self.player_stats['center_shots']=0
self.player_stats['yagov_shots']=0
self.player_stats['kickback_lit']=False
### Kickback Stats ####################################
self.player_stats['kickback_active']=False
### Jackpot Stats ########################################
self.player_stats['jackpot_level']=1
self.player_stats['total_jackpots_collected']=0
self.player_stats['last_multiball_jackpots_collected']=0
### Multiball Stats ######################################
self.player_stats['upper_lock']='off'
self.player_stats['middle_lock']='off'
self.player_stats['lower_lock']='off'
self.player_stats['multiball_running']='None'
self.player_stats['multiballs_played']=0
self.player_stats['jackpot_lit']=False
self.player_stats['balls_locked']=0
self.player_stats['balls_landed']=0
self.player_stats['upper_landing']='off'
self.player_stats['middle_landing']='off'
self.player_stats['lower_landing']='off'
### Right Ramp Stats #####################################
self.player_stats['fault_visits']=0
self.player_stats['million_lit']=False
### Skillshot ############################################
self.player_stats['skillshot_active']=False
self.player_stats['skillshot_x']=1
### Kill Status Stats ####################################
## Count of completed missions
self.player_stats['kills_completed']=0
self.player_stats['target1-6_completed']=0
self.player_stats['tomcat_completed']=0
self.player_stats['next_mission']='None'
self.player_stats['mission_in_progress']='None'
## Per mission status
## -1 = Initial
## 0 = Available
## 1 = In progress
## 2 = Complete
self.player_stats['kill1']=-1
self.player_stats['kill2']=-1
self.player_stats['kill3']=-1
self.player_stats['kill4']=-1
self.player_stats['kill5']=-1
self.player_stats['kill6']=-1
self.player_stats['kill7']=-1
## Status of the 1-6 lamps
self.player_stats['target1']=False
self.player_stats['target2']=False
self.player_stats['target3']=False
self.player_stats['target4']=False
self.player_stats['target5']=False
self.player_stats['target6']=False
self.player_stats['lowerLeftT']=False
self.player_stats['lowerLeftO']=False
self.player_stats['lowerLeftM']=False
self.player_stats['upperLeftT']=False
self.player_stats['upperLeftO']=False
self.player_stats['upperLeftM']=False
self.player_stats['upperRightC']=False
self.player_stats['upperRightA']=False
self.player_stats['upperRightT']=False
self.player_stats['lowerRightC']=False
self.player_stats['lowerRightA']=False
self.player_stats['lowerRightT']=False