mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 00:32:51 +02:00
Fixed various Coding Contract bugs. Added getContractType() to coding contract API
This commit is contained in:
@@ -154,6 +154,10 @@ export class CodingContract {
|
||||
return CodingContractTypes[this.type].numTries;
|
||||
}
|
||||
|
||||
getType(): string {
|
||||
return CodingContractTypes[this.type].name;
|
||||
}
|
||||
|
||||
isSolution(solution: string): boolean {
|
||||
return CodingContractTypes[this.type].solver(this.data, solution);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user