new_x = x + if d == 6 1 elsif d == 4 -1 else 0 end self.contents.font.color = if actor.hp == 0 knockout_color else normal_color end