hadean-old/src/tasks/ChopTreeTask.ts

32 lines
517 B
TypeScript

import chalk from 'chalk';
import { Game } from '../Game.js';
import { Item } from '../Item.js';
import { Pawn } from '../Pawn.js';
import { Task } from './Task.js';
export class ChopTreeTask extends Task {
work = 100;
constructor(count) {
super();
}
reward() {
Game.current.inv.add(Item.LOG, 1);
}
static serializationDependencies() {
return [Pawn];
}
get title() {
return chalk.yellow('Chop Trees');
}
get status() {
return chalk.yellow('LOGGING');
}
}