(a) If, within any twelve month period, alterations or repairs costing in excess of 50 percent of the then physical value of the building are made to an existing building, such building shall be made to conform to the requirements of this chapter for new buildings. (b) If an existing building is damaged by fire or otherwise in excess of 50 percent of its then physical value before such damage is repaired, it shall be made to conform to the requirements of this Code for new buildings. (c) If the cost of such alterations or repairs within any twelve month period or the amount of such damage as referred to in paragraph (b) is more than 25 but not more that 50 percent of the then physical value of the building, the portions to be altered or repaired shall be made to conform to the requirements of this chapter for new buildings to such extent as the department director may determine. (d) For the purpose of this section, physical value of the building shall be determined by the McDuffie County Tax Assessor's Office. (e) If the occupancy of an existing building is entirely changed, the building shall be made to conform to the requirements of this chapter for the new occupancy. If the occupancy of the only portion of an existing building is changed and that portion is separated from the remainder of the building, then only such portion need be made to conform. (f) Repairs and alterations, not covered by the preceding paragraphs of this section, restoring a building to its condition previous to damage or deterioration, or altering it in conformity with the provisions of this chapter or in such manner as will not extend or increase an existing nonconformity or hazard, may be made with the same kind of materials as those of which the building is constructed.