mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 17:53:00 +02:00
CONTRACTS: Display contract answers on completely failed contracts (#2440)
This commit is contained in:
@@ -82,6 +82,10 @@ export class CodingContract {
|
||||
this.reward = reward;
|
||||
}
|
||||
|
||||
getAnswer() {
|
||||
return CodingContractTypes[this.type].getAnswer(this.state);
|
||||
}
|
||||
|
||||
getData(): unknown {
|
||||
const func = CodingContractTypes[this.type].getData;
|
||||
return func ? func(this.state) : this.state;
|
||||
|
||||
Reference in New Issue
Block a user