Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #/home/clockworkpcasus/Documents/bin/supportRPG.py
- # Released under a GPLv3 Licence by Clockwork PC 2011
- #
- # www.clockworkpc.com.au
- #
- # You are entitled to the following four freedoms:
- # Freedom 0: To run this program for any purpose
- # Freedom 1: To study how this program works and change it to make it do what you wish
- # Freedom 2: To redistribute copies so you can help your neighbour
- # Freedom 3: To distribute copies of your modified version to others
- from bisect import bisect
- cut_points = [100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1250, 1500, 1750, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 6000, 7000, 8000, 9000, 10000]
- lvl = ["Level 1", "Level 2", "Level 3", "Level 4", "Level 5", "Level 6", "Level 7", "Level 8", "Level 9", "Level 10", "Level 11", "Level 12", "Level 13", "Level 14", "Level 15", "Level 16", "Level 17", "Level 18", "Level 19", "Level 20", "Level 21", "Level 22", "Level 23", "Level 24", "Level 25", "Level 26"]
- # Read list of all completed missions to date
- # Read current total experience points from database/spreadsheet
- exp = int(raw_input('How many experience points does the database say you have accumulated? '))
- # Just as an example, if according to the database you have earned 5500 points, the breakdown of your completed missions might look like this:
- missions = """You have completed the following missions:
- Customer = X, Problem = Y, Solution = Z, Points = 2000
- Customer = A, Problem = B, Solution = C, Points = 2500
- Customer = D, Problem = E, Solution = F, Points = 500
- """
- rank = lvl[bisect(cut_points, exp)]
- print "You are", rank
- print missions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement