Pharmaceuticals
Generic medical supplies for medication mods to build on: sterile packaging, carrier oils, laboratory reagents and fatty acids for injectable esters. Also adds healing items, bleeding wounds, Medical Science and research that improves healing and your character.
Requires: Factorio 2.1. Optional: Space Age (jellynut route to castor oil). Nothing in this mod can be recycled.
Features
- Medical supplies: glass vials, disposable syringes, alcohol wipes, medical cloth (from wood, or from plastic via nonwoven gauze).
- Healing items (unusable at full health unless bleeding):
| Item | Heal | Stops bleeding |
|---|---|---|
| Sterile bandage | 25 | yes |
| First-aid kit | 100 | yes |
| Saline IV bag | 150 over 30 s | no |
- Bleeding: physical damage (bites, bullets, impacts) can open a wound.
- Chance rises with hit size; further hits worsen it. Severities: Minor, Moderate, Severe, Critical.
- Drains health every second until dressed. Can kill.
- Drips blood, faster when worse. Stains persist for a while: standing still leaves a pool, running a trail.
- Medical Science pack: from first-aid kits, saline IV bags and syringes. Accepted by every lab including the biolab; does not spoil.
- Injection kit: shared dose picker for medication mods. Pick a vial and a dose (range follows the vial); the kit draws the dose from the vial. Higher quality holds proportionally more; each quality of a vial is listed separately.
- Carrier oils and fluids: MCT oil, castor oil, isopropyl alcohol, sterile saline. With Space Age, jellynuts pressed in a chemical plant yield slightly more castor oil than heavy oil.
- Laboratory reagents: methanol, pyridine, potassium carbonate solution.
- Fatty acids and anhydrides (ester side chains): 2 acid + sulfuric acid (dehydrating agent) → 1 anhydride. Each side chain attached returns one acid.
| Acid | Anhydride | Source |
|---|---|---|
| Propionic (C3) | Propionic anhydride | Petroleum gas + steam |
| Valeric (C5) | Valeric anhydride | Light oil |
| Heptanoic (C7) | Heptanoic anhydride | Light oil, or castor oil pyrolysis |
| Cypionic (C8) | Cypionic anhydride | Coal + petroleum gas + sulfuric acid |
| Undecylic (C11) | Undecylic anhydride | Castor oil pyrolysis → undecylenic acid (+ heptanoic acid) → hydrogenation |
Research
| Research | Cost | Unlocks |
|---|---|---|
| First Aid | 30 × automation | Medical cloth, sterile bandages |
| Laboratory Reagents | 100 × automation, logistic | Methanol, pyridine, potassium carbonate solution |
| Pharmaceutical Packaging | 350 × automation, logistic, chemical, production | Vials, syringes, alcohol wipes, carrier oils, saline, injection kits, first-aid kits, IV bags |
| Medical Science pack | 300 × same | Medical Science pack, nonwoven gauze |
| Fatty Acid Chemistry | 250 × same + medical | Fatty acids and anhydrides |
| Field Medicine | utility, medical | +10% healing-item healing per level. Levels 1–5 in one research, then infinite with space science |
| Regeneration (5 levels) | utility, medical | +1 HP/s per level, including in combat |
| Physiotherapy (3 levels) | utility, medical | +5% running speed, +10% mining speed per level |
| Jellynut Oil Pressing (Space Age) | 100 × automation, logistic, chemical, production, agricultural | Castor oil from jellynuts |
| Medical Manufacturing (infinite) | utility, space, medical | +5% productivity per level on vials, syringes, wipes and healing items |
Auto-hiding: Laboratory Reagents and Fatty Acid Chemistry only supply other mods and hide when no installed mod uses them. Each individual supply (e.g. one acid) also hides when unused. Jellynut Oil Pressing hides with castor oil.
Health research: with Space Age, costs Medical Science instead of agricultural science (no Gleba needed). Without Space Age, this mod adds it: +50 health per level, space science from level 2.
Settings
| Setting | Scope | Default | Effect |
|---|---|---|---|
| Bleeding | Map | On | Whether physical damage can cause bleeding. |
For mod developers
Register vials to list them in the injection kit's dose picker:
remote.call("pharmaceuticals", "register_medication", {
interface = "my-medication", -- your own remote interface
min_mg = 0.1,
max_mg = 100,
vials = { "my-vial-a", "my-vial-b" },
})
Registrations are not saved: call in both on_init and on_load. Your interface provides:
apply_dose(player, vial_name, mg): returntrueif the dose was applied; Pharmaceuticals then drains it from the vial.can_dose(player, vial_name, mg)(optional): returnfalseto refuse.dosing_is_active()(optional): returnfalseto hide your vials.
Made for Factorio 2.1. Licensed under GPL-3.0.
Contact: Discord (fastest) · Website