To be fair, "affect" in this story isn't a super common word
As mentioned elsewhere, it's a shortening of "affectation", and is pronounced a fair bit differently: where "affect" like you're thinking has emphasis on the second syllable, the "affect" in the story has it on the first syllable, and even puts the "f" in the first syllable rather than the second.