mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-25 22:28:00 +01:00
Streamline (Facial) Hair & Marking Character Customization
Adds the ability to shift to the previous or next facial hair style. The buttons are behind the style because this way you don't have to move your mouse when the style changes. If you click forward while on the last style, it'll shift to the first one. If you click backward while on the first style, it'll shift to the last one. For markings, you can now pick a marking and inject it infront of another so long as it isn't the one you picked, or the one directly behind in the list order.
This commit is contained in:
@@ -289,3 +289,29 @@
|
||||
break
|
||||
|
||||
return highJob
|
||||
|
||||
/datum/preferences/proc/get_valid_hairstyles()
|
||||
var/list/valid_hairstyles = list()
|
||||
for(var/hairstyle in hair_styles_list)
|
||||
var/datum/sprite_accessory/S = hair_styles_list[hairstyle]
|
||||
if(!(species in S.species_allowed))
|
||||
continue
|
||||
|
||||
valid_hairstyles[hairstyle] = hair_styles_list[hairstyle]
|
||||
|
||||
return valid_hairstyles
|
||||
|
||||
/datum/preferences/proc/get_valid_facialhairstyles()
|
||||
var/list/valid_facialhairstyles = list()
|
||||
for(var/facialhairstyle in facial_hair_styles_list)
|
||||
var/datum/sprite_accessory/S = facial_hair_styles_list[facialhairstyle]
|
||||
if(biological_gender == MALE && S.gender == FEMALE)
|
||||
continue
|
||||
if(biological_gender == FEMALE && S.gender == MALE)
|
||||
continue
|
||||
if(!(species in S.species_allowed))
|
||||
continue
|
||||
|
||||
valid_facialhairstyles[facialhairstyle] = facial_hair_styles_list[facialhairstyle]
|
||||
|
||||
return valid_facialhairstyles
|
||||
|
||||
Reference in New Issue
Block a user