Occulus-Server / Occulus-Eris

Occulus is a downstream from Eris, though we also have a fair bit of original content thanks to a decent sized development team.
Other
6 stars 48 forks source link

Fix: Autodocs can remove shrapnel now. #990

Closed Awesome4Real closed 1 year ago

Awesome4Real commented 1 year ago

watch this break everything.

About The Pull Request

So, the autodoc couldn't remove shrapnel because it wasn't using "locate" to find shrapnel in the limbs, like how surgery code does it, so it never found any.

"if(/obj/item/material/shard/shrapnel in external.implants)" VS "if(locate(/obj/item/material/shard/shrapnel) in external.implants)"

Implemented that and it worked as expected.

Why It's Good For The Game

Unbuggening the autodoc seems useful for when there's no surgeons arounds.

Changelog

fix:autodoc can now remove shrapnel