From eac1d0d5a57df4d083d4ac21e4fb173e70b02d2e Mon Sep 17 00:00:00 2001 From: Migratingcocofruit <69551563+Migratingcocofruit@users.noreply.github.com> Date: Wed, 16 Apr 2025 20:29:07 +0300 Subject: [PATCH] Remove the redundant rad decay (#28707) --- code/__DEFINES/radiation_defines.dm | 5 ----- code/datums/radiation_wave.dm | 3 --- 2 files changed, 8 deletions(-) diff --git a/code/__DEFINES/radiation_defines.dm b/code/__DEFINES/radiation_defines.dm index 3c60170853f..75a02b0c1d7 100644 --- a/code/__DEFINES/radiation_defines.dm +++ b/code/__DEFINES/radiation_defines.dm @@ -68,11 +68,6 @@ Ask ninjanomnom if they're around /// The portion of a radiation wave that acts on the source tile. #define RAD_SOURCE_WEIGHT 0.25 -/// The point in steps at which radiation waves start to decay -#define RAD_DECAY_POINT 10 -/// This multiplies the intensity of the radiation wave each step after reaching the decay point. -#define RAD_DECAY_RATE 0.7943 // 1% after 20 tiles - #define ALPHA_RAD 1 #define BETA_RAD 2 #define GAMMA_RAD 3 diff --git a/code/datums/radiation_wave.dm b/code/datums/radiation_wave.dm index 3cd19e5492e..7d16e4aa465 100644 --- a/code/datums/radiation_wave.dm +++ b/code/datums/radiation_wave.dm @@ -80,9 +80,6 @@ offset += 2 * (steps - 1) weights = new_weights - // With the spread each step being linear waves can spread very far. This limits the distance for performace reasons - if(steps > RAD_DECAY_POINT) - intensity *= RAD_DECAY_RATE /// Calls rad act on each relevant atom in the turf and returns the resulting weight for that tile after reduction by insulation /datum/radiation_wave/proc/radiate(atom/source, turf/current_turf, weight, emission_type)