mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-26 09:03:37 +00:00
Fixed the magic text failing in monkey injectors Removed lots of comments Didnt fix mysterious list bounds runtime in tourettes
33 lines
893 B
Plaintext
33 lines
893 B
Plaintext
/proc/setupgenetics()
|
|
|
|
var/list/avnums = new /list(DNA_STRUC_ENZYMES_BLOCKS)
|
|
for(var/i=1, i<=DNA_STRUC_ENZYMES_BLOCKS, i++)
|
|
avnums[i] = i
|
|
|
|
for(var/A in typesof(/datum/mutation/human) - /datum/mutation/human)
|
|
var/datum/mutation/human/B = new A()
|
|
if(B.dna_block == NON_SCANNABLE) return
|
|
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
|
|
|
|
/proc/setupfactions()
|
|
|
|
// Populate the factions list:
|
|
for(var/x in typesof(/datum/faction))
|
|
var/datum/faction/F = new x
|
|
if(!F.name)
|
|
del(F)
|
|
continue
|
|
else
|
|
ticker.factions.Add(F)
|
|
ticker.availablefactions.Add(F)
|
|
|
|
// Populate the syndicate coalition:
|
|
for(var/datum/faction/syndicate/S in ticker.factions)
|
|
ticker.syndicate_coalition.Add(S)
|