-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshipTypes.py
111 lines (108 loc) · 2.33 KB
/
shipTypes.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
import sys
from RoguePy.UI import Colors
from util import randint
shipTypes = {
"Ship o'Line": {
'maxSpeed': 25,
'guns': 50,
'minCrew': 30,
'maxCrew': 200,
'size': 750,
'hullDamage': 0,
'sailDamage': 0,
'price': 20000,
'color': Colors.darkest_grey
},
"Galleon": {
'maxSpeed': 20,
'guns': 40,
'minCrew': 30,
'maxCrew': 200,
'size': 650,
'hullDamage': 0,
'sailDamage': 0,
'price': 15000,
'color': Colors.brass
},
"Brig": {
'maxSpeed': 30,
'guns': 32,
'minCrew': 25,
'maxCrew': 150,
'size': 550,
'hullDamage': 0,
'sailDamage': 0,
'price': 10000,
'color': Colors.darker_grey
},
"Brigantine": {
'maxSpeed': 35,
'guns': 16,
'minCrew': 25,
'maxCrew': 125,
'size': 500,
'hullDamage': 0,
'sailDamage': 0,
'price': 8000,
'color': Colors.darkest_sepia
},
"Frigate": {
'maxSpeed': 25,
'guns': 24,
'minCrew': 20,
'maxCrew': 50,
'size': 300,
'hullDamage': 0,
'sailDamage': 0,
'price': 5000,
'color': Colors.dark_grey
},
"Clipper": {
'maxSpeed': 45,
'guns': 16,
'minCrew': 20,
'maxCrew': 45,
'size': 250,
'hullDamage': 0,
'sailDamage': 0,
'price': 3000,
'color': Colors.darker_violet
},
"Schooner": {
'maxSpeed': 40,
'guns': 12,
'minCrew': 15,
'maxCrew': 30,
'size': 150,
'hullDamage': 0,
'sailDamage': 0,
'price': 1000,
'color': Colors.darker_blue
},
"Sloop": {
'maxSpeed': 30,
'guns': 10,
'minCrew': 5,
'maxCrew': 20,
'size': 150,
'hullDamage': 0,
'sailDamage': 0,
'price': 500,
'color': Colors.light_grey
},
"Caravel": {
'maxSpeed': 25,
'guns': 8,
'minCrew': 5,
'maxCrew': 15,
'size': 100,
'hullDamage': 0,
'sailDamage': 0,
'price': 450,
'color': Colors.white
}
}
def getRandomType():
index = randint(len(shipTypes) - 1)
key = shipTypes.keys()[index]
return key