equilibrium

Vars | |
data | Used to store specific data needed for a reaction, usually used to keep track of things between explosion calls. CANNOT be used as a part of chemical_recipe - those vars are static lookup tables. |
---|---|
delta_t | Result vars, private - do not edit unless in reaction_step() How much we're adding |
holder | The location/reagents datum the processing is taking place |
last_tick_overheating | Tracks if we were overheating last tick or not. |
multiplier | How much product we can make multiplied by the input recipe's products/required_reagents numerical values |
product_ratio | The sum total of each of the product's numerical's values. This is so the addition/deletion is kept at the right values for multiple product reactions |
reacted_vol | How much of the reaction has been made so far. Mostly used for subprocs, but it keeps track across the whole reaction and is added to every step. |
reaction | The chemical reaction that is presently being processed |
speed_mod | Modifiers from catalysts, do not use negative numbers. I should write a better handiler for modifying these Speed mod |
step_target_vol | The target volume the reaction is headed towards. This is updated every tick, so isn't the total value for the reaction, it's just a way to ensure we can't make more than is possible. |
target_vol | The total possible that this reaction can make presently - used for gui outputs |
thermic_mod | Temp mod |
time_deficit | Allow us to deal with lag by "charging" up our reactions to react faster over a period - this means that the reaction doesn't suddenly mass react - which can cause explosions |
to_delete | If we're done with this reaction so that holder can clear it. |
Procs | |
force_clear_reactive_agents | Panic stop a reaction - cleanup should be handled by the next timestep |
Var Details
data

Used to store specific data needed for a reaction, usually used to keep track of things between explosion calls. CANNOT be used as a part of chemical_recipe - those vars are static lookup tables.
delta_t

Result vars, private - do not edit unless in reaction_step() How much we're adding
holder

The location/reagents datum the processing is taking place
last_tick_overheating

Tracks if we were overheating last tick or not.
multiplier

How much product we can make multiplied by the input recipe's products/required_reagents numerical values
product_ratio

The sum total of each of the product's numerical's values. This is so the addition/deletion is kept at the right values for multiple product reactions
reacted_vol

How much of the reaction has been made so far. Mostly used for subprocs, but it keeps track across the whole reaction and is added to every step.
reaction

The chemical reaction that is presently being processed
speed_mod

Modifiers from catalysts, do not use negative numbers. I should write a better handiler for modifying these Speed mod
step_target_vol

The target volume the reaction is headed towards. This is updated every tick, so isn't the total value for the reaction, it's just a way to ensure we can't make more than is possible.
target_vol

The total possible that this reaction can make presently - used for gui outputs
thermic_mod

Temp mod
time_deficit

Allow us to deal with lag by "charging" up our reactions to react faster over a period - this means that the reaction doesn't suddenly mass react - which can cause explosions
to_delete

If we're done with this reaction so that holder can clear it.
Proc Details
force_clear_reactive_agents
Panic stop a reaction - cleanup should be handled by the next timestep