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.
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-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,
|
|
|
|
'Learn',
|
2021-09-06 12:02:38 -05:00
|
|
|
'Complete this research.'
|
|
|
|
);
|
2021-09-04 23:16:32 -05:00
|
|
|
this.value = 0;
|
|
|
|
}
|
2021-09-05 14:45:37 -05:00
|
|
|
|
2021-09-05 15:02:50 -05:00
|
|
|
public max: (state: GameState) => number = (_state) => 1;
|
2021-09-04 23:16:32 -05:00
|
|
|
}
|