3 override void OnWasAttached(
EntityAI parent,
int slot_id )
5 super.OnWasAttached( parent, slot_id );
8 if ( Class.CastTo(parent_item,parent) )
10 parent_item.AddLightSourceItem(
this);
16 super.OnWasDetached( parent, slot_id );
19 if ( Class.CastTo(parent_item,parent) )
21 parent_item.RemoveLightSourceItem();
25 override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
27 super.EEItemLocationChanged(oldLoc, newLoc);
31 GetLight().UpdateMode();
class GP5GasMask extends MaskBase ItemBase
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
override void OnWasDetached(EntityAI parent, int slot_id)