It seems that commanders that are set as Story Characters do not get medals. I have civilian administrator since the begining of the game and he didnt get medal for 10 years of service, while others that I got later already have it.
TN start, real stars, decimal separator is dot.
The Story character flag doesn't affect the medal assignment code, only the health and retirement section. I'll show the assignment code here as it is very simple.
// check for length of service awards
List<MedalConditionAssignment> RaceConditionAssignments = MedalConditionAssignments.Where(x => x.Condition.MeasurementType == AuroraMeasurementType.LengthOfService).ToList();
foreach(MedalConditionAssignment mca in RaceConditionAssignments)
{
List<Commander> QualifyingCommanders = Commanders.Values.Where(x => x.ServiceLength >= mca.Condition.AmountRequired && x.CommanderRace == mca.AssignedMedal.MedalRace && x.MedalList.ContainsKey(mca.AssignedMedal.MedalID) == false).ToList();
foreach(Commander c in QualifyingCommanders)
c.AwardMedal(mca.AssignedMedal, mca.Condition, "");
}
Could you check the commander's start of service date and make sure he is eligible.