コード例 #1
0
 /// <summary>
 /// Get the value from the config
 /// </summary>
 public float GetConfigValue(ConfigKey eventKey, CrewMember member = null)
 {
     if (eventKey == ConfigKey.StatRevealCost && member != null)
     {
         return((int)(member.RevealedSkills.Count(s => s.Value != 0) * GetConfigValue(ConfigKey.StatRevealCost)) + (member.RevealedSkills.All(s => s.Value != 0) ? 0 : 1));
     }
     return(eventKey.GetValue());
 }