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_ph | How pure our step is |
delta_t | Result vars, private - do not edit unless in reaction_step() How much we're adding |
h_ion_mod | pH mod |
holder | The location/reagents datum the processing is taking place |
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 |
reaction_quality | What our last delta_ph was |
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 | |
check_reagent_properties | Check to make sure our input vars are sensible |
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_ph
How pure our step is
delta_t
Result vars, private - do not edit unless in reaction_step() How much we're adding
h_ion_mod
pH mod
holder
The location/reagents datum the processing is taking place
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
reaction_quality
What our last delta_ph was
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
check_reagent_properties
Check to make sure our input vars are sensible
- Is our atom in which this reaction is occuring still intact?
- Do we still have reagents to react with
- Do we have the required catalysts? If you're adding more checks for reactions, this is the proc to edit otherwise, generally, don't call this directed except internally