Preliminary loyalty-implant deculting changes

Starts commented out so you can uncomment it after you turn it not-awful.  I don't have a lot of faith in my code.