Every municipality shall have power to prescribe the fire limits within which wooden buildings shall not be erected, placed, or repaired without permission, and to provide that when a building within such limits has been damaged by fire, decay, or otherwise to an extent of fifty percent of its value, it shall be torn down or removed, and to prescribe the manner of ascertaining such damage.
SDCL 9-33-2