Skip to content

Commit d88b9b6

Browse files
authored
Fixes Eigenstasium creation (#348)
* readd eigenstasium reaction * remove outdated comments * remove more outdated comments * fix location saving * add a temp requirement
1 parent 3283247 commit d88b9b6

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

code/modules/reagents/chemistry/recipes.dm

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@
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

code/modules/reagents/chemistry/recipes/others.dm

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,3 +676,23 @@
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)

0 commit comments

Comments
 (0)