Adds a cache to radiation waves (#30261)

This commit is contained in:
Migratingcocofruit
2025-09-14 20:31:30 +00:00
committed by GitHub
parent 12c3f5afe2
commit 379fa1ad1e
2 changed files with 8 additions and 5 deletions
@@ -33,6 +33,8 @@ PROCESSING_SUBSYSTEM_DEF(radiation)
if(world.time > last_rad_cache_update + rad_cache_update_interval)
refresh_rad_cache()
last_rad_cache_update = world.time
for(var/emission_type in GLOB.turf_rad_item_cache)
GLOB.turf_rad_item_cache["[emission_type]"] = list()
. = ..()
/datum/controller/subsystem/processing/radiation/proc/get_turf_radiation(turf/place)