Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sys import argv
- class Items:
- itemsList = [
- ("Super cursed dark sword",100),
- ("Darkest helmet",100),
- ]
- class spd(Items):
- def __init__(_pass_):
- if ( argv[1] == "--get-item" ):
- if ( argv[2].isdigit() ):
- print("You got a "+str(Items.itemsList[int(argv[2])][0] ) )
- else:
- print("\n**Current argument must be an integer\n")
- spd()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement