# Alkylation Unit

Converts a feed fluid, with an optional acid, into two fluids.

The feed tank's fluid selects the row: the last row in table order whose first input fluid has that type. Set the feed type with a fluid identifier on the block; it defaults to chloromethane. Every 2 ticks the unit drains 100 mB of feed and the acid amount, fills both outputs and uses 4,000 HE; it needs 4,000 HE stored.

## Fields

| Field | Meaning and default | Range |
| - | - | - |
| `type` | Selects the `hbmspace:alkylation` recipe format. | |
| `name` (Optional) | Internal lookup name; defaults to the last segment of the recipe resource path. | |
| `order` (Optional) | Sort position within the recipe table; lower values first, default 2147483647. | `i32` |
| `input_fluids` | The first entry's type selects the row; its amount is not used, and recipe viewers show 10 steps of each amount, so keep it at 100. An optional second entry is the acid drained per step. Further entries are ignored. | |
| `input_fluids.type` | Registered fluid ID. | |
| `input_fluids.amount` | Amount in mB; use $[1, \mathrm{tank\ capacity}]$ for transfers because machine code casts to int. | `i64` |
| `input_fluids.pressure` (Optional) | Pressure level; default 0. | `i32` |
| `output_fluids` | Exactly two fluids filled per step; a row with fewer fails when the unit runs it. | |
| `output_fluids.type` | Registered fluid ID. | |
| `output_fluids.amount` | Amount in mB; use $[1, \mathrm{tank\ capacity}]$ for transfers because machine code casts to int. | `i64` |
| `output_fluids.pressure` (Optional) | Pressure level; default 0. | `i32` |

`duration`, `power`, item fields and fluid `pressure` are ignored.

## Example

Source path: `data/hbmspace/recipe/alkylation/alkylation.chloromethane.json`

```json
{
  "type": "hbmspace:alkylation",
  "input_fluids": [
    {
      "type": "hbmspace:chloromethane",
      "amount": 100
    }
  ],
  "order": 0,
  "output_fluids": [
    {
      "type": "hbm:unsaturateds",
      "amount": 75
    },
    {
      "type": "hbm:chlorine",
      "amount": 25
    }
  ]
}
```
