27 lines
550 B
TypeScript
27 lines
550 B
TypeScript
/// <reference path="./Purchasable.ts" />
|
|
|
|
abstract class Research extends Purchasable {
|
|
public readonly resourceType = ResourceType.research;
|
|
|
|
public inc = undefined;
|
|
|
|
constructor(
|
|
public readonly label: string,
|
|
public readonly singularName: string,
|
|
public readonly pluralName: string,
|
|
public readonly description: string
|
|
) {
|
|
super(
|
|
label,
|
|
singularName,
|
|
pluralName,
|
|
description,
|
|
false,
|
|
'Learn',
|
|
'Complete this research.'
|
|
);
|
|
}
|
|
|
|
public max = (_: GameState): number => 1;
|
|
}
|