Sixem

Imago Loop Roll Simulator

Apr 8th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.88 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. import random
  5.  
  6. primary_perk_list_1 = ['Partial Refund', 'Underdog', 'Rescue Mag', 'Danger Close', 'Surrounded', 'Exhumed',
  7.                   'Relentless Tracker', 'Outlaw', 'Spray and Play', 'Rangefinder', 'Triple Tap', 'Hot Swap', 'Last Resort']
  8.  
  9. primary_perk_list_2 = ['Army of One', 'Hidden Hand', 'Grenadier', 'Firefly', 'Luck in the Chamber', 'Icarus',
  10.                        'Mulligan', 'Life Support', 'Third Eye', 'Reactive Reload']
  11.  
  12. middle_perk_list_1 = ['Mutiny', 'Will of Light', 'Sword of Aegeus', 'Hannibal', 'Malleus Maleficarum',
  13.                       'Disciplinarian', 'Demotion']
  14.  
  15. middle_perk_list_2 = ['Extended Mag', 'Hand Loaded', 'Hammer Forged', 'Snapshot', 'Lightweight']
  16.  
  17. middle_perk_list_3 = ['Braced Frame', 'Smallbore', 'Explosive Rounds', 'Casket Mag', 'Reinforced Barrel',
  18.                       'Injection Mold', 'High Caliber Rounds', 'Feather Mag', 'Rifled Barrel', 'Oiled Frame']
  19.  
  20. def main():
  21.     primary_perk_1 = get_roll(primary_perk_list_1, colors.OKGREEN)
  22.     primary_perk_2 = get_roll(primary_perk_list_2, colors.OKGREEN)
  23.    
  24.     middle_perk_1 = get_roll(middle_perk_list_1, colors.HEADER)
  25.     middle_perk_2 = get_roll(middle_perk_list_2, colors.HEADER)
  26.     middle_perk_3 = get_roll(middle_perk_list_3, colors.HEADER)
  27.    
  28.     print('You rolled a Imago Loop with ..')
  29.    
  30.     print(primary_perk_1)
  31.    
  32.     print('{}, {} or {}'.format(middle_perk_1, middle_perk_2, middle_perk_3))
  33.    
  34.     print(primary_perk_2)
  35.    
  36. def get_roll(perk_list, color):
  37.     ran = random.randint(0, len(perk_list) - 1)
  38.     return color + perk_list[ran] + colors.ENDC
  39.  
  40. class colors:
  41.     HEADER = '\033[95m'
  42.     OKBLUE = '\033[94m'
  43.     OKGREEN = '\033[92m'
  44.     WARNING = '\033[93m'
  45.     FAIL = '\033[91m'
  46.     ENDC = '\033[0m'
  47.     BOLD = '\033[1m'
  48.     UNDERLINE = '\033[4m'
  49.    
  50. if __name__ == '__main__':
  51.     main()
Advertisement
Add Comment
Please, Sign In to add comment