73 {
74 if (!player)
75 return;
76
78
79 foreach (int slotId, float wetnessValue : wetnessBySlot)
80 {
81 float add = wetnessValue * scale;
82
83 ItemBase clothing =
ItemBase.Cast(player.GetInventory().FindAttachment(slotId));
84 if (!clothing)
85 continue;
86
87 clothing.SetWet(Math.Clamp(clothing.GetWet() + add, 0.0, 1.0));
88 }
89 }
class GP5GasMask extends MaskBase ItemBase
map< int, float > GetWetnessMap(bool fromContainer)