mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-02 13:02:38 +00:00
Human initialization calls species' ``create_fresh_body``, which calls carbon ``create_bodyparts``, which adds bodyparts directly using ``add_bodypart`` to bypass a lot of unnecessary update calls inside of that proc. However, this also bypasses 3 comsigs, and bodypart sorting, which means that order of bodyparts set in ``bodyparts``/``replace_body`` could determine how the mob would spawn and render until they had a limb reattached to them, and some bodypart-owned effects like organ set bonuses wouldn't apply on mobs when they were added from their species. I've just added a ``lazy`` arg to ``try_attach_limb`` which makes it only check for limb validity, attach the limb and early return after sending relevant comsigs without doing any of the updating.