text: // should these be alphabetical?
  ability_scores = ['str', 'dex', 'con', 'int', 'wis', 'cha']
  
  // ability score modifiers
  ability_score_modifiers =
  {
  //score		modifier
  "-1":		0,
   "1":		-5,
   "2":		-4,
   "3":		-4,
   "4":		-3,
   "5":		-3,
   "6":		-2,
   "7":		-2,
   "8":		-1,
   "9":		-1,
  "10":		0,
  "11":		0,
  "12":		1,
  "13":		1,
  "14":		2,
  "15":		2,
  "16":		3,
  "17":		3,
  "18":		4,
  "19":		4,
  "20":		5,
  "21":		5,
  "22":		6,
  "23":		6,
  "24":		7,
  "25":		7,
  "26":		8,
  "27":		8,
  "28":		9,
  "29":		9,
  "30":		10,
  "31":		10,
  "32":		11,
  "33":		11,
  "34":		12,
  "35":		12,
  "36":		13,
  "37":		13,
  "38":		14,
  "39":		14,
  "40":		15,
  "41":		15,
  "42":		16,
  "43":		16,
  "44":		17,
  "45":		17
  }
  
  // bonus spells by spell level
  // Not sure whether the game puts this in PROTOS.TAB or automatically calculates it.
  bonus_spells =
  {
  //abil.	0th	1st	2nd	3rd	4th	5th	6th	7th	8th	9th
  //score
  "-1":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "1":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "2":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "3":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "4":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "5":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "6":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "7":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "8":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "9":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
  "10":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
  "11":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
  "12":	[null,	1,	null,	null,	null,	null,	null,	null,	null,	null],
  "13":	[null,	1,	null,	null,	null,	null,	null,	null,	null,	null],
  "14":	[null,	1,	1,	null,	null,	null,	null,	null,	null,	null],
  "15":	[null,	1,	1,	null,	null,	null,	null,	null,	null,	null],
  "16":	[null,	1,	1,	1,	null,	null,	null,	null,	null,	null],
  "17":	[null,	1,	1,	1,	null,	null,	null,	null,	null,	null],
  "18":	[null,	1,	1,	1,	1,	null,	null,	null,	null,	null],
  "19":	[null,	1,	1,	1,	1,	null,	null,	null,	null,	null],
  "20":	[null,	2,	1,	1,	1,	1,	null,	null,	null,	null],
  "21":	[null,	2,	1,	1,	1,	1,	null,	null,	null,	null],
  "22":	[null,	2,	2,	1,	1,	1,	1,	null,	null,	null],
  "23":	[null,	2,	2,	1,	1,	1,	1,	null,	null,	null],
  "24":	[null,	2,	2,	2,	1,	1,	1,	1,	null,	null],
  "25":	[null,	2,	2,	2,	1,	1,	1,	1,	null,	null],
  "26":	[null,	2,	2,	2,	2,	1,	1,	1,	1,	null],
  "27":	[null,	2,	2,	2,	2,	1,	1,	1,	1,	null],
  "28":	[null,	3,	2,	2,	2,	2,	1,	1,	1,	1],
  "29":	[null,	3,	2,	2,	2,	2,	1,	1,	1,	1],
  "30":	[null,	3,	3,	2,	2,	2,	2,	1,	1,	1],
  "31":	[null,	3,	3,	2,	2,	2,	2,	1,	1,	1],
  "32":	[null,	3,	3,	3,	2,	2,	2,	2,	1,	1],
  "33":	[null,	3,	3,	3,	2,	2,	2,	2,	1,	1],
  "34":	[null,	3,	3,	3,	3,	2,	2,	2,	2,	1],
  "35":	[null,	3,	3,	3,	3,	2,	2,	2,	2,	1],
  "36":	[null,	4,	3,	3,	3,	3,	2,	2,	2,	2],
  "37":	[null,	4,	3,	3,	3,	3,	2,	2,	2,	2],
  "38":	[null,	4,	4,	3,	3,	3,	3,	2,	2,	2],
  "39":	[null,	4,	4,	3,	3,	3,	3,	2,	2,	2],
  "40":	[null,	4,	4,	4,	3,	3,	3,	3,	2,	2],
  "41":	[null,	4,	4,	4,	3,	3,	3,	3,	2,	2],
  "42":	[null,	4,	4,	4,	4,	3,	3,	3,	3,	2],
  "43":	[null,	4,	4,	4,	4,	3,	3,	3,	3,	2],
  "44":	[null,	5,	4,	4,	4,	4,	3,	3,	3,	3],
  "45":	[null,	5,	4,	4,	4,	4,	3,	3,	3,	3]
  }
  
  // bonus power points by class level
  // Not sure whether the game puts this in PROTOS.TAB or automatically calculates it.
  bonus_power_points =
  {
  //abil.	1st	2nd	3rd	4th	5th	6th	7th	8th	9th	10th	11th	12th	13th	14th	15th	16th	17th	18th	19th	20th
  //score
  "-1":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "1":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "2":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "3":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "4":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "5":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "6":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "7":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "8":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
   "9":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
  "10":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
  "11":	[null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null,	null],
  "12":	[null,	1,	1,	2,	2,	3,	3,	4,	4,	5,	5,	6,	6,	7,	7,	8,	8,	9,	9,	10],
  "13":	[null,	1,	1,	2,	2,	3,	3,	4,	4,	5,	5,	6,	6,	7,	7,	8,	8,	9,	9,	10],
  "14":	[1,	2,	3,	4,	5,	6,	7,	8,	9,	10,	11,	12,	13,	14,	15,	16,	17,	18,	19,	20],
  "15":	[1,	2,	3,	4,	5,	6,	7,	8,	9,	10,	11,	12,	13,	14,	15,	16,	17,	18,	19,	20],
  "16":	[1,	3,	4,	6,	7,	9,	10,	12,	13,	15,	16,	18,	19,	21,	22,	24,	25,	27,	28,	30],
  "17":	[1,	3,	4,	6,	7,	9,	10,	12,	13,	15,	16,	18,	19,	21,	22,	24,	25,	27,	28,	30],
  "18":	[2,	4,	6,	8,	10,	12,	14,	16,	18,	20,	22,	24,	26,	28,	30,	32,	34,	36,	38,	40],
  "19":	[2,	4,	6,	8,	10,	12,	14,	16,	18,	20,	22,	24,	26,	28,	30,	32,	34,	36,	38,	40],
  "20":	[2,	5,	7,	10,	12,	15,	17,	20,	22,	25,	27,	30,	32,	35,	37,	40,	42,	45,	47,	50],
  "21":	[2,	5,	7,	10,	12,	15,	17,	20,	22,	25,	27,	30,	32,	35,	37,	40,	42,	45,	47,	50],
  "22":	[3,	6,	9,	12,	15,	18,	21,	24,	27,	30,	33,	36,	39,	42,	45,	48,	51,	54,	57,	60],
  "23":	[3,	6,	9,	12,	15,	18,	21,	24,	27,	30,	33,	36,	39,	42,	45,	48,	51,	54,	57,	60],
  "24":	[3,	7,	10,	14,	17,	21,	24,	28,	31,	35,	38,	42,	45,	49,	52,	56,	59,	63,	66,	70],
  "25":	[3,	7,	10,	14,	17,	21,	24,	28,	31,	35,	38,	42,	45,	49,	52,	56,	59,	63,	66,	70],
  "26":	[4,	8,	12,	16,	20,	24,	28,	32,	36,	40,	44,	48,	52,	56,	60,	64,	68,	72,	76,	80],
  "27":	[4,	8,	12,	16,	20,	24,	28,	32,	36,	40,	44,	48,	52,	56,	60,	64,	68,	72,	76,	80],
  "28":	[4,	9,	13,	18,	22,	27,	31,	36,	40,	45,	49,	54,	58,	63,	67,	72,	76,	81,	85,	90],
  "29":	[4,	9,	13,	18,	22,	27,	31,	36,	40,	45,	49,	54,	58,	63,	67,	72,	76,	81,	85,	90],
  "30":	[5,	10,	15,	20,	25,	30,	35,	40,	45,	50,	55,	60,	65,	70,	75,	80,	85,	90,	95,	100],
  "31":	[5,	10,	15,	20,	25,	30,	35,	40,	45,	50,	55,	60,	65,	70,	75,	80,	85,	90,	95,	100],
  "32":	[5,	11,	16,	22,	27,	33,	38,	44,	49,	55,	60,	66,	71,	77,	82,	88,	93,	99,	104,	110],
  "33":	[5,	11,	16,	22,	27,	33,	38,	44,	49,	55,	60,	66,	71,	77,	82,	88,	93,	99,	104,	110],
  "34":	[6,	12,	18,	24,	30,	36,	42,	48,	54,	60,	66,	72,	78,	84,	90,	96,	102,	108,	114,	120],
  "35":	[6,	12,	18,	24,	30,	36,	42,	48,	54,	60,	66,	72,	78,	84,	90,	96,	102,	108,	114,	120],
  "36":	[6,	13,	19,	26,	32,	39,	45,	52,	58,	65,	71,	78,	84,	91,	97,	104,	110,	117,	123,	130],
  "37":	[6,	13,	19,	26,	32,	39,	45,	52,	58,	65,	71,	78,	84,	91,	97,	104,	110,	117,	123,	130],
  "38":	[7,	14,	21,	28,	35,	42,	49,	56,	63,	70,	77,	84,	91,	98,	105,	112,	119,	126,	133,	140],
  "39":	[7,	14,	21,	28,	35,	42,	49,	56,	63,	70,	77,	84,	91,	98,	105,	112,	119,	126,	133,	140],
  "40":	[7,	15,	22,	30,	37,	45,	52,	60,	67,	75,	82,	90,	97,	105,	112,	120,	127,	135,	142,	150],
  "41":	[7,	15,	22,	30,	37,	45,	52,	60,	67,	75,	82,	90,	97,	105,	112,	120,	127,	135,	142,	150],
  "42":	[8,	16,	23,	32,	40,	48,	56,	64,	72,	80,	88,	96,	104,	112,	120,	128,	136,	144,	152,	160],
  "43":	[8,	16,	23,	32,	40,	48,	56,	64,	72,	80,	88,	96,	104,	112,	120,	128,	136,	144,	152,	160],
  "44":	[8,	17,	25,	34,	42,	51,	59,	68,	76,	85,	93,	102,	110,	119,	127,	136,	144,	153,	161,	170],
  "45":	[8,	17,	25,	34,	42,	51,	59,	68,	76,	85,	93,	102,	110,	119,	127,	136,	144,	153,	161,	170]
  }
  