mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Merge pull request #8776 from Xhuis/its_time_for_slimeperson_on_slimeperson_action
Adds an additional effect to green slime cores
This commit is contained in:
@@ -395,6 +395,34 @@ datum/reagent/slimetoxin
|
||||
description = "A corruptive toxin produced by slimes."
|
||||
color = "#13BC5E" // rgb: 19, 188, 94
|
||||
|
||||
datum/reagent/unstableslimetoxin
|
||||
name = "Unstable Mutation Toxin"
|
||||
id = "unstablemutationtoxin"
|
||||
description = "An unstable and unpredictable corruptive toxin produced by slimes."
|
||||
color = "#5EFF3B" //RGB: 94, 255, 59
|
||||
metabolization_rate = INFINITY //So it instantly removes all of itself
|
||||
|
||||
datum/reagent/unstableslimetoxin/on_mob_life(var/mob/living/carbon/human/H as mob)
|
||||
..()
|
||||
H << "<span class='warning'><b>You crumple in agony as your flesh wildly morphs into new forms!</b></span>"
|
||||
H.visible_message("<b>[H]</b> falls to the ground and screams as their skin bubbles and froths!") //'froths' sounds painful when used with SKIN.
|
||||
H.Weaken(3)
|
||||
sleep(30)
|
||||
var/list/blacklisted_species = list(/datum/species/zombie, /datum/species/skeleton, /datum/species/human, /datum/species/golem, /datum/species/golem/adamantine, /datum/species/shadow)
|
||||
var/list/possible_morphs = typesof(/datum/species/) - blacklisted_species
|
||||
var/datum/species/mutation = pick(possible_morphs)
|
||||
if(prob(90) && mutation && H.dna.species != /datum/species/golem && H.dna.species != /datum/species/golem/adamantine)
|
||||
H << "<span class='danger'>The pain subsides. You feel... different.</span>"
|
||||
H.dna.species = new mutation()
|
||||
H.regenerate_icons()
|
||||
if(mutation == /datum/species/slime)
|
||||
H.faction |= "slime"
|
||||
else
|
||||
H.faction -= "slime"
|
||||
else
|
||||
H << "<span class='danger'>The pain vanishes suddenly. You feel no different.</span>"
|
||||
return 1
|
||||
|
||||
datum/reagent/aslimetoxin
|
||||
name = "Advanced Mutation Toxin"
|
||||
id = "amutationtoxin"
|
||||
|
||||
@@ -473,6 +473,19 @@ datum/chemical_reaction/pestkiller
|
||||
/datum/chemical_reaction/slimemutate/on_reaction(var/datum/reagents/holder)
|
||||
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
|
||||
|
||||
//Mutated Green
|
||||
/datum/chemical_reaction/slimemutate_unstable
|
||||
name = "Unstable Mutation Toxin"
|
||||
id = "unstablemutationtoxin"
|
||||
result = "unstablemutationtoxin"
|
||||
required_reagents = list("radium" = 1)
|
||||
result_amount = 1
|
||||
required_other = 1
|
||||
required_container = /obj/item/slime_extract/green
|
||||
mix_message = "<span class='info'>The mixture rapidly expands and contracts, its appearance shifting into a sickening green.</span>"
|
||||
/datum/chemical_reaction/slimemutate_unstable/on_reaction(var/datum/reagents/holder)
|
||||
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
|
||||
|
||||
//Metal
|
||||
/datum/chemical_reaction/slimemetal
|
||||
name = "Slime Metal"
|
||||
|
||||
Reference in New Issue
Block a user