-
Notifications
You must be signed in to change notification settings - Fork 0
/
CorporateRepo.py
64 lines (55 loc) · 2.51 KB
/
CorporateRepo.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
import logging
from CepheusEngine import Career, CepheusEngine, Character
from Rpggen import Rpggen, Table
from Traveller import Traveller
class CorporateRepo(Career):
'''This class repsents one career.
'''
def __init__(self):
super().__init__({'name': 'Corporate Repo',
'qualifications': 'Int 5+',
'survival': 'Int 4+',
'commission': 'Soc 7+',
'advancement': 'Int 6+',
'reenlistment': '5+'})
self.addData('Ranks',
['Crew', 'Specialist', 'Agent', 'Lead', 'Manager','Director',
'Executive'])
self.addData('Skills',
['Streetwise', None, 'GunCombat', None, None, None, None])
self.addTable(Table('MaterialBenefits',
['Weapon', 'Explorer\' Society', 'Weapon', 'Mid Passage',
'High Passage', 'High Passage or Starship']))
self.addTable(Table('CashBenefits',
['cr2000', 'cr10000', 'cr10000', 'cr10000', 'cr20000', 'cr40000',
'cr100000']))
self.addTable(Table('PersonalDevelopment',
['+1 Str', '+1 Dex', '+1 End','MeleeCombat',
'Vehicle','Athletics']))
self.addTable(Table('ServiceDevelopment',
['Streetwise', 'Engineering', 'Bribery', 'Liaison',
'Recon', 'Mechanics']))
self.addTable(Table('SpecialistDevelopment',
['Zero-G', 'Comms', 'Admin', 'Tactics', 'Leadership',
'Jack-o-Trades']))
self.addTable(Table('AdvancedDevelopment',
['Computer', 'Gravitics', 'Piloting', 'Navigation',
'Advocate', 'Electronics']))
def qualified(self,character):
qual = self.config['qualifications']
result = character.checkEnglish(qual)
character.log.append(('qualified', result))
return result
if __name__ == '__main__':
# Initialize the CepheusEngine environment, which also initializes the
# basic Traveller environment.
#logging.basicConfig(level=logging.INFO)
cepheusEngine = CepheusEngine()
# Initialize the CorporateRepo career
crCareer = CorporateRepo()
# Create an (empty) character to start with.
crPerson = Character()
crPerson.createUsingTimeline(career=crCareer)
print(crPerson.strSmall())
print(crPerson.strHistory())
#cr.printTest()