From e648b052dbc2b962f84daa2a8a51ef3584418872 Mon Sep 17 00:00:00 2001 From: NovaBot <154629622+NovaBot13@users.noreply.github.com> Date: Tue, 30 Jan 2024 13:54:39 -0500 Subject: [PATCH] [MIRROR] Fixes ripley conversion kits (#694) * Fixes ripley conversion kits (#81163) ## About The Pull Request Fixes Mk-II Ripley exosuits not being enclosed, and converted mechs not having lights on if they did before. ## Why It's Good For The Game Closes #81034 ## Changelog :cl: fix: Mk-II Ripley exosuits are spaceproof again. fix: Converted mechs now have their lights on if they did before the conversion. /:cl: * Fixes ripley conversion kits --------- Co-authored-by: SapphicOverload <93578146+SapphicOverload@users.noreply.github.com> --- code/modules/vehicles/mecha/equipment/tools/work_tools.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/vehicles/mecha/equipment/tools/work_tools.dm b/code/modules/vehicles/mecha/equipment/tools/work_tools.dm index 13041e11220..5907ee98903 100644 --- a/code/modules/vehicles/mecha/equipment/tools/work_tools.dm +++ b/code/modules/vehicles/mecha/equipment/tools/work_tools.dm @@ -388,7 +388,8 @@ equipment.detach(newmech) equipment.attach(newmech, righthandgun) newmech.dna_lock = markone.dna_lock - newmech.mecha_flags = markone.mecha_flags + newmech.mecha_flags |= markone.mecha_flags & ~initial(markone.mecha_flags) // transfer any non-inherent flags like PANEL_OPEN and LIGHTS_ON + newmech.set_light_on(newmech.mecha_flags & LIGHTS_ON) // in case the lights were on newmech.strafe = markone.strafe //Integ set to the same percentage integ as the old mecha, rounded to be whole number newmech.update_integrity(round((markone.get_integrity() / markone.max_integrity) * newmech.get_integrity()))