Skip to content

Commit

Permalink
Ex_act @ turf/environment (#13720)
Browse files Browse the repository at this point in the history
* Update holospace.dm

* Update turf.dm

* Update turf.dm
  • Loading branch information
TgT4 authored Jan 11, 2025
1 parent fab623c commit b9ad675
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
13 changes: 0 additions & 13 deletions code/game/turfs/space/holospace.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,3 @@
oxygen = MOLES_O2STANDARD
nitrogen = MOLES_N2STANDARD
temperature = T20C

/turf/environment/space/holospace/ex_act(severity) // should we move it to environment turfs?
for(var/thing in contents)
var/atom/movable/movable_thing = thing
if(QDELETED(movable_thing))
continue
switch(severity)
if(EXPLODE_DEVASTATE)
SSexplosions.high_mov_atom += movable_thing
if(EXPLODE_HEAVY)
SSexplosions.med_mov_atom += movable_thing
if(EXPLODE_LIGHT)
SSexplosions.low_mov_atom += movable_thing
13 changes: 13 additions & 0 deletions code/game/turfs/turf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,19 @@
/turf/environment/levelupdate()
return

/turf/environment/ex_act(severity)
for(var/thing in contents)
var/atom/movable/movable_thing = thing
if(QDELETED(movable_thing))
continue
switch(severity)
if(EXPLODE_DEVASTATE)
SSexplosions.high_mov_atom += movable_thing
if(EXPLODE_HEAVY)
SSexplosions.med_mov_atom += movable_thing
if(EXPLODE_LIGHT)
SSexplosions.low_mov_atom += movable_thing

// Removes all signs of lattice on the pos of the turf -Donkieyo
/turf/proc/RemoveLattice()
var/obj/structure/lattice/L = locate(/obj/structure/lattice, src)
Expand Down

0 comments on commit b9ad675

Please sign in to comment.