Implement getFactionReaction function

Strange bug when using value != 0 for the garbage argument?