590 {
592
593 int playerAttachmentCount =
m_Player.GetInventory().AttachmentCount();
594
595 LogDryWetProcess(
string.Format(
"Environment :: ProcessItemsWetness (update interval=%1s)", GameConstants.ENVIRO_TICK_RATE));
596 for (int attIdx = 0; attIdx < playerAttachmentCount; ++attIdx)
597 {
598 attachment =
m_Player.GetInventory().GetAttachmentFromIndex(attIdx);
599 if (attachment.IsItemBase())
600 {
601 int attachmentSlotsCount = attachment.GetInventory().GetSlotIdCount();
602 for (int attachmentSlotId = 0; attachmentSlotId < attachmentSlotsCount; ++attachmentSlotId)
603 {
604 int attachmentSlot = attachment.GetInventory().GetSlotId(attachmentSlotId);
605 for (int i = 0; i < pSlotIds.Count(); ++i)
606 {
607 if (attachmentSlot == pSlotIds.Get(i))
608 {
610 break;
611 }
612 }
613 }
614 }
615 }
616
619
621
622 }
class GP5GasMask extends MaskBase ItemBase
void ApplyWetnessToItem(ItemBase pItem)
void LogDryWetProcess(string message, bool indented=false)