from container.piece import Piece import pygame class Mushroom(Piece): def __init__(self,x_y, img = 0, poison = False): self.name = "Mushroom" self.row = x_y[0] self.col = x_y[1] self.poison = poison self.img = pygame.image.load(r'container\mushrooms\m'+str(img)+'.png') if poison: self.img = pygame.image.load(r'container\mushrooms\pm'+str(img)+'.png') self.points = img+1 if poison: self.points *= -1