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="./Purchasable.ts" />
|
2021-08-20 17:12:32 -05:00
|
|
|
|
2021-08-20 20:47:02 -05:00
|
|
|
class Money extends Purchasable {
|
2021-08-20 17:12:32 -05:00
|
|
|
constructor (
|
|
|
|
public value: number,
|
|
|
|
public max: number
|
|
|
|
) {
|
2021-08-20 23:00:24 -05:00
|
|
|
super('Money', 'Used to purchase goods and services.');
|
2021-08-20 20:47:02 -05:00
|
|
|
this.clickText = 'Beg';
|
|
|
|
this.clickDescription = 'Alms for the poor.';
|
2021-08-20 23:00:24 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
public isUnlocked (state: GameState): boolean {
|
|
|
|
return true;
|
2021-08-20 17:12:32 -05:00
|
|
|
}
|
|
|
|
}
|