mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] Better Block Injectors (#10155)
Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f61f843f8b
commit
afcfb135a8
@@ -23,8 +23,10 @@ GLOBAL_LIST_EMPTY_TYPED(dna_genes_bad, /datum/gene/trait)
|
||||
/proc/get_gene_from_trait(var/trait_path) // ALWAYS USE THIS
|
||||
RETURN_TYPE(/datum/gene/trait)
|
||||
var/G = GLOB.trait_to_dna_genes[trait_path]
|
||||
#ifndef UNIT_TEST
|
||||
if(!G) // This SHOULD NOT HAPPEN, be sure any viruses or injectors that give trait paths are actually traitgenes.
|
||||
stack_trace("[trait_path] was used as a traitgene, without being flagged as one.")
|
||||
#endif
|
||||
return G
|
||||
|
||||
/datum/dna
|
||||
|
||||
Reference in New Issue
Block a user