mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-04 06:37:49 +02:00
Refactored NetscriptJS to take in the NS environment as a parameter to main
This commit is contained in:
@@ -506,8 +506,6 @@ Action.prototype.getSuccessChance = function(inst, params={}) {
|
||||
//Tests for success. Should be called when an action has completed
|
||||
// @inst - Bladeburner Object
|
||||
Action.prototype.attempt = function(inst) {
|
||||
console.log("Current City Pop: " + inst.getCurrentCity().pop);
|
||||
console.log("Action.attempt success chance: " + this.getSuccessChance(inst));
|
||||
return (Math.random() < this.getSuccessChance(inst));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user