Skip to content

Commit

Permalink
[MIRROR] Fixes ripley conversion kits (#694) (#1764)
Browse files Browse the repository at this point in the history
* 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: NovaBot <[email protected]>
Co-authored-by: SapphicOverload <[email protected]>
  • Loading branch information
3 people authored Jan 31, 2024
1 parent 0a60401 commit 21b6471
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/vehicles/mecha/equipment/tools/work_tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit 21b6471

Please sign in to comment.