SHARE
TWEET

Untitled

a guest Oct 14th, 2017 126 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Main:
  2.     def __init__(self, min_basewert, max_basewert):
  3.         self.min_basewert = min_basewert
  4.         self.max_basewert = max_basewert
  5.         self.min = min_basewert
  6.         self.max = max_basewert
  7.  
  8.         self.upgrades = []
  9.  
  10.     def start(self):
  11.         self.prozente = [
  12.                         (4.66, 4,37),
  13.                         (5.82, 5.46),
  14.                         (7.39, 6.96),
  15.                         (7.45, 7.04),
  16.                         (7.90, 7.50),
  17.                         (8.29, 7,89),
  18.                         (8.48, 8.11),
  19.                         (8.58, 8.23),
  20.                         (9.31, 8.96),
  21.                         (11.19, 10.81),
  22.                         (7.08, 8.42),
  23.                         (6.61, 6.42),
  24.                         (6.24, 6.07),
  25.                         (5.84, 5.70),
  26.                         (5.52, 5.38)
  27.                         ]
  28.  
  29.         for x in range(0, 15):
  30.             self.upgrade_item(self.prozente[x][0], self.prozente[x][1])
  31.  
  32.         self.print_upgrades()
  33.  
  34.     def upgrade_item(self, min_prozent, max_prozent):
  35.         self.min += (self.min/100) * min_prozent
  36.         self.max += (self.max/100) * max_prozent
  37.  
  38.         self.upgrades.append((int(self.min), int(self.max)))
  39.  
  40.     def print_upgrades(self):
  41.         print("Level 0: {0} ~ {1}".format(self.min_basewert, self.max_basewert))
  42.         for x in range(0, 15):
  43.             print("Level {0}:".format(x+1), self.upgrades[x][0], "~", self.upgrades[x][1])
  44.  
  45. main = Main(819, 879)
  46. main.start()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top