mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
Re-designed Active Scripts tab. Re-designed growth mechanic to depend on server security. Server growth no longer occurss manually. Bug fixes
This commit is contained in:
@@ -151,6 +151,7 @@ function netscriptGrow(exp, workerScript) {
|
||||
+ formatNumber(growthPercentage*100 - 100, 6) + "%");
|
||||
var expGain = 0.5 * Player.hacking_exp_mult;
|
||||
workerScript.scriptRef.log("Gained " + expGain + " hacking experience");
|
||||
workerScript.scriptRef.onlineExpGained += expGain;
|
||||
Player.gainHackingExp(expGain);
|
||||
return Promise.resolve(growthPercentage);
|
||||
});
|
||||
@@ -197,6 +198,7 @@ function netscriptWeaken(exp, workerScript) {
|
||||
workerScript.scriptRef.log("Gained 3 hacking experience");
|
||||
var expGain = 3 * Player.hacking_exp_mult;
|
||||
workerScript.scriptRef.log("Gained " + expGain + " hacking experience");
|
||||
workerScript.scriptRef.onlineExpGained += expGain;
|
||||
Player.gainHackingExp(expGain);
|
||||
return Promise.resolve(CONSTANTS.ServerWeakenAmount);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user