indestructible windows cant be destroyed by ingame means anymore (#72289)

## About The Pull Request

closes: https://github.com/tgstation/tgstation/issues/72271

I tested on a local server to see if there are more indestructible
things the rcd can destroy couldnt find any further.
Also makes sure indestructible windows cant be destroyed by any
unintentional means

## Why It's Good For The Game

bug fix

## Changelog

🆑
fix: indestructible windows cant be destroyed by ingame means anymore
/🆑

Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com>
Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
This commit is contained in:
Salex08
2022-12-30 15:38:32 +01:00
committed by GitHub
parent 4ca3e46399
commit c1b641ee5e
2 changed files with 10 additions and 2 deletions
+3 -2
View File
@@ -57,8 +57,9 @@
return
if(HAS_TRAIT(src, TRAIT_WIELDED)) //destroys windows and grilles in one hit
if(istype(A, /obj/structure/window) || istype(A, /obj/structure/grille))
var/obj/structure/W = A
W.atom_destruction("fireaxe")
if(!(A.resistance_flags & INDESTRUCTIBLE))
var/obj/structure/W = A
W.atom_destruction("fireaxe")
/*
* Bone Axe