mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* Steals tg's span macros * Fix alphabet * Updated some more spans * Misses a conflict * Fix compile errors * Converts more spans * oops
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
//Cold Resistance gives your entire body an orange halo, and makes you immune to the effects of vacuum and cold.
|
|
/datum/mutation/human/space_adaptation
|
|
name = "Space Adaptation"
|
|
desc = "A strange mutation that renders the host immune to the vacuum of space. Will still need an oxygen supply."
|
|
quality = POSITIVE
|
|
difficulty = 16
|
|
text_gain_indication = span_notice("Your body feels warm!")
|
|
time_coeff = 5
|
|
instability = 40
|
|
conflicts = list(HEATMUT)
|
|
|
|
/datum/mutation/human/space_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/space_adaptation/get_visual_indicator()
|
|
return visual_indicators[type][1]
|
|
|
|
/datum/mutation/human/space_adaptation/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
ADD_TRAIT(owner, TRAIT_RESISTCOLD, "space_adaptation")
|
|
ADD_TRAIT(owner, TRAIT_RESISTLOWPRESSURE, "space_adaptation")
|
|
ADD_TRAIT(owner, TRAIT_NO_PASSIVE_COOLING, "space_adaptation")
|
|
|
|
/datum/mutation/human/space_adaptation/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
REMOVE_TRAIT(owner, TRAIT_RESISTCOLD, "space_adaptation")
|
|
REMOVE_TRAIT(owner, TRAIT_RESISTLOWPRESSURE, "space_adaptation")
|
|
REMOVE_TRAIT(owner, TRAIT_NO_PASSIVE_COOLING, "space_adaptation")
|
|
|