24 lines
815 B
Plaintext
24 lines
815 B
Plaintext
/datum/generecipe
|
|
var/required = "" //it hurts so bad but initial is not compatible with lists
|
|
var/result = null
|
|
|
|
/proc/get_mixed_mutation(mutation1, mutation2)
|
|
if(!mutation1 || !mutation2)
|
|
return FALSE
|
|
if(mutation1 == mutation2) //this could otherwise be bad
|
|
return FALSE
|
|
for(var/A in GLOB.mutation_recipes)
|
|
if(findtext(A, "[mutation1]") && findtext(A, "[mutation2]"))
|
|
return GLOB.mutation_recipes[A]
|
|
|
|
/datum/generecipe/x_ray
|
|
required = "/datum/mutation/human/thermal; /datum/mutation/human/radioactive"
|
|
result = /datum/mutation/human/thermal/x_ray
|
|
|
|
/datum/generecipe/shock
|
|
required = "/datum/mutation/human/insulated; /datum/mutation/human/radioactive"
|
|
result = SHOCKTOUCH
|
|
|
|
/datum/generecipe/mindread
|
|
required = "/datum/mutation/human/antenna; /datum/mutation/human/paranoia"
|
|
result = MINDREAD |