Skip to content

Commit

Permalink
uh i should put this here
Browse files Browse the repository at this point in the history
  • Loading branch information
carpotoxin committed Oct 20, 2024
1 parent 5552873 commit 5c11247
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

/datum/quirk/item_quirk/breather/nitrogen_breather/add_unique(client/client_source)
var/mob/living/carbon/human/target = quirk_holder
var/obj/item/organ/internal/lungs/target_lungs = target.get_organ_slot(ORGAN_SLOT_LUNGS)
var/obj/item/clothing/accessory/breathing/target_tag = new(get_turf(target))
target_tag.breath_type = breath_type

Expand All @@ -28,6 +27,10 @@
LOCATION_HANDS = ITEM_SLOT_HANDS
)
)
var/obj/item/organ/internal/lungs/target_lungs = target.get_organ_slot(ORGAN_SLOT_LUNGS)
if(!target_lungs)
to_chat(target, span_warning("Your [name] quirk couldn't properly execute due to your species/body lacking a pair of lungs!"))
return
// set lung vars
target_lungs.safe_oxygen_min = 0 //Dont need oxygen
target_lungs.safe_oxygen_max = 2 //But it is quite toxic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

/datum/quirk/item_quirk/breather/water_breather/add_unique(client/client_source)
var/mob/living/carbon/human/target = quirk_holder
var/obj/item/organ/internal/lungs/target_lungs = target.get_organ_slot(ORGAN_SLOT_LUNGS)
var/obj/item/bodypart/chest/target_chest = target.get_bodypart(BODY_ZONE_CHEST)
var/obj/item/clothing/accessory/breathing/target_tag = new(get_turf(target))
target_tag.breath_type = breath_type

Expand All @@ -25,6 +23,11 @@
LOCATION_BACKPACK = ITEM_SLOT_BACKPACK
), "Be sure to equip your vaporizer, or you may end up choking to death!"
)
var/obj/item/organ/internal/lungs/target_lungs = target.get_organ_slot(ORGAN_SLOT_LUNGS)
var/obj/item/bodypart/chest/target_chest = target.get_bodypart(BODY_ZONE_CHEST)
if(!target_lungs || !target_chest)
to_chat(target, span_warning("Your [name] quirk couldn't properly execute due to your species/body lacking a pair of lungs!"))
return
// if your lungs already have this trait, no need to update
if(target_lungs.type == /obj/item/organ/internal/lungs/fish)
return
Expand Down

0 comments on commit 5c11247

Please sign in to comment.