Sure and we also stayed and maintained the building and the landlord's property through the 70s and 80s when New York was a cess pit. My neighborhood was famous for petty crime and was full of pimps, street hookers, bums and scammers -- New York was half empty compared to now.
My landlord still had their property because of tenants like us who stayed when life in NY was grim. I was just around the corner from a building famous for the landlord trying to burn the tenants out (The Windermere).
Also what the landlord was doing by not completing the repair was illegal. Fineable. Slumlordish. Having a 2' round, 1' deep hole in the doorway of my bathroom floor is a massive safety issue. You're saying my landlord shouldn't be required to repair it because of incentive? If I fell in their hole and hit my head on the toilet and died, they would have a multi-million dollar liability on their hands.