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

26 lines
572 B
TypeScript
Raw Normal View History

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