mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 18:50:56 +02:00
Vigilante Justice now reduces wanted by a percentage to help players stuck with very high wanted level.
This commit is contained in:
@@ -175,7 +175,7 @@ export class CodingContract {
|
||||
async prompt(): Promise<CodingContractResult> {
|
||||
const popupId = `coding-contract-prompt-popup-${this.fn}`;
|
||||
return new Promise<CodingContractResult>((resolve, reject) => {
|
||||
let popup = new CodingContractPopup({
|
||||
const popup = new CodingContractPopup({
|
||||
c: this,
|
||||
popupId: popupId,
|
||||
onClose: () => {
|
||||
@@ -183,14 +183,13 @@ export class CodingContract {
|
||||
removePopup(popupId);
|
||||
},
|
||||
onAttempt: (val: string) => {
|
||||
console.log(`top; ${val}`);
|
||||
if (this.isSolution(val)) {
|
||||
resolve(CodingContractResult.Success);
|
||||
} else {
|
||||
resolve(CodingContractResult.Failure);
|
||||
}
|
||||
removePopup(popupId);
|
||||
}
|
||||
},
|
||||
});
|
||||
createPopup(popupId, CodingContractPopup, popup.props);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user