/datum/component/radioactive
Vars | |
_added_to_items_processing | Internal, do not touch - keeps a record of whether or not we had to add this to the item processing list |
---|---|
_backup_color | Internal, do not touch - keeps a record of atom.color since we override it with filters. |
_turf_glow | Internal, store of turf glow overlay |
decays | Does this radiation source slowly decay over time? If so, it will take ~ 6 * radStrength seconds to decay completely. |
effect_range | How wide a range this radiation source affects. Greater than one should be very rarely used, since all atoms in this range will be exposed per tick |
neutron | Is this radiation source a neutron source? If it is, it does more damage per dose. Associated with n_radiation mat property. |
radStrength | Percentage of max value to apply on various actions. A radStrength of 100 is very radioactive, killing most humans quickly |
typeinfo_type | If a thing is to be radioactive, slap this component on it. Only call mob.take_radiation_dose directly as a last resort. |
Procs | |
eaten | Called when a radioactive thing is eaten. High dose to account for radioactive things continuing to irradiate you from the stomach. |
examined | Adds a line to examine text to indicate level of radiation produced |
get_radioactivity | Returns level of radioactivity (0 to 100) - note that SEND_SIGNAL returns 0 if the signal is not registered |
ticked | Called every item process tick, handles applying radiation effect to nearby atoms and also decay. |
touched | Called when an item is picked up or hand attacked. |
Var Details
_added_to_items_processing
Internal, do not touch - keeps a record of whether or not we had to add this to the item processing list
_backup_color
Internal, do not touch - keeps a record of atom.color since we override it with filters.
_turf_glow
Internal, store of turf glow overlay
decays
Does this radiation source slowly decay over time? If so, it will take ~ 6 * radStrength seconds to decay completely.
effect_range
How wide a range this radiation source affects. Greater than one should be very rarely used, since all atoms in this range will be exposed per tick
neutron
Is this radiation source a neutron source? If it is, it does more damage per dose. Associated with n_radiation mat property.
radStrength
Percentage of max value to apply on various actions. A radStrength of 100 is very radioactive, killing most humans quickly
typeinfo_type
If a thing is to be radioactive, slap this component on it. Only call mob.take_radiation_dose directly as a last resort.
Proc Details
eaten
Called when a radioactive thing is eaten. High dose to account for radioactive things continuing to irradiate you from the stomach.
examined
Adds a line to examine text to indicate level of radiation produced
get_radioactivity
Returns level of radioactivity (0 to 100) - note that SEND_SIGNAL returns 0 if the signal is not registered
ticked
Called every item process tick, handles applying radiation effect to nearby atoms and also decay.
touched
Called when an item is picked up or hand attacked.