hadean-old/src/tasks/ChopTreeTask.ts

32 lines
517 B
TypeScript
Raw Normal View History

2021-06-14 22:03:55 -04:00
import chalk from 'chalk';
2021-06-16 15:26:42 -04:00
import { Game } from '../Game.js';
import { Item } from '../Item.js';
import { Pawn } from '../Pawn.js';
2021-06-14 22:03:55 -04:00
import { Task } from './Task.js';
export class ChopTreeTask extends Task {
work = 100;
2021-06-15 15:02:47 -04:00
constructor(count) {
super();
}
2021-06-14 22:03:55 -04:00
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');
}
}