private void SetEmitterType() { Definition = DefinitionManager.Get(Emitter.BlockDefinition.SubtypeId); switch (Definition.Name) { case "EmitterST": EmitterMode = EmitterType.Station; Entity.TryGetSubpart("Rotor", out SubpartRotor); break; case "EmitterL": case "EmitterLA": case "NPCEmitterLB": EmitterMode = EmitterType.Large; if (Definition.Name == "EmitterLA" || Definition.Name == "NPCEmitterLB") { _compact = true; } else { Entity.TryGetSubpart("Rotor", out SubpartRotor); } break; case "EmitterS": case "EmitterSA": case "NPCEmitterSB": EmitterMode = EmitterType.Small; if (Definition.Name == "EmitterSA" || Definition.Name == "NPCEmitterSB") { _compact = true; } else { Entity.TryGetSubpart("Rotor", out SubpartRotor); } break; } Emitter.AppendingCustomInfo += AppendingCustomInfo; }