|
| 1 | +// Index of each node in the list of nodes the reactor has |
| 2 | +#define COOLANT_INPUT_GATE 1 |
| 3 | +#define MODERATOR_INPUT_GATE 2 |
| 4 | +#define COOLANT_OUTPUT_GATE 3 |
| 5 | + |
| 6 | +#define REACTOR_TEMPERATURE_MINIMUM 400 // Minimum temperature needed to run normally |
| 7 | +#define REACTOR_TEMPERATURE_OPERATING 800 //Kelvin |
| 8 | +#define REACTOR_TEMPERATURE_CRITICAL 1000 //At this point the entire station is alerted to a meltdown. This may need altering |
| 9 | +#define REACTOR_TEMPERATURE_MELTDOWN 1200 |
| 10 | + |
| 11 | +#define REACTOR_HEAT_CAPACITY 6000 //How much thermal energy it takes to cool the reactor |
| 12 | +#define REACTOR_ROD_HEAT_CAPACITY 400 //How much thermal energy it takes to cool each reactor rod |
| 13 | +#define REACTOR_HEAT_EXPONENT 1.5 // The exponent used for the function for K heating |
| 14 | +#define REACTOR_HEAT_FACTOR (20 / (REACTOR_HEAT_EXPONENT**2)) //How much heat from K |
| 15 | + |
| 16 | +#define REACTOR_NO_COOLANT_TOLERANCE 5 //How many process()ing ticks the reactor can sustain without coolant before slowly taking damage |
| 17 | + |
| 18 | +#define REACTOR_MODERATOR_DECAY_RATE 0.1 //Don't use up ALL of the moderator, engineers need it to last a full round |
| 19 | + |
| 20 | +#define REACTOR_PRESSURE_OPERATING 6000 //Kilopascals |
| 21 | +#define REACTOR_PRESSURE_CRITICAL 10000 |
| 22 | + |
| 23 | +#define REACTOR_MAX_CRITICALITY 5 //No more criticality than N for now. |
| 24 | +#define REACTOR_CRITICALITY_POWER_FACTOR 3000 // affects criticality from high power |
| 25 | + |
| 26 | +#define REACTOR_MAX_FUEL_RODS 5 //Maximum number of fuel rods that can fit in the reactor |
| 27 | + |
| 28 | +#define REACTOR_POWER_FLAVOURISER 1000 //To turn those KWs into something usable |
| 29 | +#define REACTOR_PERMEABILITY_FACTOR 500 // How effective permeability-type moderators are |
| 30 | +#define REACTOR_CONTROL_FACTOR 250 // How effective control-type moderators are |
| 31 | + |
| 32 | + |
| 33 | +/// Moderator effects, must be added to the moderator input for them to do anything |
| 34 | + |
| 35 | +// Fuel types: increases power, at the cost of making K harder to control |
| 36 | +#define PLASMA_FUEL_POWER 1 // baseline fuel |
| 37 | +#define TRITIUM_FUEL_POWER 10 // woah there |
| 38 | +#define ANTINOBLIUM_FUEL_POWER 100 // oh god oh fuck |
| 39 | + |
| 40 | +// Power types: makes the fuel have more of an effect |
| 41 | +#define OXYGEN_POWER_MOD 1 // baseline power modifier gas, optimal plasma/O2 ratio is 50/50 if you can handle the K increase from the plasma |
| 42 | +#define HYDROGEN_POWER_MOD 10 // far superior power moderator gas, if you can handle the rads |
| 43 | + |
| 44 | +// Control types: increases the effectiveness of control rods, makes K easier to control |
| 45 | +#define NITROGEN_CONTROL_MOD 1 // good at controlling the reaction, but deadly rads |
| 46 | +#define CARBON_CONTROL_MOD 2 // even better control, but even worse rads |
| 47 | +#define PLUOXIUM_CONTROL_MOD 3 // best control gas, no rads! |
| 48 | + |
| 49 | +// Cooling types: increases the effectiveness of coolant, exchanges more heat per process |
| 50 | +#define BZ_PERMEABILITY_MOD 1 // makes cooling more effective |
| 51 | +#define WATER_PERMEABILITY_MOD 2 // even better than BZ |
| 52 | +#define NOBLIUM_PERMEABILITY_MOD 10 // best gas for cooling |
| 53 | + |
| 54 | +// Radiation types: increases radiation, lower is better |
| 55 | +#define NITROGEN_RAD_MOD 0.04 // mmm radiation |
| 56 | +#define CARBON_RAD_MOD 0.08 // even higher |
| 57 | +#define HYDROGEN_RAD_MOD 0.12 // getting a bit spicy there |
| 58 | +#define TRITIUM_RAD_MOD 0.2 // fuck that's a lot |
| 59 | +#define ANTINOBLIUM_RAD_MOD 10 // AAAAAAAAAAAAAAAAAAAA |
0 commit comments