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-08-20 20:47:02 -05:00
|
|
|
/// <reference path="./IResource.ts" />
|
2021-08-18 10:09:19 -05:00
|
|
|
|
|
|
|
class Religion implements IResource {
|
2021-09-05 15:02:50 -05:00
|
|
|
public readonly resourceType = ResourceType.religion;
|
|
|
|
public readonly valueInWholeNumbers = true;
|
2021-08-18 10:09:19 -05:00
|
|
|
|
|
|
|
constructor (
|
2021-09-06 00:12:05 -05:00
|
|
|
public readonly singularName: string,
|
|
|
|
public readonly pluralName: string,
|
2021-08-18 15:36:02 -05:00
|
|
|
public readonly description: string,
|
2021-08-20 17:12:32 -05:00
|
|
|
public value: number,
|
2021-08-20 23:00:24 -05:00
|
|
|
) { }
|
|
|
|
|
2021-09-05 14:45:37 -05:00
|
|
|
public addValue (amount: number, _state: GameState): void {
|
2021-08-22 11:51:16 -05:00
|
|
|
this.value += amount;
|
|
|
|
}
|
|
|
|
|
2021-09-05 14:45:37 -05:00
|
|
|
public isUnlocked (_state: GameState): boolean {
|
2021-08-20 23:00:24 -05:00
|
|
|
return true;
|
2021-08-18 10:09:19 -05:00
|
|
|
}
|
|
|
|
}
|