16 {
17 if (player.IsPlacingLocal())
18 return false;
19
21
22
23 if (targetIB && targetIB.GetHierarchyRoot() == targetIB && item)
24 {
25 if (item.HasEnergyManager() && !item.GetCompEM().IsPlugged() && targetIB.HasEnergyManager() && targetIB.GetCompEM().CanReceivePlugFrom(item))
26 {
27 return true;
28 }
29
31
32 if (attachedDevice)
33 {
34 return attachedDevice.GetCompEM().HasFreeSocket();
35 }
36 }
37
38 return false;
39 }
class GP5GasMask extends MaskBase ItemBase
ItemBase GetAttachedDevice(ItemBase parent)