From 0366c76bdf975dd1672c1914f935d4c40e0b772e Mon Sep 17 00:00:00 2001 From: ariaworld Date: Sat, 2 Sep 2023 00:51:21 +0200 Subject: [PATCH] Vacuum Resistance quirk. --- modular_splurt/code/datums/traits/good.dm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/modular_splurt/code/datums/traits/good.dm b/modular_splurt/code/datums/traits/good.dm index eb557e3ddc..826faf08f3 100644 --- a/modular_splurt/code/datums/traits/good.dm +++ b/modular_splurt/code/datums/traits/good.dm @@ -255,3 +255,23 @@ // Quirk examine text. /datum/quirk/hallowed/proc/quirk_examine_Hallowed(atom/examine_target, mob/living/carbon/human/examiner, list/examine_list) examine_list += "[quirk_holder.p_they(TRUE)] radiates divine power..." + +/datum/quirk/vacuum_resistance + name = "Vacuum Resistance" + desc = "Your body, whether due to technology, magic, or genetic engineering - is specially adapted to withstand and operate in the vacuum of space. You may still need a source of breathable air, however." + value = 3 + gain_text = span_notice("Your physique attunes to the silence of space, now able to operate in zero pressure.") + lose_text = span_notice("Your physiology reverts as your spacefaring gifts lay dormant once more.") + var/list/perks = list(TRAIT_RESISTCOLD, TRAIT_RESISTLOWPRESSURE) + +/datum/quirk/vacuum_resistance/add() + . = ..() + var/mob/living/carbon/human/H = quirk_holder + for(var/A = 1, A <= perks.len, A++) + ADD_TRAIT(H, perks[A], ROUNDSTART_TRAIT) + +/datum/quirk/vacuum_resistance/remove() + . = ..() + var/mob/living/carbon/human/H = quirk_holder + for(var/A = 1, A <= perks.len, A++) + REMOVE_TRAIT(H, perks[A], ROUNDSTART_TRAIT)