The screenwriters of Avengers: Endgame have opened up about the process of writing Thor's arc in the movie, and how it was dramatically changed by Thor: Ragnarok. The Taika Waititi-directed third movie in the franchise changed Thor's character tone quite dramatically, making him a much more comedic role.
"Remember we were inheriting a Thor from Ragnarok who was very well and radically retoned from the previous Avengers movies," writer McFeely explained in a new interview with Vanity Fair. "So we had to fly in [Chris] Hemsworth and Taika Waititi. Word was getting out from Australia, 'Do you guys understand what we're doing with this movie?' And we're like, 'No, I don't know what you mean, are you making him an idiot, I don't understand?'"