mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-11 15:57:33 +01:00
Bug fixes for new Bladeburner changes
This commit is contained in:
parent
bbb5f04c87
commit
71cf3cac35
8
dist/engine.bundle.js
vendored
8
dist/engine.bundle.js
vendored
@ -26043,11 +26043,11 @@ Action.prototype.getActionTime = function(inst) {
|
||||
}
|
||||
|
||||
Action.prototype.getSuccessesNeededForNextLevel = function(baseSuccessesPerLevel) {
|
||||
return (0.5) * (this.maxLevel) * (2 * baseSuccessesPerLevel + (this.maxLevel-1));
|
||||
return Math.ceil((0.5) * (this.maxLevel) * (2 * baseSuccessesPerLevel + (this.maxLevel-1)));
|
||||
}
|
||||
|
||||
Action.prototype.setMaxLevel = function(baseSuccessesPerLevel) {
|
||||
if (this.successes > this.getSuccessesNeededForNextLevel(baseSuccessesPerLevel)) {
|
||||
if (this.successes >= this.getSuccessesNeededForNextLevel(baseSuccessesPerLevel)) {
|
||||
++this.maxLevel;
|
||||
}
|
||||
}
|
||||
@ -26647,9 +26647,9 @@ Bladeburner.prototype.completeAction = function() {
|
||||
}
|
||||
|
||||
if (isOperation) {
|
||||
this.setMaxLevel(OperationSuccessesPerLevel);
|
||||
action.setMaxLevel(OperationSuccessesPerLevel);
|
||||
} else {
|
||||
this.setMaxLevel(ContractSuccessesPerLevel);
|
||||
action.setMaxLevel(ContractSuccessesPerLevel);
|
||||
}
|
||||
if (action.rankGain) {
|
||||
var gain = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["addOffset"])(action.rankGain * rewardMultiplier, 10);
|
||||
|
@ -23,15 +23,6 @@
|
||||
|
||||
ga('create', 'UA-100157497-1', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
|
||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({
|
||||
google_ad_client: "ca-pub-8908225340346450",
|
||||
enable_page_level_ads: true
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -535,11 +535,11 @@ Action.prototype.getActionTime = function(inst) {
|
||||
}
|
||||
|
||||
Action.prototype.getSuccessesNeededForNextLevel = function(baseSuccessesPerLevel) {
|
||||
return (0.5) * (this.maxLevel) * (2 * baseSuccessesPerLevel + (this.maxLevel-1));
|
||||
return Math.ceil((0.5) * (this.maxLevel) * (2 * baseSuccessesPerLevel + (this.maxLevel-1)));
|
||||
}
|
||||
|
||||
Action.prototype.setMaxLevel = function(baseSuccessesPerLevel) {
|
||||
if (this.successes > this.getSuccessesNeededForNextLevel(baseSuccessesPerLevel)) {
|
||||
if (this.successes >= this.getSuccessesNeededForNextLevel(baseSuccessesPerLevel)) {
|
||||
++this.maxLevel;
|
||||
}
|
||||
}
|
||||
@ -1139,9 +1139,9 @@ Bladeburner.prototype.completeAction = function() {
|
||||
}
|
||||
|
||||
if (isOperation) {
|
||||
this.setMaxLevel(OperationSuccessesPerLevel);
|
||||
action.setMaxLevel(OperationSuccessesPerLevel);
|
||||
} else {
|
||||
this.setMaxLevel(ContractSuccessesPerLevel);
|
||||
action.setMaxLevel(ContractSuccessesPerLevel);
|
||||
}
|
||||
if (action.rankGain) {
|
||||
var gain = addOffset(action.rankGain * rewardMultiplier, 10);
|
||||
|
@ -26043,11 +26043,11 @@ Action.prototype.getActionTime = function(inst) {
|
||||
}
|
||||
|
||||
Action.prototype.getSuccessesNeededForNextLevel = function(baseSuccessesPerLevel) {
|
||||
return (0.5) * (this.maxLevel) * (2 * baseSuccessesPerLevel + (this.maxLevel-1));
|
||||
return Math.ceil((0.5) * (this.maxLevel) * (2 * baseSuccessesPerLevel + (this.maxLevel-1)));
|
||||
}
|
||||
|
||||
Action.prototype.setMaxLevel = function(baseSuccessesPerLevel) {
|
||||
if (this.successes > this.getSuccessesNeededForNextLevel(baseSuccessesPerLevel)) {
|
||||
if (this.successes >= this.getSuccessesNeededForNextLevel(baseSuccessesPerLevel)) {
|
||||
++this.maxLevel;
|
||||
}
|
||||
}
|
||||
@ -26647,9 +26647,9 @@ Bladeburner.prototype.completeAction = function() {
|
||||
}
|
||||
|
||||
if (isOperation) {
|
||||
this.setMaxLevel(OperationSuccessesPerLevel);
|
||||
action.setMaxLevel(OperationSuccessesPerLevel);
|
||||
} else {
|
||||
this.setMaxLevel(ContractSuccessesPerLevel);
|
||||
action.setMaxLevel(ContractSuccessesPerLevel);
|
||||
}
|
||||
if (action.rankGain) {
|
||||
var gain = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["addOffset"])(action.rankGain * rewardMultiplier, 10);
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user