5 if(!super.CanPutAsAttachment(parent)) {
return false;}
6 bool headgear_present =
false;
8 if ( parent.FindAttachmentBySlotName(
"Headgear" ) )
10 headgear_present = parent.FindAttachmentBySlotName(
"Headgear" ).ConfigGetBool(
"noMask" );
13 if ( (
GetNumberOfItems() == 0 || !parent || parent.IsMan() ) && !headgear_present )