Constructing a shelter is a great act. Especially if there is a need for a shelter in a town, in which case the reward is limitless.
I see something unusual in the word 'which' here. I think there should be 'this'. I don't think if the conjunction 'which' grammatically fits in the main clause after the If-clause.