mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 14:37:04 +01:00
Remove the redundant rad decay (#28707)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user