The sentence describes adapting to a new situation over time.
'Got used to' means to become accustomed to something.
'Used to' refers to a past habit. 'Was used to' means was accustomed to. 'Got used to' implies the process of becoming accustomed, which fits the context of 'after living for a few months'.