Internals Bugfixes & Internals-Compatible Helmets (#70750)

* Core internals refactor. Add open/close_internals procs to /obj/item/tank. Add open/close_internals, can_breathe_internals, and invalid_internals procs to /mob/living/carbon. Fixed bug in human_stripping.dm preventing changing internals for breathing tube users. Fixed bug in /obj/item/tank/toggle_internals that was auto-adjusting non-internals masks. Fixed bug in slements/strippable that caused two mobs to breathe from the same internals.
This commit is contained in:
Dani Glore
2022-10-31 12:04:52 +01:00
committed by GitHub
parent 26c68c31a0
commit 0a81ea5bf9
22 changed files with 336 additions and 127 deletions
+3
View File
@@ -220,6 +220,9 @@
wearer.update_worn_mask()
wearer.update_worn_glasses()
wearer.update_body_parts()
// Close internal air tank if MOD helmet is unsealed and was the only breathing apparatus.
if (!seal && wearer?.invalid_internals())
wearer.cutoff_internals()
/// Finishes the suit's activation, starts processing
/obj/item/mod/control/proc/finish_activation(on)