Advertisement
1400_SpaceCat

mdl_sdp.py

Nov 21st, 2015
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. from sys import argv
  2.  
  3. class Items:
  4.     itemsList = [
  5.         ("Super cursed dark sword",100),
  6.         ("Darkest helmet",100),
  7.     ]
  8.  
  9. class spd(Items):
  10.     def __init__(_pass_):
  11.         if ( argv[1] == "--get-item" ):
  12.             if ( argv[2].isdigit() ):
  13.                 print("You got a "+str(Items.itemsList[int(argv[2])][0] ) )
  14.             else:
  15.                 print("\n**Current argument must be an integer\n")
  16.                
  17. spd()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement