public override bool HandleEvent(BeforeDeathRemovalEvent E) { // make a note of the original puffer color on the corpse var color = ParentObject.GetSpecies()?.Before("puff"); if (color != null) { CorpseObject = GameObject.create(CorpseBlueprint); CorpseObject.SetStringProperty("color", color); } return(base.HandleEvent(E)); }