100 {
102 return 0.0;
103
104 InventoryLocation inventoryLocation = new InventoryLocation();
105 GetInventory().GetCurrentInventoryLocation(inventoryLocation);
106
107 if (inventoryLocation.
GetSlot() == InventorySlots.MASK)
108 {
109 switch (type)
110 {
112 return 0.65;
114 return 0.0;
115 }
116 }
117
118 return super.GetProtectionLevel(type, consider_filter, system);
119 }
bool IsDamageDestroyed(ActionTarget target)
proto native int GetSlot()
returns slot id if current type is Attachment
const int DEF_DUST_PARTICLE_BREATH
const int DEF_DUST_PARTICLE_EYES