2021-09-04 23:16:32 -05:00
|
|
|
/// <reference path="./Purchasable.ts" />
|
|
|
|
|
|
|
|
abstract class Research extends Purchasable {
|
2021-09-05 15:02:50 -05:00
|
|
|
public readonly resourceType = ResourceType.research;
|
2021-09-12 13:58:57 -05:00
|
|
|
|
2021-09-05 19:20:24 -05:00
|
|
|
public inc = undefined;
|
2021-09-04 23:16:32 -05:00
|
|
|
|
2021-09-06 12:02:38 -05:00
|
|
|
constructor(
|
2021-09-06 08:51:41 -05:00
|
|
|
public readonly label: string,
|
2021-09-06 00:12:05 -05:00
|
|
|
public readonly singularName: string,
|
|
|
|
public readonly pluralName: string,
|
2021-09-04 23:16:32 -05:00
|
|
|
public readonly description: string
|
|
|
|
) {
|
2021-09-06 00:12:05 -05:00
|
|
|
super(
|
2021-09-06 08:51:41 -05:00
|
|
|
label,
|
2021-09-06 00:12:05 -05:00
|
|
|
singularName,
|
|
|
|
pluralName,
|
|
|
|
description,
|
2021-09-06 20:37:23 -05:00
|
|
|
false,
|
2021-09-06 00:12:05 -05:00
|
|
|
'Learn',
|
2021-09-06 12:02:38 -05:00
|
|
|
'Complete this research.'
|
|
|
|
);
|
2021-09-04 23:16:32 -05:00
|
|
|
}
|
2021-09-05 14:45:37 -05:00
|
|
|
|
2021-09-12 13:58:57 -05:00
|
|
|
public max = (_: GameState): number => 1;
|
2021-09-04 23:16:32 -05:00
|
|
|
}
|