this proc is disgusting, can you seperate the effects for each sub type of object into procs and call them from this one, might help with how deeply nested it is i.e repair_grills_act(some vars you need) etc