Files
Bubberstation/code/datums/mutations/adaptation.dm
T
SkyratBot 6d2fc24f22 [MIRROR] splits space adaptation into two mutations [MDB IGNORE] (#9440)
* splits space adaptation into two mutations

* Feex

Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com>
Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
2021-11-14 14:02:44 -05:00

60 lines
2.4 KiB
Plaintext

/datum/mutation/human/temperature_adaptation
name = "Temperature Adaptation"
desc = "A strange mutation that renders the host immune to damage from extreme temperatures. Does not protect from vacuums."
quality = POSITIVE
difficulty = 16
text_gain_indication = "<span class='notice'>Your body feels warm!</span>"
time_coeff = 5
instability = 25
conflicts = list(PRESSUREADAPT)
/datum/mutation/human/temperature_adaptation/New(class_ = MUT_OTHER, timer, datum/mutation/human/copymut)
..()
if(!(type in visual_indicators))
visual_indicators[type] = list(mutable_appearance('icons/effects/genetics.dmi', "fire", -MUTATIONS_LAYER))
/datum/mutation/human/temperature_adaptation/get_visual_indicator()
return visual_indicators[type][1]
/datum/mutation/human/temperature_adaptation/on_acquiring(mob/living/carbon/human/owner)
if(..())
return
ADD_TRAIT(owner, TRAIT_RESISTCOLD, GENETIC_MUTATION)
ADD_TRAIT(owner, TRAIT_RESISTHEAT, GENETIC_MUTATION)
/datum/mutation/human/temperature_adaptation/on_losing(mob/living/carbon/human/owner)
if(..())
return
REMOVE_TRAIT(owner, TRAIT_RESISTCOLD, GENETIC_MUTATION)
REMOVE_TRAIT(owner, TRAIT_RESISTHEAT, GENETIC_MUTATION)
/datum/mutation/human/pressure_adaptation
name = "Pressure Adaptation"
desc = "A strange mutation that renders the host immune to damage from both low and high pressure environments. Does not protect from temperature, including the cold of space."
quality = POSITIVE
difficulty = 16
text_gain_indication = "<span class='notice'>Your body feels numb!</span>"
time_coeff = 5
instability = 25
conflicts = list(TEMPADAPT)
/datum/mutation/human/pressure_adaptation/New(class_ = MUT_OTHER, timer, datum/mutation/human/copymut)
..()
if(!(type in visual_indicators))
visual_indicators[type] = list(mutable_appearance('icons/effects/genetics.dmi', "pressure", -MUTATIONS_LAYER))
/datum/mutation/human/pressure_adaptation/get_visual_indicator()
return visual_indicators[type][1]
/datum/mutation/human/pressure_adaptation/on_acquiring(mob/living/carbon/human/owner)
if(..())
return
ADD_TRAIT(owner, TRAIT_RESISTLOWPRESSURE, GENETIC_MUTATION)
ADD_TRAIT(owner, TRAIT_RESISTHIGHPRESSURE, GENETIC_MUTATION)
/datum/mutation/human/pressure_adaptation/on_losing(mob/living/carbon/human/owner)
if(..())
return
REMOVE_TRAIT(owner, TRAIT_RESISTLOWPRESSURE, GENETIC_MUTATION)
REMOVE_TRAIT(owner, TRAIT_RESISTHIGHPRESSURE, GENETIC_MUTATION)