functions to generate dummy contracts

This commit is contained in:
Olivier Gagnon
2022-10-09 02:56:11 -04:00
parent 5d4b72e1d1
commit f4668b21ca
5 changed files with 44 additions and 3 deletions
@@ -1109,7 +1109,11 @@ export function queueAugmentation(this: PlayerObject, name: string): void {
}
/************* Coding Contracts **************/
export function gainCodingContractReward(this: PlayerObject, reward: ICodingContractReward, difficulty = 1): string {
export function gainCodingContractReward(
this: PlayerObject,
reward: ICodingContractReward | null,
difficulty = 1,
): string {
if (reward == null || reward.type == null) {
return `No reward for this contract`;
}