mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 23:17:28 +01:00
Merge pull request #10270 from Little-119/breather-traits
Add phoron and nitrogen breather traits, and water breather trait
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user