File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed
code/modules/reagents/chemistry Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 4949
5050/* *
5151 * Shit that happens on reaction
52- * Only procs at the START of a reaction
53- * use reaction_step() for each step of a reaction
54- * or reaction_end() when the reaction stops
55- * If reaction_flags & REACTION_INSTANT then this is the only proc that is called.
5652 *
5753 * Proc where the additional magic happens.
5854 * You dont want to handle mob spawning in this since there is a dedicated proc for that.client
Original file line number Diff line number Diff line change 676676 for (var /i in rand (1 , created_volume) to created_volume)
677677 new / mob / living/ simple_animal/ ant(location)
678678 .. ()
679+
680+ / datum / chemical_reaction/ eigenstate
681+ results = list (/ datum / reagent/ eigenstate = 1 )
682+ required_reagents = list (/ datum / reagent/ bluespace = 1 , / datum / reagent/ stable_plasma = 1 , / datum / reagent/ consumable/ caramel = 1 )
683+ required_temp = 350
684+ mix_message = " the reaction zaps suddenly!"
685+ mix_sound = ' sound/chemistry/bluespace.ogg'
686+
687+ / datum / chemical_reaction/ eigenstate/ on_reaction( datum / reagents/ holder, react_vol)
688+ . = .. ()
689+ var /turf /open/location = get_turf(holder. my_atom)
690+
691+ var /datum /reagent/eigenstate/eigen = holder. has_reagent(/ datum / reagent/ eigenstate)
692+ if (! eigen)
693+ return
694+ if (location)
695+ eigen. location_created = location
696+ eigen. data[" location_created" ] = location
697+
698+ do_sparks (5 ,FALSE ,location)
You can’t perform that action at this time.
0 commit comments