mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-07 07:52:00 +00:00
Runtime map now has a bunch of new areas / items with often-tested stuffs, and some hard-to-put-at-runtime stuffs. Runtime map jobs now are positioned to make it faster to reach the aforementioned often-tested stuffs. Runtime map doesn't generate an overmap anymore by default, which speeds up the process. Runtime map now loads in ~11 seconds instead of ~40 seconds as it was before. Updated the maploader to be faster in parsing maps. Bapi is not engaged anymore if we're only measuring the map size, which speeds up the process. In fastboot we do not generate the codexes anymore, which speeds up the process. In fastboot and if exoplanets and away sites are not enabled, we do not parse the map templates anymore, which speeds up the process. Updated the icon smoothing to be faster. Optimized cargo area code. Other optimizations.
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
// explosion logic is in code/controllers/Processes/explosives.dm now
|
|
|
|
/proc/explosion(turf/epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range, adminlog = 1, z_transfer = UP|DOWN, spreading = GLOB.config.use_spreading_explosions)
|
|
UNLINT(src = null) //so we don't abort once src is deleted
|
|
var/datum/explosiondata/data = new
|
|
data.epicenter = epicenter
|
|
data.devastation_range = devastation_range
|
|
data.heavy_impact_range = heavy_impact_range
|
|
data.light_impact_range = light_impact_range
|
|
data.flash_range = flash_range
|
|
data.adminlog = adminlog
|
|
data.z_transfer = z_transfer
|
|
data.spreading = spreading
|
|
data.rec_pow = max(0,devastation_range) * 2 + max(0,heavy_impact_range) + max(0,light_impact_range)
|
|
|
|
// queue work
|
|
SSexplosives.queue(data)
|
|
|
|
//Machines which report explosions.
|
|
for(var/thing in doppler_arrays)
|
|
var/obj/machinery/doppler_array/Array = thing
|
|
Array.sense_explosion(epicenter.x,epicenter.y,epicenter.z,devastation_range,heavy_impact_range,light_impact_range)
|
|
|
|
// == Recursive Explosions stuff ==
|
|
|
|
/client/proc/kaboom()
|
|
var/power = input(src, "power?", "power?") as num
|
|
var/turf/T = get_turf(src.mob)
|
|
var/datum/explosiondata/d = new
|
|
d.spreading = TRUE
|
|
d.epicenter = T
|
|
d.rec_pow = power
|
|
SSexplosives.queue(d)
|