Text: (Thoughts) We walked back to the town exchanging idle chatter. I managed to establish that while the girl was training her body well, she lacked a lot of discipline, and, despite her feelings of inferiority, a fair amount of spirit to her.
Context: the same situation, but it is afterwards of the fight.
Problems:

What is `to her`? Also can't understand grammatical bond of `a fair amout of spirit to her` with rest sentence. Объяснить грамматически я не умею, но знаю, что это означает: "в ней чувствуется боевой дух".