text: max_level_rarity = {1: 10, 2: 8, 3: 6, 4: 4}
  
  xp_level = [{"edition": 0, "rarity": 1, "xp_level": {1: 00, 2: 20, 3: 60, 4: 160, 5: 360, 6: 760, 7: 1560, 8: 2560, 9: 4560, 10: 7560}},
              {"edition": 0, "rarity": 2, "xp_level": {1: 0, 2: 100, 3: 300, 4: 700, 5: 1500, 6: 2500, 7: 4500, 8: 8500}},
              {"edition": 0, "rarity": 3, "xp_level": {1: 0, 2: 250, 3: 750, 4: 1750, 5: 3750, 6: 7750}},
              {"edition": 0, "rarity": 4, "xp_level": {1: 0000, 2: 1000, 3: 3000, 4: 7000}},
              {"edition": 1, "rarity": 1, "xp_level": {1: 00, 2: 30, 3: 60, 4: 165, 5: 360, 6: 765, 7: 1560, 8: 2565, 9: 4560, 10:  7560}},
              {"edition": 1, "rarity": 2, "xp_level": {1: 0, 2: 150, 3: 300, 4: 750, 5: 1500, 6: 2550, 7: 4500, 8: 9000}},
              {"edition": 1, "rarity": 3, "xp_level": {1: 0, 2: 380, 3: 950, 4: 1900, 5: 4180, 6: 8550}},
              {"edition": 1, "rarity": 4, "xp_level": {1: 0, 2: 1500, 3: 3000, 4: 7500}}]