Minor mask tweaks, adds alt_head mask refitting, adds fitted versions of unathi masks for the new alt head.

The alt_head mask refitting system works like this: If the player has an alt_head that's not "None", the system will look for an icon state in the most relevant mask icon file that has the mask's icon state and alt_head suffix ("[wear_mask.icon_state]_[alternate_head.suffix]") and, if it exists ([(alternate_head && ("[wear_mask.icon_state]_[alternate_head.suffix]" in mask_icon.IconStates())) ? "_[alternate_head.suffix]" : ""]") the mask sprite that will appear on the character will have that icon state. If it doesn't exist, the mask sprite that will appear on the character will have the default icon state for the mask object.
This commit is contained in:
KasparoVy
2016-08-17 08:19:52 -04:00
parent e0bfbd0af6
commit d7b7df692a
8 changed files with 19 additions and 5 deletions
@@ -2349,6 +2349,7 @@
icon = null
icon_state = null
species_allowed = null
var/suffix = null
/datum/sprite_accessory/alt_heads/none
name = "None"
@@ -2360,3 +2361,4 @@
name = "Unathi Sharp Snout"
species_allowed = list("Unathi")
icon_state = "head_sharp"
suffix = "sharp"