Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f7f13c9

Browse filesBrowse files
authored
Phytosian now get their own lungs able to breathe CO2 (yogstation13#16085)
* Add the new plant lungs * let's not break polys lungs make the breath code actually apply to the plant lungs instead of the xeno lungs * Give phytosian plant lungs * Add files via upload * Delete surgery.dmi * Add files via upload God I am such a shitcoder * Update lungs.dm * Make the mesophyll taste like veggies and fruit. This mean moths can eat the lungs of their rivals for the sentient lightbulbs and that lizards won't like eating this. * Fix
1 parent e06463d commit f7f13c9
Copy full SHA for f7f13c9

3 files changed

+31Lines changed: 31 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎yogstation/code/modules/mob/living/carbon/human/species_types/plantpeople.dm‎

Copy file name to clipboardExpand all lines: yogstation/code/modules/mob/living/carbon/human/species_types/plantpeople.dm
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
punchdamagehigh = 8 //sorry anvil your balance choice was wrong imo and I WILL be changing this soon.
2222
punchstunthreshold = 9
2323
payday_modifier = 0.7 //Neutrally viewed by NT
24+
mutantlungs = /obj/item/organ/lungs/plant //let them breathe CO2
2425
meat = /obj/item/reagent_containers/food/snacks/meat/slab/human/mutant/plant
2526
disliked_food = MEAT | DAIRY | MICE | VEGETABLES | FRUIT | GRAIN | JUNKFOOD | FRIED | RAW | GROSS | BREAKFAST | GRILLED | EGG | CHOCOLATE | SEAFOOD | CLOTH
2627
toxic_food = ALCOHOL
Collapse file

‎yogstation/code/modules/surgery/organs/lungs.dm‎

Copy file name to clipboardExpand all lines: yogstation/code/modules/surgery/organs/lungs.dm
+30Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,33 @@
1212
SA_sleep_min = 5
1313
BZ_trip_balls_min = 1
1414
gas_stimulation_min = 0.002
15+
16+
/obj/item/organ/lungs/plant
17+
name = "mesophyll"
18+
desc = "A lung-shaped organ playing a key role in phytosian's photosynthesis." //phytosians don't need that for their light healing so that's just flavor, I might try to tie their light powers to it later(tm)
19+
icon = 'yogstation/icons/obj/surgery.dmi'
20+
icon_state = "lungs-plant"
21+
22+
safe_co2_max = 0 //make them not choke on CO2 so they can actually breathe it
23+
oxygen_substitutes = list(/datum/gas/pluoxium = 8, /datum/gas/carbon_dioxide = 1) //able of using CO2 AND oxygen to breathe
24+
25+
/obj/item/organ/lungs/plant/check_breath(datum/gas_mixture/breath, mob/living/carbon/human/H) //Directly taken from the xenos lungs
26+
. = ..()
27+
if(breath)
28+
var/breath_amt = breath.get_moles(/datum/gas/carbon_dioxide)
29+
breath.adjust_moles(/datum/gas/carbon_dioxide, -breath_amt)
30+
breath.adjust_moles(/datum/gas/oxygen, breath_amt)
31+
32+
/obj/item/organ/lungs/plant/prepare_eat()
33+
var/obj/item/reagent_containers/food/snacks/organ/plant_lung/S = new
34+
S.name = name
35+
S.desc = desc
36+
S.icon = icon
37+
S.icon_state = icon_state
38+
S.w_class = w_class
39+
40+
return S
41+
42+
/obj/item/reagent_containers/food/snacks/organ/plant_lung
43+
list_reagents = list(/datum/reagent/consumable/nutriment = 5, /datum/reagent/medicine/salbutamol = 5)
44+
foodtype = VEGETABLES | FRUIT
Collapse file

‎yogstation/icons/obj/surgery.dmi‎

Copy file name to clipboard
179 Bytes
Binary file not shown.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.