Hello, nice fix you have done:)

But I think conditions for getting "bad disciplinarian" trait may be bugged. I get it after several successfull battles, where in no way 50 percent of my troops routed. I think the condition is maybe connected to number of enemy routed, instead of players troops:

xxx
Trigger battle6
WhenToTest PostBattle

Condition IsGeneral
and PercentageRoutedOffField > 50

Affects BadDisciplinarian 2 Chance 30
xxx

I do not know much about conditions in export_descr_character_traits.txt file, but this may be the problem. No other trait or ancillary uses "PercentageRoutedOffField " condition.