mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-31 12:01:47 +00:00
* Gamemode code improvement, initial commit * Wraps up announce messages and removes Henderson * Fixes an incomplete comment
19 lines
553 B
Plaintext
19 lines
553 B
Plaintext
/datum/subsystem/objects/proc/setupGenetics()
|
|
var/list/avnums = new /list(DNA_STRUC_ENZYMES_BLOCKS)
|
|
for(var/i=1, i<=DNA_STRUC_ENZYMES_BLOCKS, i++)
|
|
avnums[i] = i
|
|
CHECK_TICK
|
|
|
|
for(var/A in subtypesof(/datum/mutation/human))
|
|
var/datum/mutation/human/B = new A()
|
|
if(B.dna_block == NON_SCANNABLE)
|
|
continue
|
|
B.dna_block = pick_n_take(avnums)
|
|
if(B.quality == POSITIVE)
|
|
good_mutations |= B
|
|
else if(B.quality == NEGATIVE)
|
|
bad_mutations |= B
|
|
else if(B.quality == MINOR_NEGATIVE)
|
|
not_good_mutations |= B
|
|
CHECK_TICK
|