rcpd/tables.py

34 lines
1.6 KiB
Python
Raw Normal View History

#Data tables: Mostly used by the codegen itself
clas=[
[0,1,2,5], # Sniper: Crg, wire, run, tinker
[0,1,4,6], # Medic: Crg, wire, tough, hack
[0,1,2,6], # Tact: Crg, wire, run, hack
[0,1,3,6], # Psy: Crg, wire, spot, hack
[0,2,4,5], # HO: Crg, run, tough, tinker
[0,2,4,3], # Demo: Crg, run, tough, spot
[0,3,2,6], # Borg: Crg, spot, run, hack
[0,3,5,4], # Pyro: Crg, spot, tinker, tough
[0,4,5,3], # WM (LR, GL): Crg, tough, tinker, spot
[0,2,6,5], # Mav (AR, SR, CG, RL, F): Crg, run, hack, tinker
[0,1,5,6], # Tech: Crg, wire, tinker, hack
[0,1,3,4] # Alice: Crg, wire, spot, tough
]
weights=[1,50,15,5,2,2,4,8,3,18,9]
#Display tables: Mostly used by the rank code manager
classes=['Sniper','Medic','Tact','Psy','HO','Demo','Borg','Pyro','WM','Mav','Tech','Alice']
guns=['AR','SR','CG','RL','F','LR','GL','PF']
gunmaps=[1,0,0,0,2,3,2,4,5,6,0,1,2,3,4,1,7] # This is unwrapped mappings so every value matters
gunmaps_wrapped=[1,0,0,0,2,3,2,4,-1,-1,1,7] # Wrapped mappings return -1 for classes that have gun choices. Hopefully you'll never use it with them.
armour='LMHA'
trait=['SK', 'Gift', 'Surv', 'Goon', 'Acro', 'SL', 'Healer', 'FC', 'CR', 'RR', 'Gadg', 'Prowl', 'Gizer', 'PR', 'Engi', 'Reck']
spec=['Weap', 'PA', 'Cells', 'Cyber', 'Tri', 'Chem', 'Leader', 'Robo', 'Esp']
talent=['Crg','Wire','Run','Spot','Tough','Tinker','Hack']
#Convenience
displays=[classes,guns,armour,trait,spec,talent]
displays_str=['classes','guns','armour','traits','specs','talents']
displays_nogun=[classes,armour,trait,spec,talent]
displays_nogun_str=['classes','armour','traits','specs','talents']
rank=range(12)
xp=range(2500)
cap=[3, 6, 9, 10, 11]