I need a way to inject some code into the OnDestroy event on every ship class. If there is no events subelement, it must create one. If there is, it needs to replace the original. Do the same for the OnDestroy subelement. The task is (not) simple: For the code below, get the piracy check block to successfully enter the ship class.