mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 12:45:45 +01:00
Fixed bug with new hacking speed multiplier for grow and weaken times
This commit is contained in:
parent
8a95fb4df7
commit
389fcb7589
@ -1065,7 +1065,7 @@ function scriptCalculatePercentMoneyHacked(server) {
|
|||||||
function scriptCalculateGrowTime(server) {
|
function scriptCalculateGrowTime(server) {
|
||||||
var difficultyMult = server.requiredHackingSkill * server.hackDifficulty;
|
var difficultyMult = server.requiredHackingSkill * server.hackDifficulty;
|
||||||
var skillFactor = (2.5 * difficultyMult + 500) / (Player.hacking_skill + 50);
|
var skillFactor = (2.5 * difficultyMult + 500) / (Player.hacking_skill + 50);
|
||||||
var growTime = skillFactor * Player.hacking_speed_mult * 16; //This is in seconds
|
var growTime = 16 * skillFactor / Player.hacking_speed_mult; //This is in seconds
|
||||||
return growTime * 1000;
|
return growTime * 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1073,6 +1073,6 @@ function scriptCalculateGrowTime(server) {
|
|||||||
function scriptCalculateWeakenTime(server) {
|
function scriptCalculateWeakenTime(server) {
|
||||||
var difficultyMult = server.requiredHackingSkill * server.hackDifficulty;
|
var difficultyMult = server.requiredHackingSkill * server.hackDifficulty;
|
||||||
var skillFactor = (2.5 * difficultyMult + 500) / (Player.hacking_skill + 50);
|
var skillFactor = (2.5 * difficultyMult + 500) / (Player.hacking_skill + 50);
|
||||||
var weakenTime = skillFactor * Player.hacking_speed_mult * 40; //This is in seconds
|
var weakenTime = 40 * skillFactor / Player.hacking_speed_mult; //This is in seconds
|
||||||
return weakenTime * 1000;
|
return weakenTime * 1000;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user