I wrote the majority of it before I started actually making the game, so it’s hard to put an exact number of hours on it. The world, cities, characters, and most of the story ideas were already pretty extensively mapped out beforehand.
I did have AI expand on some of that material early in development, and if you dig back far enough you’ll actually see some complaints about the writing from that period. I agreed with a lot of them. I spent the next few days going through the text line by line, cutting things, rewriting things, and reasserting the original vision.
There are still a few placeholders and things that slip through, but at this point the vast majority of the lore and flavor text has been properly authored and gone through that pass.