mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
[MIRROR] Optimizes explosions (very slightly) [MDB IGNORE] (#18624)
* Optimizes explosions (very slightly) * Update explosions.dm * Update atoms_movable.dm * Update dungeon.dm * Update stone.dm Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
This commit is contained in:
co-authored by
LemonInTheDark
Zonespace
parent
24a018b16d
commit
b44967501c
@@ -40,6 +40,7 @@
|
||||
acid = 100
|
||||
|
||||
/obj/structure/window/Initialize(mapload, direct)
|
||||
AddElement(/datum/element/blocks_explosives)
|
||||
. = ..()
|
||||
if(direct)
|
||||
setDir(direct)
|
||||
@@ -55,9 +56,9 @@
|
||||
setDir()
|
||||
AddElement(/datum/element/can_barricade)
|
||||
|
||||
//windows only block while reinforced and fulltile, so we'll use the proc
|
||||
real_explosion_block = explosion_block
|
||||
explosion_block = EXPLOSION_BLOCK_PROC
|
||||
//windows only block while reinforced and fulltile
|
||||
if(!reinf || !fulltile)
|
||||
set_explosion_block(0)
|
||||
|
||||
flags_1 |= ALLOW_DARK_PAINTS_1
|
||||
RegisterSignal(src, COMSIG_OBJ_PAINTED, PROC_REF(on_painted))
|
||||
@@ -424,9 +425,6 @@
|
||||
|
||||
return TRUE
|
||||
|
||||
/obj/structure/window/GetExplosionBlock()
|
||||
return reinf && fulltile ? real_explosion_block : 0
|
||||
|
||||
/obj/structure/window/spawner/east
|
||||
dir = EAST
|
||||
|
||||
|
||||
Reference in New Issue
Block a user