mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-03 22:22:31 +00:00
Merge pull request #3911 from KasparoVy/ipc-fbp-resolved
IPC-FBP Customization
This commit is contained in:
@@ -95,6 +95,10 @@
|
||||
if(!get_location_accessible(H, "mouth"))
|
||||
user << "<span class='warning'>The mask is in the way.</span>"
|
||||
return
|
||||
if(H.species && H.species.flags & ALL_RPARTS) //If the target is of a species that can have prosthetic heads, but doesn't have one...
|
||||
if(!H.client.prefs.rlimb_data["head"])
|
||||
user << "<span class='warning'>You find yourself disappointed at the appalling lack of facial hair.</span>"
|
||||
return
|
||||
if(H.f_style == "Shaved")
|
||||
user << "<span class='notice'>Already clean-shaven.</span>"
|
||||
return
|
||||
@@ -123,6 +127,10 @@
|
||||
if(!get_location_accessible(H, "head"))
|
||||
user << "<span class='warning'>The headgear is in the way.</span>"
|
||||
return
|
||||
if(H.species && H.species.flags & ALL_RPARTS) //If the target is of a species that can have prosthetic heads, but doesn't have one...
|
||||
if(!H.client.prefs.rlimb_data["head"])
|
||||
user << "<span class='warning'>You find yourself disappointed at the appalling lack of hair.</span>"
|
||||
return
|
||||
if(H.h_style == "Bald" || H.h_style == "Balding Hair" || H.h_style == "Skinhead")
|
||||
user << "<span class='notice'>There is not enough hair left to shave...</span>"
|
||||
return
|
||||
|
||||
@@ -34,8 +34,14 @@
|
||||
if(H.species)
|
||||
for(var/i in facial_hair_styles_list)
|
||||
var/datum/sprite_accessory/facial_hair/tmp_facial = facial_hair_styles_list[i]
|
||||
if(H.species.name in tmp_facial.species_allowed)
|
||||
if(H.species.name in tmp_facial.species_allowed) //If the species is allowed to have the style, add the style to the list. Or, if the character has a prosthetic head, give them the human hair styles.
|
||||
species_facial_hair += i
|
||||
else
|
||||
if(H.species.flags & ALL_RPARTS)
|
||||
if(("head" in H.client.prefs.rlimb_data) && ("Human" in tmp_facial.species_allowed))
|
||||
species_facial_hair += i
|
||||
else
|
||||
return
|
||||
else
|
||||
species_facial_hair = facial_hair_styles_list
|
||||
var/f_new_style = input(user, "Select a facial hair style", "Grooming") as null|anything in species_facial_hair
|
||||
@@ -44,8 +50,16 @@
|
||||
if(H.species)
|
||||
for(var/i in hair_styles_list)
|
||||
var/datum/sprite_accessory/hair/tmp_hair = hair_styles_list[i]
|
||||
if(H.species.name in tmp_hair.species_allowed)
|
||||
if(H.species.name in tmp_hair.species_allowed) //If the species is allowed to have the style, add the style to the list. Or, if the character has a prosthetic head, give them the human facial hair styles.
|
||||
if((H.species.flags & ALL_RPARTS) && !("head" in H.client.prefs.rlimb_data))
|
||||
return
|
||||
species_hair += i
|
||||
else
|
||||
if(H.species.flags & ALL_RPARTS)
|
||||
if(("head" in H.client.prefs.rlimb_data) && ("Human" in tmp_hair.species_allowed))
|
||||
species_facial_hair += i
|
||||
else
|
||||
return
|
||||
else
|
||||
species_hair = hair_styles_list
|
||||
var/h_new_style = input(user, "Select a hair style", "Grooming") as null|anything in species_hair
|
||||
|
||||
Reference in New Issue
Block a user