-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchar_maker.py
More file actions
1332 lines (1210 loc) · 57.7 KB
/
char_maker.py
File metadata and controls
1332 lines (1210 loc) · 57.7 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import time
from tqdm import tqdm
import random, json, pprint, itertools
from math import floor
class Character(object):
def __init__(self):
self.name = 'Name'
self.title = False
self.age = 'Age'
self.stats = 'Stats'
self.money = 'Money'
self.social = 'Social'
self.profession = 'Profession'
self.skills = 'Skills'
self.items = 'Items'
self.urban = 'Urban Skill'
self.gravity = 'Gravity Skills'
def __repr__(self):
return json.dumps(self.__dict__, indent=2)
def create_name(self):
self.name=raw_input("Enter your character's full name: ")
def determine_multipliers(self):
m=[0, 0, 0, 0]
for num in range(0,4):
d10 = random.randint(1,10)
if d10 == 1:
m[num] = 0.5
elif d10 == 2 or d10 == 3:
m[num] = 1
elif 4 <= d10 <= 6:
m[num] = 2
elif 7 <= d10 <= 9:
m[num] = 3
else:
m[num] = 4
mult_tot = sum(m)
if mult_tot <= 4:
study_points = 6
elif 4.5 <= mult_tot <= 6.5:
study_points = 5
elif 7 <= mult_tot <= 9.5:
study_points = 4
elif 10 <= mult_tot <= 11.5:
study_points = 3
else:
study_points = 2
mults = {'phys_mult':m[0], 'coord_mult':m[1], 'int_mult':m[2], 'social_mult':m[3]}
print ""
print "Determining potential multipliers:"
status_bar()
print ""
print "Your potential multipliers are (0.5 - 4): "
print "Physical Multiplier: ", + mults['phys_mult']
print "Coordination Multiplier: ", + mults['coord_mult']
print "Intelligence Multiplier: ", + mults['int_mult']
print "Social Multiplier: ", + mults['social_mult']
print ""
return (mults, study_points)
def create_grav_skills(self, home_environ, environ_skill, urban_skill):
if home_environ.gravity == 'NW':
grav_skills = [1,-1,-3,-5]
elif home_environ.gravity == 'LT':
grav_skills = [-1,1,-1,-3]
elif home_environ.gravity == 'HY':
grav_skills = [-3,-1,1,-1]
elif home_environ.gravity == 'EX':
grav_skills = [-5,-3,-1,1]
else:
print "Unrecognized gravity type in create_grav_skills()"
print "Determining gravity tolerances:"
status_bar()
print ""
print "Your current gravity tolerances are: "
print "Nearly Weightless (NW, 0.0 - 0.4 G): " + str(grav_skills[0])
print "Light Gravity (LT, 0.7 - 1.0 G): " + str(grav_skills[1])
print "Heavy Gravity (HY, 1.3 - 1.7 G): " + str(grav_skills[2])
print "Extreme Gravity (EX, 2.0 - 2.5 G): " + str(grav_skills[3])
print ""
print "You may expend environ skill points (current: " + str(environ_skill) + ") to upgrade all gravity tolerences."
print "Would you like to do this? (Y/N)"
response = y_n_response()
if response == 'Y':
print "Enter a number of environ skill points to spend (0-" + str(environ_skill-1) +"): "
modifier = int(raw_input())
if modifier < 0:
print "Cannot spend fewer than 0 points. Adjusting to spend 0..."
modifier = 0
elif modifier > environ_skill-1:
print "Cannot reduce environ skill below 1. Adjusting to spend maximum allowed value..."
modifier = environ_skill-1
else:
modifier = modifier
print ""
print "New gravity tolerances will be: "
print "Nearly Weightless (NW, 0.0 - 0.4 G): " + str(grav_skills[0]+modifier)
print "Light Gravity (LT, 0.7 - 1.0 G): " + str(grav_skills[1]+modifier)
print "Heavy Gravity (HY, 1.3 - 1.7 G): " + str(grav_skills[2]+modifier)
print "Extreme Gravity (EX, 2.0 - 2.5 G): " + str(grav_skills[3]+modifier)
print "Proceed? (Y/N)"
response = y_n_response()
if response == 'Y':
for i in range(0,4):
grav_skills[i] = grav_skills[i] + modifier
environ_skill = environ_skill - modifier
else:
print "Keeping old tolerance values..."
print ""
else:
print "Keeping old tolerance values..."
print ""
modifier = 0
self.gravity = {'NW':grav_skills[0], 'LT':grav_skills[1], 'HY':grav_skills[2], 'EX':grav_skills[3]}
return(modifier)
def create_social_standing(self, mults, environ_skill, urban_skill):
d10 = random.randint(1,10)
row = int(d10 + 2*mults['social_mult'] + urban_skill - environ_skill + 1)
if row < 0:
row = 0
file = open('social_standings.txt')
i=0
for line in file:
self.social, self.money, init_skill_mod = line.strip().split('\t')
i+=1
if i > row:
break
value, unit = self.money.split(' ')
value = int(value)*random.randint(1,10)
if unit == 'Mils' or unit == 'Mil':
# Fix conversion from Mils to Trans
# if value >= 1000:
# value = round(float(value)/1000.0,1)
# self.money = str(value)+' Trans'
# else:
self.money = str(value) + ' Mils'
else:
self.money = str(value) + ' Trans'
print "Establishing social standing:"
status_bar()
print "Your social standing is: " + self.social
print "Initial Wealth: " + self.money
print ""
return(init_skill_mod)
def create_skill_points(self, init_skill_mod):
check = random.randint(1,10) + int(init_skill_mod)
if check <= 0:
num_skill_points = 1
elif 1 <= check <= 3:
num_skill_points = 2
elif 4 <= check <= 6:
num_skill_points = 3
elif 7 <= check <= 9:
num_skill_points = 4
else:
num_skill_points = 5
print "Generating skill points:"
status_bar()
return(num_skill_points)
def choose_fields_of_study(self, study_points):
study_dict = {'1':'Theoretical Science', '2':'Applied Science', '3':'Business', '4':'Humanities', '5':'The Mind', '6':'The Body', '7':'Military'}
i = 0
print ""
print "You have " + str(study_points) + " study points to allocate to fields of study. Most fields require 1 study point; The Mind requires 2."
print "You may study a particular field twice by spending 2 study points instead of 1. The Mind requires 4 study points to be studied twice."
print "The available fields of study are listed below. Make your selection(s) by entering the number(s) associated with the appropriate field(s)."
print ""
for number, field in sorted(study_dict.iteritems()):
print number, field
print ""
print "Your selections (one entry at a time):"
study_choices = []
while study_points > 0:
choice = raw_input()
if choice in study_dict.keys():
if study_choices.count(study_dict[choice]) < 2:
study_choices.append(study_dict[choice])
if study_dict[choice] != 'The Mind':
study_points += -1
else:
study_points += -2
if study_points < 0:
print "You do not have enough points remaining to study 'The Mind', please try again:"
study_choices.remove('The Mind')
study_points += 2
else:
print "You have studied that field twice already, please try again:"
else:
print "Invalid selection, please try again:"
print ""
print "Your chosen fields of study are: "
for field in set(study_choices):
if study_choices.count(field) < 2:
print field
else:
print field, "(x"+str(study_choices.count(field))+")"
print ""
return(study_choices)
def choose_initial_skills(self, study_choices, num_skill_points, urban_skill):
print "Creating skill options from chosen fields of study: "
status_bar()
study_choices.append('General')
skill_dict = {'Theoretical Science':['Chemistry', 'Physics', 'Programming', 'Biology', 'Geology', 'Astronomy'],
'Applied Science':['Suit Tech', 'Electro Tech', 'Construction', 'Vehicle Tech', 'Programming'],
'Business':['Programming', 'Recruiting', 'Law', 'Economics', 'Trading'],
'Humanities':['Linguistics', 'Diplomacy', 'Law', 'Teaching'],
'The Mind':['Psionic Boost', 'Psionic Communication', 'Life Sense'],
'The Body':['Unarmed Combat', 'Ambush', 'EVA', 'Home Gravity', 'Jetpacks', 'Survival'],
'Military':['Battlefield', 'Longarms', 'Handguns', 'Demolitions', 'Grenades'],
'General':['Streetwise', 'Stun Gun', 'Gambling', 'Blades', 'Ground Vehicles', 'Urban', 'Home Environ']}
print ""
print "You have " + str(num_skill_points) + " skill points to assign to skills appropriate to your chosen fields of study. Each skill costs 1 point and may only be chosen once."
print "The skills available to you are listed below. Make your selection(s) by entering the number(s) associated with the appropriate field(s)."
print ""
skill_subset = []
for field in set(study_choices):
if field in skill_dict.keys():
for skill in skill_dict[field]:
skill_subset.append(skill)
if urban_skill < 1:
skill_subset.remove('Urban')
i = 1
skill_subset_dict = {}
for skill in set(skill_subset):
skill_subset_dict[i] = skill
i += 1
for number, field in sorted(skill_subset_dict.iteritems()):
print number, '\t', field
print ""
print "Your selections (one entry at a time):"
skill_choices = []
while num_skill_points > 0:
choice = raw_input()
if choice.isdigit():
choice = int(choice)
if choice in skill_subset_dict.keys():
if skill_choices.count(skill_subset_dict[choice]) < 1:
skill_choices.append(skill_subset_dict[choice])
num_skill_points += -1
else:
print "You have chosen that skill already, please try again:"
else:
print "Invalid selection, please try again:"
else:
print "Invalid selection, please try again:"
return (skill_choices)
def create_stats(self, study_chocies, mults):
strength, endurance, dexterity, agility, intelligence = 0, 0, 0, 0, 0
mental_power, leadership, empathy, aggression = 0, 0, 0, 0
file = open('char_mod_chart.txt')
for line in file:
stat_mods = line.strip().split('\t')
for field in set(study_choices):
if stat_mods[0] == field:
mult1 = study_choices.count(field)
strength += mult1*int(stat_mods[1])
endurance += mult1*int(stat_mods[2])
dexterity += mult1*int(stat_mods[3])
agility += mult1*int(stat_mods[4])
intelligence += mult1*int(stat_mods[5])
mental_power += mult1*int(stat_mods[6])
leadership += mult1*int(stat_mods[7])
empathy += mult1*int(stat_mods[8])
aggression += mult1*int(stat_mods[9])
strength = int(strength*mults['phys_mult']*mults['coord_mult']+random.randint(1,100))
endurance = int(endurance*mults['phys_mult']+random.randint(1,100))
dexterity = int(dexterity*mults['coord_mult']*mults['int_mult']+random.randint(1,100))
agility = int(agility*mults['phys_mult']*mults['coord_mult']+random.randint(1,100))
intelligence = int(intelligence*mults['int_mult']+random.randint(1,100))
mental_power = int(mental_power*mults['int_mult']+random.randint(1,100))
leadership = int(leadership*mults['int_mult']*mults['social_mult']+random.randint(1,100))
empathy = int(empathy*mults['int_mult']+random.randint(1,100))
aggression = int(aggression+random.randint(1,100))
stats_dict = {'Strength':strength,
'Endurance':endurance,
'Dexterity':dexterity,
'Agility':agility,
'Intelligence':intelligence,
'Mental Power':mental_power,
'Leadership':leadership,
'Empathy':empathy,
'Aggression':aggression}
cgen_list = [(-1000,7,1),(8,15,2),(16,24,3),(25,34,4),(35,57,5),(58,83,6),(84,96,7),(97,108,8),(109,119,9),(120,129,10),(130,139,11),(140,1000,12)]
for stat in stats_dict.keys():
for stat_range in cgen_list:
if stat_range[0] <= stats_dict[stat] <= stat_range[1]:
stats_dict[stat] = stat_range[2]
if stats_dict['Agility'] < 5:
stats_dict['Agility'] = 5
stats_dict['Mental Power'] = int(stats_dict['Mental Power']/2.0)
self.stats = stats_dict
print "Calculating characteristic ratings based on chosen fields of study: "
status_bar()
print ""
print "Your characteristic ratings are: "
print stats_dict
def create_profession_options(self, study_choices, home_environ, urban_skill):
value, unit = self.money.split(' ')
profession_options = {}
astroguard = True
if 'Military' not in study_choices:
astroguard = False
if int(character.stats['Aggression']) < 5:
astroguard = False
if astroguard:
profession_options['Astroguard'] = {'Name':'Astroguard',
'Personnel Type':'Military',
'Description':'',
'Prerequisites':'Study of the military; Aggression Rating of at least 5.',
'Skill Point Mod':1,
'Extra Skill Options':['Gunnery','Missile Guidance', 'Space Tactics', 'Pilot', 'Air Vehicles', 'EVA', 'Spaceship Tech'],
'Benefits':{'A':['Corporal, 300 Mils Cash'],
'B':['Flight Sergeant', '1 Tran Cash'],
'C':['Flight Lieutenant', '3 Trans Cash', 'Internal Gravity Web'],
'D':['Squadron Leader', '10 Trans Cash', '250 Mils/Year Pension', 'Internal Gravity Web'],
'E':['Wing Commander', '25 Trans Cash', '750 Mils/Year Pension', 'Internal Gravity Web'],
'F':['Group Captain', '60 Trans Cash', '2.5 Trans/Year Pension', 'Internal Gravity Web']}}
civil_inspector = True
if 'Humanities' not in study_choices or 'Business' not in study_choices:
civil_inspector = False
if int(character.stats['Intelligence']) < 6:
civil_inspector = False
if int(character.stats['Leadership']) < 4:
civil_inspector = False
if int(character.stats['Empathy']) < 6:
civil_inspector = False
if int(character.stats['Mental Power']) < 2:
civil_inspector = False
if civil_inspector:
profession_options['Civil Inspector'] = {'Name':'Civil Inspector',
'Personnel Type':'Government',
'Description':'',
'Prerequisites':'Study of the humanities and business; Characteristic Ratings of at least Intelligence 6, Leadership 4, Empathy 6, and Mental Power 2.',
'Skill Point Mod':4,
'Extra Skill Options':['Handguns','Unarmed Combat', 'Agriculture', 'Biology', 'Planetology', 'Urban'],
'Benefits':{'A':['250 Mils Cash'],
'B':['1 Tran Cash', 'Translator'],
'C':['2 Trans Cash', 'Translator or Interstellar Comlink'],
'D':['7 Trans Cash', 'Translator and Interstellar Comlink'],
'E':['20 Trans Cash', 'Frazette Blue Robot w/ Information & Recorder Systems'],
'F':['40 Trans Cash', '36sd Robot w/ Information, Weapon Targeting, Laser Pistol, & Recorder Systems']}}
colonist = True
if colonist:
profession_options['Colonist'] = {'Name':'Colonist',
'Personnel Type':'Civilian',
'Description':'',
'Prerequisites':'None',
'Skill Point Mod':0,
'Extra Skill Options':['Trading','Air Vehicles', 'Marine Vehicles', 'Agriculture', 'Mining'],
'Benefits':{'A':['Nothing'],
'B':['1 Tran Cash'],
'C':['2 Trans Cash', 'Civ Level 6 Laser Pistol'],
'D':['4 Trans Cash', 'Civ Level 6 Laser Pistol'],
'E':['8 Trans Cash', 'Car'],
'F':['15 Trans Cash', 'Civ Level 5 Automobile', 'Civ Level 6 Laser Pistol']}}
diplomat = True
if 'Humanities' not in study_choices or 'The Mind' not in study_choices:
civil_inspector = False
if int(character.stats['Intelligence']) < 7:
civil_inspector = False
if int(character.stats['Empathy']) < 7:
civil_inspector = False
if int(character.stats['Mental Power']) < 2:
civil_inspector = False
if self.money != '1 Tran' and unit != 'Trans':
civil_inspector = False
if civil_inspector:
profession_options['Diplomat'] = {'Name':'Diplomat',
'Personnel Type':'Government',
'Description':'',
'Prerequisites':'Study of the humanities and the mind, Characteristic Ratings of at least Intelligence 7, Empathy 7, Mental Power 2. Aggression Rating may not exceed 6. Initial wealth must be at least 1 Tran.',
'Skill Point Mod':8,
'Extra Skill Options':['Recruitment','Programming', 'Computer/Robot Tech', 'Urban'],
'Benefits':{'A':['300 Mils Cash'],
'B':['1 Tran Cash', 'Audio-Sealed Case'],
'C':['3 Trans Cash', 'Audio-Sealed Case', 'Translator'],
'D':['10 Trans Cash', 'Audio-Sealed Case', 'Translator', 'Interstellar Comlink'],
'E':['25 Trans Cash', 'Manner 38sdf Robot w/ Holographer & Language Systems'],
'F':['60 Trans Cash', 'Soidistant V-201 w/ Creative Thought & Holographer Systems']}}
doctor = True
if 'Theoretical Science' not in study_choices or 'Applied Science' not in study_choices:
doctor = False
if int(character.stats['Dexterity']) < 7:
doctor = False
if int(character.stats['Intelligence']) < 8:
doctor = False
if int(character.stats['Mental Power']) < 2:
doctor = False
if int(character.stats['Empathy']) < 6:
doctor = False
if doctor:
profession_options['Doctor'] = {'Name':'Doctor',
'Personnel Type':'Civilian',
'Description':'',
'Prerequisites':'Study of theoretical and applied science, Characteristic Ratings of at least Dexterity 7, Intelligence 8, Mental Power 2, and Empathy 6.',
'Skill Point Mod':10,
'Extra Skill Options':['Teaching','Diagnosis', 'Treatment'],
'Benefits':{'A':['First Aid Kit'],
'B':['3 Trans Cash', 'First Aid Kit'],
'C':['1 Tran x Int. Rating Cash', 'Civ Level 6 Mediscanner'],
'D':['4 Trans x Int. Rating Cash', 'Civ Level 6 Mediscanner'],
'E':['10 Trans x Int. Rating Cash', 'Civ Level 8 Mediscanner'],
'F':['20 Trans x Int. Rating Cash', 'Manner 38sdf Robot w/ Medical System']}}
enforcer = True
if 'The Mind' not in study_choices or 'The Body' not in study_choices:
enforcer = False
if int(character.stats['Strength']) < 4:
enforcer = False
if int(character.stats['Endurance']) < 4:
enforcer = False
if int(character.stats['Dexterity']) < 4:
enforcer = False
if int(character.stats['Agility']) < 4:
enforcer = False
if int(character.stats['Intelligence']) < 5:
enforcer = False
if int(character.stats['Leadership']) < 5:
enforcer = False
if enforcer:
profession_options['Enforcer'] = {'Name':'Enforcer',
'Personnel Type':'Civilian',
'Description':'',
'Prerequisites':'Study of the mind and the body, all Physical Characteristic Ratings must be at least 4, Intelligence 5, and Leadership 5.',
'Skill Point Mod':6,
'Extra Skill Options':['Battlefield','Demolitions', 'Machine Guns', 'Longarms', 'Handguns', 'Paint Gun', 'Recruiting', 'Law', 'Military Ground Vehicles'],
'Benefits':{'A':['500 Mils Cash'],
'B':['1.5 Trans Cash'],
'C':['3 Trans Cash', 'Civ Level 5 Pistol'],
'D':['10 Trans Cash', 'Civ Level 8 Laser Pistol'],
'E':['25 Trans Cash', 'Civ Level 8 Paint Gun'],
'F':['60 Trans Cash', 'Civ Level 8 Paint Gun', 'Civ Level 5 Submachine Gun']}}
explorer = True
if 'Business' not in study_choices:
explorer = False
if 'Theoretical Science' not in study_choices and 'Applied Science' not in study_choices:
explorer = False
if int(character.stats['Intelligence']) < 7:
explorer = False
if int(character.stats['Mental Power']) < 3:
explorer = False
if int(character.stats['Empathy']) < 4:
explorer = False
if int(value) < 500 and unit == 'Mils':
explorer = False
if unit == 'Mil':
explorer = False
if int(character.stats['Mental Power']) > 4:
explorer = True
if explorer:
profession_options['Explorer'] = {'Name':'Explorer',
'Personnel Type':'Civilian',
'Description':'',
'Prerequisites':'Study of business and either theoretical or applied science, Characteristic Ratings of at least Intelligence 7, Mental Power 3, and Empathy 4. Initial wealth must be at least 500 Mils.',
'Skill Point Mod':7,
'Extra Skill Options':['Handguns','Paint Gun', 'Gunnery', 'Pilot', 'Linguistics', 'Survival', 'Air Vehicles', 'Marine Vehicles', 'Planetology', 'Biology', 'Geology', 'Astronomy', 'Navigation', 'Environ (Any)', 'Gravity (Any)'],
'Benefits':{'A':['Nothing'],
'B':['Initial Wealth x 3'],
'C':['Initial Wealth x 5', 'Civ Level 8 Bioscanner'],
'D':['Initial Wealth x 10', 'Civ Level 8 Geoscanner'],
'E':['Initial Wealth x 25', 'Neuroscanner'],
'F':['Initial Wealth x 50', 'Manner 50sd Robot w/ Bio, Self-Activation, & Holographer Systems']}}
freefaller = True
check = 0
if 'Applied Science' in study_choices:
check += 1
if 'The Body' in study_choices:
check += 1
if 'Military' in study_choices:
check += 1
if check < 2:
freefaller = False
if int(character.stats['Dexterity']) < 6:
freefaller = False
if int(character.stats['Agility']) < 7:
freefaller = False
if int(character.stats['Aggression']) < 4:
freefaller = False
if home_environ.gravity == 'HY' or home_environ.gravity == 'EX':
freefaller = False
if freefaller:
profession_options['Freefaller'] = {'Name':'Freefaller',
'Personnel Type':'Military',
'Description':'',
'Prerequisites':'Study of two of the following: applied science, the body, the military. Characteristic Ratings of at least Dexterity 6, Agility 7, and Aggression 4. Home gravity type may not be HY or EX.',
'Skill Point Mod':3,
'Extra Skill Options':['Battlefield','Body Armor', 'Machine Guns', 'Arc Guns', 'Longarms', 'Handguns', 'Jetpacks', 'Demolitions', 'EVA', 'Suit Tech', 'Weapon Tech', 'Gravity (NW)'],
'Benefits':{'A':['Lancer', '300 Mils Cash'],
'B':['Corporal', '1 Tran Cash', 'Civ Level 6 Expedition Suit'],
'C':['Sergeant', '3 Tran Cash', 'Civ Level 7 Expedition Suit'],
'D':['Lieutenant', '10 Trans Cash', '250 Mils/Year Pension', 'Civ Level 7 Expedition Suit'],
'E':['Captain', '25 Trans Cash', '750 Mils/Year Pension', 'Civ Level 7 Expedition Suit', 'Arc Gun'],
'F':['Colonel', '60 Trans Cash', '2.5 Trans/Year Pension', 'Civ Level 7 Expedition Suit', 'Arc Gun', 'Jetpack']}}
handyman = True
if study_choices.count('Applied Science') < 2:
handyman = False
if int(character.stats['Dexterity']) < 6:
handyman = False
if int(character.stats['Intelligence']) < 6:
handyman = False
if handyman:
profession_options['Handyman'] = {'Name':'Handyman',
'Personnel Type':'Civilian, Military, Government',
'Description':'',
'Prerequisites':'Study of applied science twice. Characteristic Ratings of at least Dexterity 6 and Intelligence 6.',
'Skill Point Mod':5,
'Extra Skill Options':['Agriculture','Programming', 'Physics', 'Energy Tech', 'Spaceship Tech', 'Weapon Tech', 'Computer/Robot Tech'],
'Benefits':{'A':['Basic Repair Kit'],
'B':['1 Tran Cash', 'Basic Repair Kit'],
'C':['3 Tran Cash', 'Civ Level 7 Electrokit'],
'D':['10 Trans Cash', 'Civ Level 8 Electrokit'],
'E':['20 Trans Cash', 'Civ Level 8 Vehicle Kit'],
'F':['40 Trans Cash', 'Civ Level 8 Vehicle Kit', 'Civ Level 8 Robot Kit']}}
interstellar_trader = True
if 'Business' not in study_choices:
interstellar_trader = False
if int(character.stats['Intelligence']) < 6:
interstellar_trader = False
if int(character.stats['Mental Power']) < 2:
interstellar_trader = False
if self.money != '1 Tran' and unit != 'Trans':
interstellar_trader = False
if interstellar_trader:
profession_options['Interstellar Trader'] = {'Name':'Interstellar Trader',
'Personnel Type':'Civilian',
'Description':'',
'Prerequisites':'Study of business. Characteristic Ratings of at least Intelligence 6 and Mental Power 2. Initial wealth must be at least 1 Tran.',
'Skill Point Mod':4,
'Extra Skill Options':['Longarms','Handguns', 'Arc Gun', 'Gunnery', 'Missile Guidance', 'Space Tactics', 'Pilot','Linguistics', 'Diplomacy', 'Asteroid Mining', 'Astronomy', 'EVA'],
'Benefits':{'A':['Nothing, and all Initial Wealth lost'],
'B':['Civ Level 7 Business Computer'],
'C':['Initial Wealth x 2', 'Civ Level 7 Business Computer'],
'D':['Initial Wealth x 5', 'Civ Level 7 Business Computer'],
'E':['Initial Wealth x 12', 'Civ Level 7 Business Computer'],
'F':['Initial Wealth x 30', 'Brummagen II Robot w/ Spaceship Tech System', 'Civ Level 7 Business Computer']}}
lawman = True
if 'The Body' not in study_choices or 'Humanities' not in study_choices:
lawman = False
if int(character.stats['Strength']) < 4:
lawman = False
if int(character.stats['Endurance']) < 4:
lawman = False
if int(character.stats['Dexterity']) < 4:
lawman = False
if int(character.stats['Agility']) < 4:
lawman = False
if lawman:
profession_options['Lawman'] = {'Name':'Lawman',
'Personnel Type':'Government',
'Description':'',
'Prerequisites':'Study of the body and the humanities. All physical Characteristic Ratings must be at least 4.',
'Skill Point Mod':3,
'Extra Skill Options':['Machine Guns', 'Longarms', 'Handguns', 'Paint Gun', 'Air Vehicles', 'Marine Vehicles', 'Urban', 'Environ (Any)','Gravity (Any)'],
'Benefits':{'A':['Patrolman', '250 Mils Cash'],
'B':['Constable', '700 Mils Cash', 'Civ Level 6 Laser Pistol'],
'C':['Sergeant', '2 Trans Cash', 'Civ Level 8 Laser Pistol'],
'D':['Marshal', '7 Trans Cash', 'Civ Level 6 Paint Gun', 'Used ATV'],
'E':['Inspector', '20 Trans Cash', '500 Mils/Year Pension', 'Civ Level 8 Paint Gun'],
'F':['Chief', '40 Trans Cash', '2 Trans/Year Pension', 'Civ Level 8 Paint Gun', 'Hand Gun (Any)']}}
merchant = True
if study_choices.count('Business') < 2:
if 'Business' not in study_choices and 'Applied Science' not in study_choices:
merchant = False
if int(character.stats['Intelligence']) < 5:
merchant = False
if int(character.stats['Empathy']) < 7:
merchant = False
if self.money != '1 Tran' and unit != 'Trans':
merchant = False
if merchant:
profession_options['Merchant'] = {'Name':'Merchant',
'Personnel Type':'Civilian',
'Description':'',
'Prerequisites':'Study of business twice or study of business and applied science. Characteristic Ratings of at least Intelligence 5 and Empathy 7. Initial wealth must be at least 1 Tran.',
'Skill Point Mod':5,
'Extra Skill Options':['Diplomacy', 'Air Vehicles', 'Marine Vehicles', 'Agriculture', 'Electro Tech', 'Computer/Robot Tech', 'Vehicle Tech', 'Urban', 'Environ (Any)'],
'Benefits':{'A':['Nothing, and all Initial Wealth lost'],
'B':['Civ Level 7 Business Computer'],
'C':['Initial Wealth x 3', 'Civ Level 7 Business Computer'],
'D':['Initial Wealth x 10', 'Civ Level 7 Business Computer'],
'E':['Initial Wealth x 20', 'Civ Level 5 Truck'],
'F':['Initial Wealth x 40', 'Civ Level 7 Jet']}}
ranger = True
if 'Military' not in study_choices or 'The Body' not in study_choices:
ranger = False
if int(character.stats['Strength']) < 4:
ranger = False
if int(character.stats['Endurance']) < 4:
ranger = False
if int(character.stats['Dexterity']) < 4:
ranger = False
if int(character.stats['Agility']) < 4:
ranger = False
if ranger:
profession_options['Ranger'] = {'Name':'Ranger',
'Personnel Type':'Military',
'Description':'',
'Prerequisites':'Study of the military and the body. All physical Characteristic Ratings must be at least 4.',
'Skill Point Mod':2,
'Extra Skill Options':['Artillery', 'Machine Guns', 'Paint Gun', 'Bows', 'Military Ground Vehicles', 'Air Vehicles', 'Marine Vehicles', 'Weapon Tech', 'Vehicle Tech', 'Treatment', 'Environ (Any)'],
'Benefits':{'A':['Ranger', '300 Mils Cash', 'Respirator'],
'B':['Corporal', '1 Tran Cash', 'Civ Level 6 Respirator Helmet'],
'C':['Sergeant', '3 Trans Cash', 'Civ Level 8 Respirator Helmet'],
'D':['Lieutenant', '10 Trans Cash', '250 Mils/Year Pension', 'Civ Level 8 Respirator Helmet', 'Civ Level 6 Laser Pistol'],
'E':['Captain', '25 Trans Cash', '750 Mils/Year Pension', 'Civ Level 8 Respirator Helmet', 'Civ Level 8 Laser Pistol'],
'F':['Colonel', '60 Trans Cash', '2.5 Trans/Year Pension', 'Civ Level 8 Respirator Helmet', 'Civ Level 8 Paint Gun']}}
reporter = True
if 'Humanities' not in study_choices:
reporter = False
if 'Business' not in study_choices and 'Theoretical Science' not in study_choices:
reporter = False
if int(character.stats['Intelligence']) < 7:
reporter = False
if int(character.stats['Mental Power']) < 2:
reporter = False
if int(character.stats['Aggression']) < 5:
reporter = False
if reporter:
profession_options['Reporter'] = {'Name':'Reporter',
'Personnel Type':'Civilian',
'Description':'',
'Prerequisites':'Study of the humanities and either business or theoretical science. Characteristic Ratings of at least Intelligence 7, Mental Power 2, and Aggression 5.',
'Skill Point Mod':7,
'Extra Skill Options':['Unarmed Combat', 'Survival', 'Disguise', 'Forgery/Counterfeiting', 'Urban', 'Air Vehicles', 'Programming', 'Electro Tech', 'Recruiting'],
'Benefits':{'A':['Audio Recorder'],
'B':['2 Trans Cash', 'Photographic Equipment', 'Audio Recorder'],
'C':['500 Mils x Int. Rating Cash', 'Planetary News Credentials', 'Superoid Camera', 'Audio Recorder'],
'D':['3 Trans x Int. Rating Cash', 'Star System News Credentials', 'Basic Holographer', 'Audio Recorder'],
'E':['10 Trans x Int. Rating Cash', 'Federation-Wide News Credentials', 'Shoulder Holographer', 'Audio Recorder'],
'F':['25 Trans x Int. Rating Cash', 'Federation Media Celebrity', 'Manner 38sdf Robot w/ Information & Holographer Systems', 'Audio Recorder']}}
scientist = True
check = 0
if 'Theoretical Science' in study_choices:
check += 1
if 'Applied Science' in study_choices:
check += 1
if 'Humanities' in study_choices:
check += 1
if check < 2:
scientist = False
if int(character.stats['Intelligence']) < 8:
scientist = False
if scientist:
profession_options['Scientist'] = {'Name':'Scientist',
'Personnel Type':'Civilian, Government',
'Description':'',
'Prerequisites':'Study of two of the following: theoretical science, applied science, the humanities. Intelligence Rating of at least 8.',
'Skill Point Mod':9,
'Extra Skill Options':['Teaching', 'Agriculture', 'Chemistry', 'Planetology', 'Programming', 'Biology', 'Geology', 'Astronomy', 'Energy', 'Computer/Robot Tech'],
'Benefits':{'A':['1 Tran Cash'],
'B':['2 Trans Cash', 'Civ Level 5 Chemlab'],
'C':['500 Mils x Int. Rating Cash', 'Civ Level 6 Chemsynthesizer'],
'D':['2 Trans x Int. Rating Cash', 'Civ Level 7 Chemlab'],
'E':['6 Trans x Int. Rating Cash', 'Civ Level 8 Bioscanner', 'Civ Level 8 Geoscanner'],
'F':['15 Trans x Int. Rating Cash', 'Frazette Amber Robot w/ Geo, Chemical, Bio, & Information Systems']}}
scout = True
if 'Theoretical Science' not in study_choices or 'Applied Science' not in study_choices:
scout = False
if int(character.stats['Strength']) < 3:
scout = False
if int(character.stats['Endurance']) < 3:
scout = False
if int(character.stats['Dexterity']) < 3:
scout = False
if int(character.stats['Agility']) < 3:
scout = False
if int(character.stats['Mental Power']) < 2:
scout = False
if int(character.stats['Empathy']) < 6:
scout = False
if int(character.stats['Mental Power']) > 4:
scout = True
if scout:
profession_options['Scout'] = {'Name':'Scout',
'Personnel Type':'Military',
'Description':'',
'Prerequisites':'Study of theoretical or applied science. All physical Characteristic Ratings must be at least 3, Mental Power 2, Empathy 6.',
'Skill Point Mod':4,
'Extra Skill Options':['Longarms', 'Handguns', 'Pilot', 'EVA', 'Survival', 'Air Vehicles', 'Marine Vehicles', 'Jetpacks', 'Planetology', 'Treatment', 'Biology', 'Geology', 'Astronomy', 'Suit Tech', 'Environ (Any)', 'Gravity (Any)'],
'Benefits':{'A':['Scout Second Class', '300 Mils Cash'],
'B':['Scout First Class', '1 Trans Cash', 'Civ Level 6 Expedition Suit'],
'C':['Master Scout', '3 Trans Cash', 'Civ Level 7 Expedition Suit'],
'D':['Single Scout', '5 Trans Cash', 'Civ Level 7 Expedition Suit', 'Neuroscanner', 'Rover'],
'E':['Expedition Leader', '25 Trans Cash', '750 Mils/Year Pension', 'Civ Level 7 Expedition Suit', 'Crawler'],
'F':['Scout Commodore', '60 Trans Cash', '2.5 Trans/Year Pension', 'Civ Level 7 Expedition Suit', 'Used Explorer Pod']}}
space_pirate = True
if 'Humanities' in study_choices:
space_pirate = False
if int(character.stats['Strength']) < 5:
space_pirate = False
if int(character.stats['Endurance']) < 5:
space_pirate = False
if int(character.stats['Dexterity']) < 5:
space_pirate = False
if int(character.stats['Agility']) < 5:
space_pirate = False
if int(character.stats['Aggression']) < 7:
space_pirate = False
if int(character.stats['Mental Power']) < 2:
space_pirate = False
if int(value) > 4 and unit == 'Trans':
space_pirate = False
if int(character.stats['Mental Power']) > 4:
space_pirate = True
if space_pirate:
profession_options['Space Pirate'] = {'Name':'Space Pirate',
'Personnel Type':'Civilian',
'Description':'',
'Prerequisites':'All physical Characteristic Ratings must be at least 5, Aggression 7, Mental Power 2. Cannot have more than 4 Trans Initial Wealth or have studied the humanities.',
'Skill Point Mod':6,
'Extra Skill Options':['Body Armor', 'Handguns', 'Paint Gun', 'Arc Gun', 'Bows', 'Unarmed Combat', 'Gunnery', 'Missile Guidance', 'Space Tactics', 'Pilot', 'Linguistics', 'Disguise', 'Forgery/Counterfeiting', 'EVA', 'Air Vehicles', 'Asteroid Mining', 'Planetology', 'Astronomy', 'Spaceship Tech', 'Weapon Tech', 'Gravity (NW)'],
'Benefits':{'A':['Internal Gravity Web', 'All Initial Wealth lost'],
'B':['Initial Wealth x 2', 'Internal Gravity Web'],
'C':['Initial Wealth x 4', 'Wanted by Federation', 'Internal Gravity Web'],
'D':['Initial Wealth x 10', 'Internal Gravity Web'],
'E':['Initial Wealth x 10', 'Terwillicker 5000 Battlecraft', 'Wanted by Federation', 'Internal Gravity Web'],
'F':['Initial Wealth x 20', 'Piccolo Spaceship w/ Light Weapon Pod', 'Internal Gravity Web']}}
space_technician = True
if study_choices.count('Applied Science') < 2:
space_technician = False
if int(character.stats['Dexterity']) < 7:
space_technician = False
if int(character.stats['Intelligence']) < 7:
space_technician = False
if int(character.stats['Mental Power']) < 2:
space_technician = False
if space_technician:
profession_options['Space Technician'] = {'Name':'Space Technician',
'Personnel Type':'Civilian, Military, Government',
'Description':'',
'Prerequisites':'Study of applied science twice, Characteristic Ratings of at least Dexterity 7, Intelligence 7, Mental Power 2.',
'Skill Point Mod':8,
'Extra Skill Options':['Psion Tech', 'EVA', 'Programming', 'Astronomy', 'Physics', 'Energy Tech', 'Spaceship Tech', 'Computer/Robot Tech'],
'Benefits':{'A':['500 Mils Cash'],
'B':['2 Trans Cash'],
'C':['5 Trans Cash', 'Civ Level 7 Electrokit'],
'D':['15 Trans Cash', 'Civ Level 8 Electrokit'],
'E':['30 Trans Cash', 'Civ Level 7 Spaceship Kit'],
'F':['60 Trans Cash', 'Frazette Amber Robot w/ Spaceship Tech, Electro Tech, & Self-Activation Systems']}}
spacetrooper = True
if 'Military' not in study_choices or 'The Body' not in study_choices:
spacetrooper = False
if int(character.stats['Strength']) < 6:
spacetrooper = False
if int(character.stats['Endurance']) < 6:
spacetrooper = False
if int(character.stats['Dexterity']) < 6:
spacetrooper = False
if int(character.stats['Agility']) < 6:
spacetrooper = False
if int(character.stats['Aggression']) < 5:
spacetrooper = False
if home_environ.gravity == 'NW':
spacetrooper = False
if spacetrooper:
profession_options['Spacetrooper'] = {'Name':'Spacetrooper',
'Personnel Type':'Military',
'Description':'',
'Prerequisites':'Study of the military and the body, all physical Characteristic Ratings must be at least 6, Aggression 5, Home gravity cannot be NW.',
'Skill Point Mod':5,
'Extra Skill Options':['Body Armor', 'Artillery', 'Machine Guns', 'Paint Gun', 'Arc Gun', 'Military Ground Vehicles', 'Suit Tech', 'Environ (Any)', 'Gravity (Any except NW)'],
'Benefits':{'A':['Trooper', '300 Mils Cash', 'Civ Level 6 Armor Vest', 'Civ Level 6 Respirator Helmet'],
'B':['Corporal', '1 Tran Cash', 'Civ Level 6 Reflective Body Armor'],
'C':['Sergeant', '3 Trans Cash', 'Civ Level 7 Impact Body Armor'],
'D':['Lieutenant', '10 Trans Cash', '250 Mils/Year Pension', 'Civ Level 7 Reflect/Impact Body Armor'],
'E':['Captain', '25 Trans Cash', '1 Tran/Year Pension', 'Civ Level 8 Reflective Body Armor'],
'F':['Colonel', '60 Trans Cash', '3 Trans/Year Pension', 'Civ Level 8 Reflect/Impact Body Armor', 'Arc Gun']}}
spy = True
if 'The Mind' not in study_choices or 'The Body' not in study_choices:
spy = False
if int(character.stats['Dexterity']) < 7:
spy = False
if int(character.stats['Agility']) < 5:
spy = False
if int(character.stats['Intelligence']) < 6:
spy = False
if int(urban_skill) < 1:
spy = False
if spy:
profession_options['Spy'] = {'Name':'Spy',
'Personnel Type':'Government',
'Description':'',
'Prerequisites':'Study of the mind and the body, Characteristic Ratings of at least Dexterity 7, Agility 5, Intelligence 6, Urban Skill of at least 1.',
'Skill Point Mod':7,
'Extra Skill Options':['Demolitions', 'Longarms', 'Handguns', 'Paint Gun', 'Arc Gun', 'Bows', 'Linguistics', 'Disguise', 'Forgery/Counterfeiting', 'Weapon Tech', 'Urban'],
'Benefits':{'A':['False Identity Papers'],
'B':['Civ Level 6 Plastic Pistol', 'False Identity Papers'],
'C':['Any one Handgun or Laser Pistol', 'False Identity Papers'],
'D':['700 Mils Cash', 'Civ Level 8 Laser Pistol', 'Any second Handgun', 'False Identity Papers'],
'E':['4 Trans Cash', 'Civ Level 8 Paint Gun', 'Any second Handgun', 'False Identity Papers'],
'F':['20 Trans Cash', 'Arc Gun', 'Any second Handgun', 'False Identity Papers']}}
star_sailor = True
if 'Military' not in study_choices:
star_sailor = False
if 'Applied Science' not in study_choices and 'The Body' not in study_choices:
star_sailor = False
if int(character.stats['Agility']) < 5:
star_sailor = False
if int(character.stats['Intelligence']) < 7:
star_sailor = False
if int(character.stats['Mental Power']) < 2:
star_sailor = False
if home_environ.gravity == 'EX':
star_sailor = False
if int(character.stats['Mental Power']) > 4:
star_sailor = True
if star_sailor:
profession_options['Star Sailor'] = {'Name':'Star Sailor',
'Personnel Type':'Military',
'Description':'',
'Prerequisites':'Study of the military and either applied science or the body, Characteristic Ratings of at least Agility 5, Intelligence 7, Mental Power 2. Home gravity cannot be EX.',
'Skill Point Mod':6,
'Extra Skill Options':['Pilot', 'Astronomy', 'Energy Tech', 'Suit Tech', 'Spaceship Tech', 'Weapon Tech', 'Space Tactics', 'Gunnery', 'Missile Guidance', 'EVA', 'Gravity (NW)'],
'Benefits':{'A':['Midshipman', '500 Mils Cash', 'Internal Gravity Web'],
'B':['Ensign', '1.5 Mils Cash', 'Internal Gravity Web', '10 LY Free Passage'],
'C':['Lieutenant', '4 Trans Cash', '300 Mils/Year Pension', 'Internal Gravity Web', '20 LY Free Passage'],
'D':['Captain', '15 Trans Cash', '1 Tran/Year Pension', 'Internal Gravity Web', '50 LY Free Passage'],
'E':['Commander', '36 Trans Cash', '3 Trans/Year Pension', 'Internal Gravity Web', '100 LY Free Passage'],
'F':['Admiral', '80 Trans Cash', '10 Trans/Year Pension', 'Internal Gravity Web', 'Perpetual Free Passage']}}
thinker = True
if 'The Mind' not in study_choices:
thinker = False
if 'Applied Science' not in study_choices and 'Humanities' not in study_choices:
thinker = False
if int(character.stats['Intelligence']) < 7:
thinker = False
if int(character.stats['Mental Power']) < 5:
thinker = False
if thinker:
profession_options['Thinker'] = {'Name':'Thinker',
'Personnel Type':'Civilian, Government',
'Description':'',
'Prerequisites':'Study of the mind and either applied science or the humanities, Characteristic Ratings of at least Intelligence 7, Mental Power 5.',
'Skill Point Mod':10,
'Extra Skill Options':['Navigation', 'Mind Control', 'Psychokinesis', 'Psion Tech', 'Teaching'],
'Benefits':{'A':['None'],
'B':['Interstellar Comlink'],
'C':['1 Tran Cash', 'Interstellar Comlink'],
'D':['3 Trans Cash', 'Psionic Rig'],
'E':['10 Trans Cash', 'Psionic Rig'],
'F':['25 Trans Cash', 'Augmented Jump Pod']}}
zero_g_miner = True
if 'Applied Science' not in study_choices and 'Business' not in study_choices:
zero_g_miner = False
if int(character.stats['Dexterity']) < 5:
zero_g_miner = False
if int(character.stats['Agility']) < 3:
zero_g_miner = False
if int(value) < 500 and unit == 'Mils':
zero_g_miner = False
if unit == 'Mil':
zero_g_miner = False
if home_environ.gravity == 'EX':
zero_g_miner = False
if zero_g_miner:
profession_options['Zero-G Miner'] = {'Name':'Zero-G Miner',
'Personnel Type':'Civilian',
'Description':'',
'Prerequisites':'Study of applied science or business, Characteristic Ratings of at least Dexterity 5, Agility 3. Initial Wealth must be at least 500 Mils, Home Gravity may not be EX.',
'Skill Point Mod':4,
'Extra Skill Options':['Pilot', 'Economics', 'Trading', 'EVA', 'Mining', 'Asteroid Mining', 'Geology', 'Electro Tech', 'Gravity (NW)'],
'Benefits':{'A':['None'],
'B':['Initial Wealth x 2'],
'C':['Initial Wealth x 3', 'Rock Blaster'],
'D':['Initial Wealth x 5', 'Civ Level 8 Geoscanner'],
'E':['Initial Wealth x 10', 'Rock Blaster', 'Civ Level 8 Geoscanner'],
'F':['Initial Wealth x 20', 'Manner 44 Robot w/ Force Field, Geo, Pilot, and Chemical Systems']}}
print ""
print "Determining profession options: "
status_bar()
print ""
return(profession_options)
def choose_profession(self, profession_options):
print "You are eligible for the following professions: "
print ""
print "==============="
for profession in sorted(profession_options.keys()):
print profession
print "==============="
print ""
print "To see more information about a profession, enter its name: "
done = False
while not done:
choice = raw_input().title()
print ""
if choice not in profession_options.keys():
print "That is not an eligible profession, please try again: "
else:
pretty(profession_options[choice])
print ""
print "Would you like to choose " + choice + " as your profession? (Y/N)"
response = y_n_response()
if response == 'Y':
profession = profession_options[choice]
done = True
else:
print ""
print "To see more information about a profession, enter its name: "
self.profession = profession['Name']
return (profession)
def choose_years_experience(self, profession):
print ""
print "Your character has a base age of 20 years old; you may declare how long they have been employed (4, 8, 12, 16, 20 years)."
print "Longer employment gives a higher chance at additional benefits (as seen in the profession description), but can also reduce your characteristic ratings."
print "NOTE: The declared number of years employed may differ from the true number used; this difference reflects years of unemployment, and is determined randomly."
print "NOTE: Military professions cannot be unemployed, but the number of years served may differ from the declared number, determined randomly."
print "Enter number of years employed: "
year_check = True
year_opt = [4, 8, 12, 16, 20]
while year_check:
years = raw_input()
try:
years = int(years)
if years in year_opt:
year_check = False
else:
print "Invalid response, please try again: "
except:
print "Invalid response, please try again: "
d10 = random.randint(1,10)
file = open('years_employed.txt')
i=0
for line in file:
year_info = line.strip().split('\t')
i+=1