/// <summary> /// Static initializer to hack the kerbal experience/flight log system to add our entries. /// </summary> static NewKerbalExperience() { Debug.Log("Strategia: Setting up Kerbal Experience"); KerbalRoster.AddExperienceType(SPECIAL_XP + "1", "Special training", 0.0f, 2.0f); KerbalRoster.AddExperienceType(SPECIAL_XP + "2", "Special training", 0.0f, 8.0f); KerbalRoster.AddExperienceType(SPECIAL_XP + "3", "Special training", 0.0f, 16.0f); KerbalRoster.AddExperienceType(SPECIAL_XP + "4", "Special training", 0.0f, 32.0f); KerbalRoster.AddExperienceType(SPECIAL_XP + "5", "Special training", 0.0f, 64.0f); }
public StaticLoader() { Debug.Log("InitStaticData"); for (int level = 1; level <= 5; level++) { var expValue = GetExperienceNeededFor(level); KerbalRoster.AddExperienceType(RecruitLevel + level, "Recruited at level " + level + " on", 0.0f, expValue); } }
/// <summary> /// Static initializer to add our entries into the experience/flight log system. /// It's done on the factory to guarantee it's always run, otherwise uninstalling a /// contract pack could have the side effect of wiping some XP from a saved game. /// </summary> static AwardExperienceFactory() { LoggingUtil.LogVerbose(typeof(AwardExperienceFactory), "Doing setup of Kerbal Experience extras"); for (int i = 3; i <= 64; i++) { KerbalRoster.AddExperienceType(AwardExperience.SPECIAL_XP + i, "#cc.experienceType", 0.0f, (float)i); } }
/// <summary> /// Static initializer to hack the kerbal experience/flight log system to add our entries. /// </summary> static MediaStar() { Debug.Log("Strategia: Setting up Media Star Experience"); KerbalRoster.AddExperienceType(MEDIA_STAR_XP, "Media star from", 3.5f); }