if 'shift' in self.data:
substitutions['shift'] = self.data['shift']
- substitutions['direction'] = self.data['direction']
+ substitutions['shift_glyph'] = ('{SHIFT_%s}'
+ % self.data['direction'].upper())
elif 'direction' in self.data:
substitutions['rowcol'] = {
'NORTH': 'column',
class ShiftBits(LocationAction):
- TEXT = "Barrel-shift player %(shift)s bits %(direction)s."
- GLYPHS = (ACTION_GLYPHS.CHANGE_BOARD,)
+ TEXT = "Barrel-shift player bits %(shift_glyph)s %(shift)s."
+ GLYPHS = (ACTION_GLYPHS.SHIFT_LEFT,)
def perform_action(self, board, location):
shift = self.data['shift']