/tg/ Station 13 - Modules - Types

code/datums/elements/movetype_handler.dm

/datum/element/movetype_handlerAn element that enables and disables movetype bitflags whenever the relative traits are added or removed. It also handles the +2/-2 pixel y anim loop typical of mobs possessing the FLYING or FLOATING movetypes. This element is necessary for the TRAIT_MOVE_ traits to work correctly, so make sure to attach this element before adding them to non-living movables.