forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee4fed0
commit 5552873
Showing
13 changed files
with
79 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...cosmetics/code/accessories/accessories.dm → ...er/modular_quirks/breather/accessories.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
modular_doppler/modular_quirks/breather/water_breather/water_breather.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/datum/quirk/item_quirk/breather/water_breather | ||
name = "Water Breather" | ||
desc = "You have a pair of gills and are only capable of breathing oxygen through water, stay wet to breathe!" | ||
icon = FA_ICON_FISH | ||
medical_record_text = "Patient has a pair of gills on their body." | ||
gain_text = "<span class='danger'>You suddenly have a hard time breathing through thin air." | ||
lose_text = "<span class='notice'>You suddenly feel like you aren't bound to breathing through liquid anymore." | ||
value = 0 | ||
breath_type = "water" | ||
|
||
/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 | ||
|
||
give_item_to_holder(target_tag, list(LOCATION_BACKPACK = ITEM_SLOT_BACKPACK, LOCATION_HANDS = ITEM_SLOT_HANDS)) | ||
give_item_to_holder( | ||
/obj/item/clothing/accessory/vaporizer, | ||
list( | ||
LOCATION_HANDS = ITEM_SLOT_HANDS, | ||
LOCATION_LPOCKET = ITEM_SLOT_LPOCKET, | ||
LOCATION_RPOCKET = ITEM_SLOT_RPOCKET, | ||
LOCATION_BACKPACK = ITEM_SLOT_BACKPACK | ||
), "Be sure to equip your vaporizer, or you may end up choking to death!" | ||
) | ||
// if your lungs already have this trait, no need to update | ||
if(target_lungs.type == /obj/item/organ/internal/lungs/fish) | ||
return | ||
target_lungs.safe_oxygen_min = 0 | ||
// update lung procs | ||
target_lungs.breathe_always = list(/datum/gas/water_vapor = "breathe_water") | ||
// reflect correct lung flags | ||
target_lungs.respiration_type = RESPIRATION_OXYGEN | ||
// flavor | ||
target_lungs.AddElement(/datum/element/noticable_organ, "%PRONOUN_Theyve a set of gills on %PRONOUN_their neck.", BODY_ZONE_PRECISE_MOUTH) | ||
target_lungs.AddComponent(/datum/component/bubble_icon_override, "fish", BUBBLE_ICON_PRIORITY_ORGAN) | ||
target_chest.add_bodypart_overlay(new /datum/bodypart_overlay/simple/gills) |
24 changes: 0 additions & 24 deletions
24
modular_doppler/modular_quirks/nitrogen_breather/accessories.dm
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters