advanced magboots

port of https://github.com/tgstation/-tg-station/pull/3411