import config from '../../../config';
import { tryChance } from '../../../utils';

import Log from '../Log';
import PineCone from '../PineCone';

const seedDropChance = config.test ? 50 : 25;

export default function interact(character) {
  if (character.inventory.selected !== 'wood-axe') return;

  new Log({
    game: this.game,
    x: this.x,
    y: this.y,
  });

  if (tryChance(seedDropChance)) {
    new PineCone({
      game: this.game,
      x: this.x,
      y: this.y,
    });
  }

  this.destroy();
}

import config from '../../../config';
import { tryChance } from '../../../utils';

import Log from '../Log';
import PineCone from '../PineCone';

const seedDropChance = config.test ? 75 : 50;

export default function interact(character) {
  if (character.inventory.selected !== 'wood-axe') return;

  new Log({
    game: this.game,
    x: this.x,
    y: this.y,
  });

  if (tryChance(seedDropChance)) {
    new PineCone({
      game: this.game,
      x: this.x,
      y: this.y,
    });
  }

  this.destroy();
}

Increase pine cone drop chance
Increase pine cone drop chance
