Turn the shadow scale if-else into a switch statement, for sake of editing and in case object types ever change