equilibrium ![code/modules/reagents/chemistry/equilibrium.dm 13](git.png)
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 |
min_rate | Min reaction rate possible below which rounding errors occur |
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 ![code/modules/reagents/chemistry/equilibrium.dm 50](git.png)
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 ![code/modules/reagents/chemistry/equilibrium.dm 36](git.png)
How pure our step is
delta_t ![code/modules/reagents/chemistry/equilibrium.dm 34](git.png)
Result vars, private - do not edit unless in reaction_step() How much we're adding
h_ion_mod ![code/modules/reagents/chemistry/equilibrium.dm 44](git.png)
pH mod
holder ![code/modules/reagents/chemistry/equilibrium.dm 17](git.png)
The location/reagents datum the processing is taking place
min_rate ![code/modules/reagents/chemistry/equilibrium.dm 38](git.png)
Min reaction rate possible below which rounding errors occur
multiplier ![code/modules/reagents/chemistry/equilibrium.dm 19](git.png)
How much product we can make multiplied by the input recipe's products/required_reagents numerical values
product_ratio ![code/modules/reagents/chemistry/equilibrium.dm 21](git.png)
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 ![code/modules/reagents/chemistry/equilibrium.dm 27](git.png)
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 ![code/modules/reagents/chemistry/equilibrium.dm 15](git.png)
The chemical reaction that is presently being processed
reaction_quality ![code/modules/reagents/chemistry/equilibrium.dm 29](git.png)
What our last delta_ph was
speed_mod ![code/modules/reagents/chemistry/equilibrium.dm 42](git.png)
Modifiers from catalysts, do not use negative numbers. I should write a better handiler for modifying these Speed mod
step_target_vol ![code/modules/reagents/chemistry/equilibrium.dm 25](git.png)
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 ![code/modules/reagents/chemistry/equilibrium.dm 23](git.png)
The total possible that this reaction can make presently - used for gui outputs
thermic_mod ![code/modules/reagents/chemistry/equilibrium.dm 46](git.png)
Temp mod
time_deficit ![code/modules/reagents/chemistry/equilibrium.dm 48](git.png)
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 ![code/modules/reagents/chemistry/equilibrium.dm 31](git.png)
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