Bug fixes for new Bladeburner changes

This commit is contained in:
danielyxie 2018-06-08 22:25:28 -05:00
parent bbb5f04c87
commit 71cf3cac35
5 changed files with 13 additions and 22 deletions

@ -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