This repository has been archived on 2022-01-16. You can view files and clone it, but cannot push or open issues or pull requests.
irreligious/src/model/resource/Research.ts

18 lines
459 B
TypeScript

/// <reference path="./Purchasable.ts" />
abstract class Research extends Purchasable {
public readonly resourceType: ResourceType = ResourceType.research;
constructor (
public readonly name: string,
public readonly description: string
) {
super(name, description);
this.value = 0;
this.clickText = 'Learn';
this.clickDescription = 'Complete this research.';
}
public max: (_state: GameState) => number = (_state) => 1;
}