import Worker from '../Worker';
import { worker } from '../../../game-data/worker-config';

import findWork from './find-work';
import doWork from './do-work';

export default class extends Worker {
  constructor({ game, x, y }) {
    super(game, x, y, 'worker-chopper', null, 'chopper');

    this.inventory.selected = 'wood-axe';

    this.findWork = findWork.bind(this);
    this.doWork = doWork.bind(this);
  }
}

import Worker from '../Worker';
import { worker } from '../../../game-data/worker-config';

import findWork from './find-work';
import doWork from './do-work';

export default class extends Worker {
  constructor({ game, x, y }) {
    super(game, x, y, 'worker-collector', null, 'chopper');

    this.inventory.selected = 'wood-axe';

    this.findWork = findWork.bind(this);
    this.doWork = doWork.bind(this);
  }
}

Fix collector sprite