mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[MIRROR] Some more harddel fixes (#4836)
* Some more harddel fixes (#58305) * Some more harddel fixes Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
co-authored by
LemonInTheDark
parent
5deed8a5a9
commit
7e00730859
@@ -6,8 +6,8 @@
|
||||
build_chemical_reactions_lists()
|
||||
build_chemical_reagent_list()
|
||||
|
||||
for(var/I in GLOB.chemical_reactions_list)
|
||||
for(var/V in GLOB.chemical_reactions_list[I])
|
||||
for(var/I in GLOB.chemical_reactions_list_reactant_index)
|
||||
for(var/V in GLOB.chemical_reactions_list_reactant_index[I])
|
||||
var/datum/chemical_reaction/R = V
|
||||
for(var/id in (R.required_reagents + R.required_catalysts))
|
||||
if(!GLOB.chemical_reagents_list[id])
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
/datum/unit_test/reagent_recipe_collisions/Run()
|
||||
build_chemical_reactions_lists()
|
||||
var/list/reactions = list()
|
||||
for(var/V in GLOB.chemical_reactions_list)
|
||||
reactions += GLOB.chemical_reactions_list[V]
|
||||
for(var/V in GLOB.chemical_reactions_list_reactant_index)
|
||||
reactions += GLOB.chemical_reactions_list_reactant_index[V]
|
||||
for(var/i in 1 to (reactions.len-1))
|
||||
for(var/i2 in (i+1) to reactions.len)
|
||||
var/datum/chemical_reaction/r1 = reactions[i]
|
||||
|
||||
Reference in New Issue
Block a user