Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
fira committed Dec 29, 2023
1 parent 6da2392 commit db13043
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions code/game/machinery/nuclearbomb.dm
Original file line number Diff line number Diff line change
Expand Up @@ -396,16 +396,22 @@ GLOBAL_VAR_INIT(bomb_set, FALSE)
playsound(src, 'sound/machines/Alarm.ogg', 75, 0, 30)
world << pick('sound/theme/nuclear_detonation1.ogg','sound/theme/nuclear_detonation2.ogg')

for(var/mob/current_mob as anything in GLOB.mob_list)
var/turf/current_turf = get_turf(current_mob)
if(current_turf?.z == z && current_mob.stat != DEAD)
shake_camera(current_mob, 110, 4)

sleep(10 SECONDS)

var/list/mob/alive_mobs = list() //Everyone who will be destroyed on the zlevel(s).
var/list/mob/dead_mobs = list() //Everyone who only needs to see the cinematic.
var/list/mob/dead_mobs = list() //Everyone that needs embryos cleared
for(var/mob/current_mob as anything in GLOB.mob_list)
var/turf/current_turf = get_turf(current_mob)
if(current_turf?.z == z)
if(current_mob.stat == DEAD)
dead_mobs |= current_mob
continue
alive_mobs |= current_mob
shake_camera(current_mob, 110, 4)

for(var/mob/current_mob in alive_mobs)
if(istype(current_mob.loc, /obj/structure/closet/secure_closet/freezer/fridge))
Expand All @@ -418,7 +424,6 @@ GLOBAL_VAR_INIT(bomb_set, FALSE)
for(var/obj/item/alien_embryo/embryo in current_mob)
qdel(embryo)

sleep(10 SECONDS)
cell_explosion(loc, 500, 150, EXPLOSION_FALLOFF_SHAPE_LINEAR, null, create_cause_data(initial(name)))
qdel(src)
return TRUE
Expand Down

0 comments on commit db13043

Please sign in to comment.