Stray bullets and explosions don't blow up the entire syndi lava base anymore (#34401)
* - Changes explosions to save a reference to the epicenter atom - Changes syndicate bomb cores to have themselves as the epicenter, removing a redundant get_turf call - Changes explosive plastitanium walls to only be triggered by bomb core explosions. This is a tad cumbersome but there's only 12 of these walls in the game. * - Removes debug code * - Can't hurt
This commit is contained in:
committed by
CitadelStationBot
parent
ade3ded854
commit
1a7341f2c4
@@ -14,6 +14,7 @@ GLOBAL_LIST_EMPTY(explosions)
|
||||
|
||||
/datum/explosion
|
||||
var/explosion_id
|
||||
var/atom/explosion_source
|
||||
var/started_at
|
||||
var/running = TRUE
|
||||
var/stopped = 0 //This is the number of threads stopped !DOESN'T COUNT THREAD 2!
|
||||
@@ -37,6 +38,7 @@ GLOBAL_LIST_EMPTY(explosions)
|
||||
|
||||
var/id = ++id_counter
|
||||
explosion_id = id
|
||||
explosion_source = epicenter
|
||||
|
||||
epicenter = get_turf(epicenter)
|
||||
if(!epicenter)
|
||||
@@ -323,6 +325,7 @@ GLOBAL_LIST_EMPTY(explosions)
|
||||
if(stopped < 2) //wait for main thread and spiral_range thread
|
||||
return QDEL_HINT_IWILLGC
|
||||
GLOB.explosions -= src
|
||||
explosion_source = null
|
||||
return ..()
|
||||
|
||||
/client/proc/check_bomb_impacts()
|
||||
|
||||
Reference in New Issue
Block a user