/datum/chemical_reaction

Vars | |
consume_all | If set to 1, the recipe will consume ALL of its components instead of just proportional parts. |
---|---|
drinkrecipe | Is the result a drink? |
eventual_result | Used for complex reactions to show what they actually produce at the end (chem request console needs this) Can be a list or a single string ID |
hidden | should this reaction show up in anything player-facing that lists reactions. For secret repo chems, misc precursors, and for 'non-standard' reactions (stuff like voltagen arc, foam reacting with water, etc) |
max_temperature | Will not react if above this |
min_temperature | Will not react if below this |
reaction_icon_state | added to the temperature on reaction, can be negative to remove heat |
reaction_speed | units produced per second |
special_log_handling | Logs the contents of the reagent holder's container in addition to the reaction itself. Used for foam and smoke (Convair880). |
stateful | If TRUE, a separate instance of the reaction will be created for the duration of the active reaction, otherwise a singleton will be used Only makes sense for non-instant reactions |
Procs | |
does_react | Special conditions unique to the reaction |
on_end_reaction | Called when a non-instant reaction ends, not called for instant reactions |
on_reaction | Called when something reacts or every tick while it is reacting |
physical_shock | Called when a holder filled with a current (non-instant) reaction experiences physical shock |
Var Details
consume_all

If set to 1, the recipe will consume ALL of its components instead of just proportional parts.
drinkrecipe

Is the result a drink?
eventual_result

Used for complex reactions to show what they actually produce at the end (chem request console needs this) Can be a list or a single string ID
hidden

should this reaction show up in anything player-facing that lists reactions. For secret repo chems, misc precursors, and for 'non-standard' reactions (stuff like voltagen arc, foam reacting with water, etc)
max_temperature

Will not react if above this
min_temperature

Will not react if below this
reaction_icon_state

added to the temperature on reaction, can be negative to remove heat
reaction_speed

units produced per second
special_log_handling

Logs the contents of the reagent holder's container in addition to the reaction itself. Used for foam and smoke (Convair880).
stateful

If TRUE, a separate instance of the reaction will be created for the duration of the active reaction, otherwise a singleton will be used Only makes sense for non-instant reactions
Proc Details
does_react
Special conditions unique to the reaction
on_end_reaction
Called when a non-instant reaction ends, not called for instant reactions
on_reaction
Called when something reacts or every tick while it is reacting
physical_shock
Called when a holder filled with a current (non-instant) reaction experiences physical shock