/tg/ Station 13 - Modules - TypesVar Details - Proc Details

/datum/chemical_reaction

#Chemical Reaction

Datum that makes the magic between reagents happen.

Chemical reactions is a class that is instantiated and stored in a global list 'chemical_reactions_list'

Vars

is_cold_recipeSet to TRUE if you want the recipe to only react when it's BELOW the required temp.
mix_messageThe message shown to nearby people upon mixing, if applicable
mix_soundThe sound played upon mixing, if applicable
mob_reactDetermines if a chemical reaction can occur inside a mob
required_catalystsRequired chemicals that must be present in the container but are not USED.
required_containerthe exact container path required for the reaction to happen
required_otheran integer required for the reaction to happen
required_reagentsRequired chemicals that are USED in the reaction
required_tempRequired temperature for the reaction to begin
resultsResults of the chemical reactions

Procs

chemical_mob_spawnMagical mob spawning when chemicals react
on_reactionShit that happens on reaction
update_infoUpdates information during the roundstart

Var Details

is_cold_recipe

Set to TRUE if you want the recipe to only react when it's BELOW the required temp.

mix_message

The message shown to nearby people upon mixing, if applicable

mix_sound

The sound played upon mixing, if applicable

mob_react

Determines if a chemical reaction can occur inside a mob

required_catalysts

Required chemicals that must be present in the container but are not USED.

required_container

the exact container path required for the reaction to happen

required_other

an integer required for the reaction to happen

required_reagents

Required chemicals that are USED in the reaction

required_temp

Required temperature for the reaction to begin

results

Results of the chemical reactions

Proc Details

chemical_mob_spawn

Magical mob spawning when chemicals react

Your go to proc when you want to create new mobs from chemicals. please dont use on_reaction. Arguments:

on_reaction

Shit that happens on reaction

Proc where the additional magic happens. You dont want to handle mob spawning in this since there is a dedicated proc for that.client Arguments:

update_info

Updates information during the roundstart

This proc is mainly used by explosives but can be used anywhere else You should generally use the special reactions in /datum/chemical_reaction/randomized But for simple variable edits, like changing the temperature or adding/subtracting required reagents it is better to use this.