Do domestic animals count towards unitsKilled or unitsLost? If not then it is fine.
Edit, seems like its fine:
if (!cmpUnitEntityIdentity.HasClass("Domestic"))
++this.unitsTrained.total;
//...
if (cmpLostEntityIdentity.HasClass("Unit") && !cmpLostEntityIdentity.HasClass("Domestic"))
{
for (let type of this.unitsClasses)
this.CounterIncrement(cmpLostEntityIdentity, "unitsLost", type);
I think the only thing that could add discrepancies are units that account for more than 1 population.
The dog is an issue tho, not Domestic.