mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Merge branch 'master' of https://github.com/tgstation/tgstation into xpokee-test-upstream-sync
This commit is contained in:
@@ -82,8 +82,8 @@
|
||||
if(human.stat || human.body_position == LYING_DOWN || isnull(human.client))
|
||||
return FALSE
|
||||
//Jumpsuits have tail holes, so it makes sense they have wing holes too
|
||||
if(!cant_hide && human.wear_suit && ((human.wear_suit.flags_inv & HIDEJUMPSUIT) && (!human.wear_suit.species_exception || !is_type_in_list(src, human.wear_suit.species_exception))))
|
||||
to_chat(human, span_warning("Your suit blocks your wings from extending!"))
|
||||
if(!cant_hide && (human.obscured_slots & HIDEJUMPSUIT))
|
||||
to_chat(human, span_warning("Your clothing blocks your wings from extending!"))
|
||||
return FALSE
|
||||
var/turf/location = get_turf(human)
|
||||
if(!location)
|
||||
|
||||
+2
-11
@@ -54,11 +54,7 @@
|
||||
return FALSE
|
||||
if(owner.has_gravity())
|
||||
return FALSE
|
||||
if(ishuman(owner))
|
||||
var/mob/living/carbon/human/human_owner = owner
|
||||
if(human_owner.wear_suit?.flags_inv & HIDEMUTWINGS)
|
||||
return FALSE //Can't fly with hidden wings
|
||||
if(burnt)
|
||||
if((owner.obscured_slots & HIDEMUTWINGS) || burnt)
|
||||
return FALSE
|
||||
var/datum/gas_mixture/current = owner.loc.return_air()
|
||||
if(current && (current.return_pressure() >= ONE_ATMOSPHERE*0.85))
|
||||
@@ -119,12 +115,7 @@
|
||||
if(!.)
|
||||
return
|
||||
// BUBBER EDIT ADDITION END - Customization
|
||||
var/mob/living/carbon/human/human = bodypart_owner.owner
|
||||
if(!istype(human))
|
||||
return TRUE
|
||||
if(human.wear_suit?.flags_inv & HIDEMUTWINGS)
|
||||
return FALSE
|
||||
return TRUE
|
||||
return !(bodypart_owner.owner?.obscured_slots & HIDEMUTWINGS)
|
||||
|
||||
/datum/bodypart_overlay/mutant/wings/moth/get_base_icon_state()
|
||||
return burnt ? burn_datum.icon_state : sprite_datum.icon_state
|
||||
|
||||
+1
-11
@@ -25,14 +25,4 @@
|
||||
feature_key = FEATURE_WINGS
|
||||
|
||||
/datum/bodypart_overlay/mutant/wings/can_draw_on_bodypart(obj/item/bodypart/bodypart_owner)
|
||||
var/mob/living/carbon/human/human = bodypart_owner.owner
|
||||
if(!istype(human))
|
||||
return TRUE
|
||||
if(!human.wear_suit)
|
||||
return TRUE
|
||||
if(!(human.wear_suit.flags_inv & HIDEJUMPSUIT))
|
||||
return TRUE
|
||||
if(human.wear_suit.species_exception && is_type_in_list(src, human.wear_suit.species_exception))
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
return !(bodypart_owner.owner?.obscured_slots & HIDEJUMPSUIT)
|
||||
|
||||
Reference in New Issue
Block a user