DNET: Player feedback (#2545)

This commit is contained in:
Michael Ficocelli
2026-03-19 21:07:43 -07:00
committed by GitHub
parent 73b7921ef0
commit 1b6b07faae
38 changed files with 248 additions and 108 deletions
+2 -1
View File
@@ -130,6 +130,7 @@ interface IGenerateContractParams {
server?: string;
filename?: ContractFilePath;
reward?: ICodingContractReward;
rewardScaling?: number;
}
export function generateContract(params: IGenerateContractParams): void {
@@ -163,7 +164,7 @@ export function generateContract(params: IGenerateContractParams): void {
if (filename == null) {
return;
}
const contract = new CodingContract(filename, problemType, reward);
const contract = new CodingContract(filename, problemType, reward, params.rewardScaling);
server.addContract(contract);
}