mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
[NO GBP] Patches & renaming for NO_DECONSTRUCTION flag (#82547)
## About The Pull Request 1. Renames `NO_DECONSTRUCTION` -> `NO_DEBRIS_AFTER_DECONSTRUCTION`. As the name suggests when the object is deconstructed it won't drop any items/debris. After my last refactor for this flag it now serves a new purpose so its name has been changed to match that 2. Fixes objects that are now using `NO_DECONSTRUCTION` incorrectly. Some of these changes include - Removing the flag in objects where there are no means to deconstruct them (e.g. jukebox, hydroponics soil, flora etc) - Replacing the flags old purpose by overriding its tool procs so that it regains its old behaviour(e.g. You once again cannot deconstruct ctf reinforced tables, survival pods, indestructible windows etc) ## Changelog 🆑 code: renamed `NO_DECONSTRUCTION` to `NO_DEBRIS_AFTER_DECONSTRUCTION` so its name matches its intended purpose fix: fixes some items that incorrectly used `NO_DECONSTRUCTION` prior to its refactor, meaning makes some objects non deconstructable again /🆑
This commit is contained in:
@@ -292,12 +292,12 @@ GLOBAL_LIST_INIT(typecache_holodeck_linked_floorcheck_ok, typecacheof(list(/turf
|
||||
holo_object.resistance_flags = LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
|
||||
|
||||
if(isstructure(holo_object))
|
||||
holo_object.obj_flags |= NO_DECONSTRUCTION
|
||||
holo_object.obj_flags |= NO_DEBRIS_AFTER_DECONSTRUCTION
|
||||
return
|
||||
|
||||
if(ismachinery(holo_object))
|
||||
var/obj/machinery/holo_machine = holo_object
|
||||
holo_machine.obj_flags |= NO_DECONSTRUCTION
|
||||
holo_machine.obj_flags |= NO_DEBRIS_AFTER_DECONSTRUCTION
|
||||
holo_machine.power_change()
|
||||
|
||||
if(istype(holo_machine, /obj/machinery/button))
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
var/newtype = pick(subtypesof(/obj/item/book/manual) - banned_books)
|
||||
var/obj/item/book/manual/to_spawn = new newtype(loc)
|
||||
to_spawn.flags_1 |= HOLOGRAM_1
|
||||
to_spawn.obj_flags |= NO_DECONSTRUCTION
|
||||
to_spawn.obj_flags |= NO_DEBRIS_AFTER_DECONSTRUCTION
|
||||
return to_spawn
|
||||
|
||||
/obj/effect/holodeck_effect/mobspawner
|
||||
|
||||
Reference in New Issue
Block a user