public void ParseStatBlockData() { ParseAC_Types(); ParseAbilityScores(); int Pos = HP.IndexOf(PathfinderConstants.SPACE); if (Pos == -1) { Pos = HP.Length; } CurrentHP = Convert.ToInt32(HP.Substring(0, Pos)); SaveModifer = 0; SizeCategory = (StatBlockInfo.SizeCategories)Enum.Parse(typeof(StatBlockInfo.SizeCategories), Size); ParseClasses(); OnGoingPowers.AddRange(CharacterClasses.GetAllClassPowers()); }
public int GetMaxHP() { string sTemp = string.Empty; int lPos = HP.IndexOf(char.Parse(PathfinderConstants.SPACE)); if (lPos > 0) { sTemp = HP.Substring(0, lPos - 1); } else { sTemp = HP; } return(Convert.ToInt32(sTemp)); }