Merge pull request #10270 from Little-119/breather-traits

Add phoron and nitrogen breather traits, and water breather trait
This commit is contained in:
Novacat
2021-06-23 12:36:02 -04:00
committed by GitHub
5 changed files with 54 additions and 18 deletions
@@ -84,6 +84,7 @@
var/sizemult
var/weight
var/aflags
var/breath_type = "oxygen"
/datum/transhuman/body_record/New(var/copyfrom, var/add_to_db = 0, var/ckeylock = 0)
..()
@@ -120,6 +121,7 @@
sizemult = M.size_multiplier
weight = M.weight
aflags = M.appearance_flags
breath_type = M.species.breath_type
//Probably should
M.dna.check_integrity()
+15
View File
@@ -69,6 +69,21 @@
else if(status == 3) //Digital organ
I.digitize()
//Give breathing equipment if needed
if(current_project.breath_type != "oxygen")
H.equip_to_slot_or_del(new /obj/item/clothing/mask/breath(H), slot_wear_mask)
var/obj/item/weapon/tank/tankpath
if(current_project.breath_type == "phoron")
tankpath = /obj/item/weapon/tank/vox
else
tankpath = text2path("/obj/item/weapon/tank/" + current_project.breath_type)
if(tankpath)
H.equip_to_slot_or_del(new tankpath(H), slot_back)
H.internal = H.back
if(istype(H.internal,/obj/item/weapon/tank) && H.internals)
H.internals.icon_state = "internal1"
occupant = H
//Set the name or generate one