13 override void CreateConditionComponents()
19 override bool HasTarget()
26 if (item.GetQuantity() > 1)
29 if ( !IsWearingMask(player) )
31 ItemBase headgear =
ItemBase.Cast(player.FindAttachmentBySlotName(
"Headgear" ));
34 bool headgear_restricted;
35 headgear_restricted = headgear.ConfigGetBool(
"noMask" );
36 if (headgear_restricted)
47 override void OnFinishProgressServer(
ActionData action_data )
50 if (
Class.CastTo(new_item,action_data.m_Player.GetInventory().CreateAttachmentEx(
"MouthRag",
InventorySlots.MASK)))
52 MiscGameplayFunctions.TransferItemProperties(action_data.m_MainItem,new_item,
true,
false,
true);
54 action_data.m_MainItem.TransferModifiers(action_data.m_Player);
55 action_data.m_MainItem.Delete();