Unfucks uniforms (real). And adds a code comment to hopefully prevent this happening again. (#67723)

This commit is contained in:
Kapu1178
2022-06-11 23:03:18 -04:00
committed by GitHub
parent b6426c8690
commit e07e5f1a9b
@@ -154,7 +154,12 @@ There are several things that need to be remembered:
var/mutable_appearance/uniform_overlay
//Change check_adjustable_clothing.dm if you change this
//This is how non-humanoid clothing works. You check if the mob has the right bodyflag, and the clothing has the corresponding clothing flag.
//handled_by_bodytype is used to track whether or not we successfully used an alternate sprite. It's set to TRUE to ease up on copy-paste.
//icon_file MUST be set to null by default, or it causes issues.
//handled_by_bodytype MUST be set to FALSE under the if(!icon_exists()) statement, or everything breaks.
//"override_file = handled_by_bodytype ? icon_file : null" MUST be added to the arguments of build_worn_icon()
//Friendly reminder that icon_exists(file, state, scream = TRUE) is your friend when debugging this code.
var/handled_by_bodytype = TRUE
var/icon_file
var/woman
@@ -169,6 +174,8 @@ There are several things that need to be remembered:
if(!icon_exists(icon_file, RESOLVE_ICON_STATE(uniform)))
icon_file = DEFAULT_UNIFORM_FILE
handled_by_bodytype = FALSE
//END SPECIES HANDLING
uniform_overlay = uniform.build_worn_icon(
default_layer = UNIFORM_LAYER,