import pygame
from naja.constants import (
- TILE_SIZE, BITS, LOCK_HEIGHT, SMALL_LOCK_HEIGHT, EXAMINE, PALETTE)
+ TILE_SIZE, BITS, LOCK_HEIGHT, SMALL_LOCK_HEIGHT, PALETTE)
from naja.resources import resources
from naja.resources.mutators import EIGHT_BIT, blender
from naja.widgets.base import Widget
legal_move = (self.board_pos in self.state.player.legal_moves())
- if self.state.gameboard.player_mode == EXAMINE and legal_move:
+ if legal_move:
overlays.append(resources.get_image(
tile_available_name, transforms=(EIGHT_BIT,)))
if self.highlighted:
def set_highlight(self, pos, bright=False):
self.highlighted = False
self.bright = bright
- if (self.state.gameboard.player_mode == EXAMINE and
- self.board_pos == pos):
+ if self.board_pos == pos:
self.highlighted = True
def draw(self, surface):