def perform_action(self, board, location):
sound.play_sound('grind.ogg')
- board.shift_locations(self.data['direction'])
+ board.shift_locations(
+ self.data['direction'],
+ self.data.get('skip_current', True))
class RotateLocations(LocationAction):
class AllowChessMoveIfMSB(LocationAction):
TEXT = (
- "Clear {MSB} and move like a %(chesspiece_name)s for one turn if it "
- "was set.")
+ "If {MSB} is set, unset {MSB} and move like a %(chesspiece_name)s for one turn. Otherwise do nothing.")
MSB_GLYPH = ACTION_GLYPHS.MOVEMENT
def perform_action(self, board, location):