# code/modules/atmospherics/machinery/components/fusion/hfr_defines.dm

LIGHT_SPEED | Speed of light, in m/s |
---|---|

PLANCK_LIGHT_CONSTANT | Calculation between the plank constant and the lambda of the lightwave |

CALCULATED_H2RADIUS | Radius of the h2 calculated based on the amount of number of atom in a mole (and some addition for balancing issues) |

CALCULATED_TRITRADIUS | Radius of the trit calculated based on the amount of number of atom in a mole (and some addition for balancing issues) |

VOID_CONDUCTION | Power conduction in the void, used to calculate the efficiency of the reaction |

FUSION_MOLE_THRESHOLD | Mole count required (tritium/hydrogen) to start a fusion reaction |

INSTABILITY_GAS_POWER_FACTOR | Used to reduce the gas_power to a more useful amount |

TOROID_VOLUME_BREAKEVEN | Used to calculate the toroidal_size for the instability |

PARTICLE_CHANCE_CONSTANT | Constant used when calculating the chance of emitting a radioactive particle |

METALLIC_VOID_CONDUCTIVITY | Conduction of heat inside the fusion reactor |

HIGH_EFFICIENCY_CONDUCTIVITY | Conduction of heat near the external cooling loop |

MIN_POWER_USAGE | Sets the minimum amount of power the machine uses |

DAMAGE_CAP_MULTIPLIER | Sets the multiplier for the damage |

HALLUCINATION_HFR | Sets the range of the hallucinations |

IRON_CHANCE_PER_FUSION_LEVEL | Chance in percentage points per fusion level of iron accumulation when operating at unsafe levels |

IRON_ACCUMULATED_PER_SECOND | Amount of iron accumulated per second whenever we fail our saving throw, using the chance above |

IRON_OXYGEN_HEAL_PER_SECOND | Maximum amount of iron that can be healed per second. Calculated to mostly keep up with fusion level 5. |

OXYGEN_MOLES_CONSUMED_PER_IRON_HEAL | Amount of oxygen in moles required to fully remove 100% iron content. Currently about 2409mol. Calculated to consume at most 10mol/s. |

HYPERTORUS_ACCENT_SOUND_MIN_COOLDOWN | to prevent accent sounds from layering |

HYPERTORUS_OVERFULL_MIN_POWER_LEVEL | Start taking overfull damage at this power level |

HYPERTORUS_OVERFULL_MAX_SAFE_COLD_FUSION_MOLES | Take 0 damage beneath this much fusion mass at 1 degree Kelvin |

HYPERTORUS_OVERFULL_MAX_SAFE_HOT_FUSION_MOLES | Take 0 damage beneath this much fusion mass at FUSION_TEMPERATURE_MAX degrees Kelvin |

HYPERTORUS_OVERFULL_MOLAR_SLOPE | Every 200 moles, 1 point of damage per second |

HYPERTORUS_SUBCRITICAL_MOLES | Start healing when fusion mass is below this threshold |

HYPERTORUS_SUBCRITICAL_SCALE | Heal one point per second per this many moles under the threshold |

HYPERTORUS_COLD_COOLANT_MAX_RESTORE | Heal up to this many points of damage per second at 1 degree kelvin |

HYPERTORUS_COLD_COOLANT_THRESHOLD | Start healing below this temperature |

HYPERTORUS_MAX_SAFE_IRON | Start taking damage over this threshold, up to a maximum of (1 - HYPERTORUS_MAX_SAFE_IRON) per tick at 100% iron |

HYPERTORUS_HYPERCRITICAL_MOLES | Start taking damage over this threshold |

HYPERTORUS_HYPERCRITICAL_SCALE | Take this much damage per mole over the threshold per second |

HYPERTORUS_HYPERCRITICAL_MAX_DAMAGE | Take at most this much damage per second |

HYPERTORUS_MEDIUM_SPILL_PRESSURE | Start spilling superhot moderator gas when over this pressure threshold |

HYPERTORUS_MEDIUM_SPILL_INITIAL | How much we should spill initially |

HYPERTORUS_MEDIUM_SPILL_RATE | How much of the moderator mix we should spill per second until mended |

HYPERTORUS_STRONG_SPILL_PRESSURE | If the moderator gas goes over this threshold, REALLY spill it |

HYPERTORUS_STRONG_SPILL_INITIAL | How much we should spill initially |

HYPERTORUS_STRONG_SPILL_RATE | How much of the moderator mix we should spill per second until mended |

HYPERTORUS_FLAG_HIGH_POWER_DAMAGE | High power damage |

HYPERTORUS_FLAG_HIGH_FUEL_MIX_MOLE | High fuel mix mole |

HYPERTORUS_FLAG_IRON_CONTENT_DAMAGE | iron content damage |

HYPERTORUS_FLAG_IRON_CONTENT_INCREASE | Iron content increasing |

HYPERTORUS_FLAG_EMPED | Emped hypertorus |

## Define Details

### CALCULATED_H2RADIUS

Radius of the h2 calculated based on the amount of number of atom in a mole (and some addition for balancing issues)

### CALCULATED_TRITRADIUS

Radius of the trit calculated based on the amount of number of atom in a mole (and some addition for balancing issues)

### DAMAGE_CAP_MULTIPLIER

Sets the multiplier for the damage

### FUSION_MOLE_THRESHOLD

Mole count required (tritium/hydrogen) to start a fusion reaction

### HALLUCINATION_HFR

Sets the range of the hallucinations

### HIGH_EFFICIENCY_CONDUCTIVITY

Conduction of heat near the external cooling loop

### HYPERTORUS_ACCENT_SOUND_MIN_COOLDOWN

to prevent accent sounds from layering

### HYPERTORUS_COLD_COOLANT_MAX_RESTORE

Heal up to this many points of damage per second at 1 degree kelvin

### HYPERTORUS_COLD_COOLANT_THRESHOLD

Start healing below this temperature

### HYPERTORUS_FLAG_EMPED

Emped hypertorus

### HYPERTORUS_FLAG_HIGH_FUEL_MIX_MOLE

High fuel mix mole

### HYPERTORUS_FLAG_HIGH_POWER_DAMAGE

High power damage

### HYPERTORUS_FLAG_IRON_CONTENT_DAMAGE

iron content damage

### HYPERTORUS_FLAG_IRON_CONTENT_INCREASE

Iron content increasing

### HYPERTORUS_HYPERCRITICAL_MAX_DAMAGE

Take at most this much damage per second

### HYPERTORUS_HYPERCRITICAL_MOLES

Start taking damage over this threshold

### HYPERTORUS_HYPERCRITICAL_SCALE

Take this much damage per mole over the threshold per second

### HYPERTORUS_MAX_SAFE_IRON

Start taking damage over this threshold, up to a maximum of (1 - HYPERTORUS_MAX_SAFE_IRON) per tick at 100% iron

### HYPERTORUS_MEDIUM_SPILL_INITIAL

How much we should spill initially

### HYPERTORUS_MEDIUM_SPILL_PRESSURE

Start spilling superhot moderator gas when over this pressure threshold

### HYPERTORUS_MEDIUM_SPILL_RATE

How much of the moderator mix we should spill per second until mended

### HYPERTORUS_OVERFULL_MAX_SAFE_COLD_FUSION_MOLES

Take 0 damage beneath this much fusion mass at 1 degree Kelvin

### HYPERTORUS_OVERFULL_MAX_SAFE_HOT_FUSION_MOLES

Take 0 damage beneath this much fusion mass at FUSION_TEMPERATURE_MAX degrees Kelvin

### HYPERTORUS_OVERFULL_MIN_POWER_LEVEL

Start taking overfull damage at this power level

### HYPERTORUS_OVERFULL_MOLAR_SLOPE

Every 200 moles, 1 point of damage per second

### HYPERTORUS_STRONG_SPILL_INITIAL

How much we should spill initially

### HYPERTORUS_STRONG_SPILL_PRESSURE

If the moderator gas goes over this threshold, REALLY spill it

### HYPERTORUS_STRONG_SPILL_RATE

How much of the moderator mix we should spill per second until mended

### HYPERTORUS_SUBCRITICAL_MOLES

Start healing when fusion mass is below this threshold

### HYPERTORUS_SUBCRITICAL_SCALE

Heal one point per second per this many moles under the threshold

### INSTABILITY_GAS_POWER_FACTOR

Used to reduce the gas_power to a more useful amount

### IRON_ACCUMULATED_PER_SECOND

Amount of iron accumulated per second whenever we fail our saving throw, using the chance above

### IRON_CHANCE_PER_FUSION_LEVEL

Chance in percentage points per fusion level of iron accumulation when operating at unsafe levels

### IRON_OXYGEN_HEAL_PER_SECOND

Maximum amount of iron that can be healed per second. Calculated to mostly keep up with fusion level 5.

### LIGHT_SPEED

Speed of light, in m/s

### METALLIC_VOID_CONDUCTIVITY

Conduction of heat inside the fusion reactor

### MIN_POWER_USAGE

Sets the minimum amount of power the machine uses

### OXYGEN_MOLES_CONSUMED_PER_IRON_HEAL

Amount of oxygen in moles required to fully remove 100% iron content. Currently about 2409mol. Calculated to consume at most 10mol/s.

### PARTICLE_CHANCE_CONSTANT

Constant used when calculating the chance of emitting a radioactive particle

### PLANCK_LIGHT_CONSTANT

Calculation between the plank constant and the lambda of the lightwave

### TOROID_VOLUME_BREAKEVEN

Used to calculate the toroidal_size for the instability

### VOID_CONDUCTION

Power conduction in the void, used to calculate the efficiency of the reaction