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']
'WINTOKEN': 'glyphs/win.png',
'MSB': 'glyphs/msb.png',
'NOTHING': 'glyphs/do_nothing.png',
+ 'SHIFT_LEFT': 'glyphs/shift_left.png',
+ 'SHIFT_RIGHT': 'glyphs/shift_right.png',
})
TUNES = [
'BLUE': ('glyphs/key.png', PALETTE.BLUE),
'CLOCKWISE': ('glyphs/clockwise.png', None),
'ANTICLOCKWISE': ('glyphs/anticlockwise.png', None),
+ 'SHIFT_LEFT': ('glyphs/shift_left.png', None),
+ 'SHIFT_RIGHT': ('glyphs/shift_right.png', None),
'HEALTH_NOCOLOUR': ('glyphs/health.png', None),
'WINTOKEN_NOCOLOUR': ('glyphs/win.png', None),