public bool Test(Character character, ResultWindow window) { if (character == null || allMons.Length == 0) { return(true); } GetDifficultyLevel(character.level, diffSetting, out int minLv, out int maxLv); if (maxLv < -5) { return(true); } StatisticsResults result = ComputeStatistics(character, allMons, minLv, maxLv, itemBonusMode); result = ComputeStatistics(character, allHaz, minLv, maxLv, result, itemBonusMode); CalcStatsForSkills(character, minLv, maxLv, result, itemBonusMode); window.transform.Find("ClassLevel").GetComponent <Text>().text = character.name + " " + character.level + " (" + diffDropdown.options[diffSetting].text + ")"; window.DisplayResult(result, gradient); return(false); }