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/Religion.ts

29 lines
789 B
TypeScript
Raw Normal View History

/// <reference path="./IResource.ts" />
2021-08-18 10:09:19 -05:00
class Religion implements IResource {
2021-09-05 14:45:37 -05:00
public readonly resourceType: ResourceType = ResourceType.religion;
public readonly valueInWholeNumbers: boolean = true;
2021-08-21 12:45:58 -05:00
public readonly clickText: null = null;
public readonly clickDescription: null = null;
public readonly cost: null = null;
2021-08-21 12:45:58 -05:00
public readonly max: null = null;
public readonly inc: null = null;
public readonly clickAction: null = null;
public readonly advanceAction: null = null;
2021-08-18 10:09:19 -05:00
constructor (
public readonly name: 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-09-05 14:45:37 -05:00
public addValue (amount: number, _state: GameState): void {
this.value += amount;
}
2021-09-05 14:45:37 -05:00
public isUnlocked (_state: GameState): boolean {
return true;
2021-08-18 10:09:19 -05:00
}
}