Moral codes aren't meant to change based on each action, however. That's why they're codes.
I don't believe that if people actually have a moral code, they can act contrarily to it. If they can, it wasn't really their moral code to begin with, just some set of ideals.
Can literal alignment be...