mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-09 09:07:47 +02:00
VERSION: Update game version to 2.2 (#240)
Includes some bug fixes: * Fix sleeve shock internal/display discrepancy (0-100 vs 0-100) * Special error message if ns function called without a this * Change whitespace to pre-wrap for dialog box. * Fix bug where idle sleeves do not consume cycles but still recover shock from those cycles. Now they do not recover during idle. * attempted to tag commit as v2.2.0
This commit is contained in:
@@ -11,8 +11,8 @@ export class SleeveRecoveryWork extends Work {
|
||||
}
|
||||
|
||||
process(sleeve: Sleeve, cycles: number) {
|
||||
sleeve.shock = Math.min(100, sleeve.shock + 0.0002 * cycles);
|
||||
if (sleeve.shock >= 100) sleeve.stopWork();
|
||||
sleeve.shock = Math.max(0, sleeve.shock - 0.0002 * cycles);
|
||||
if (sleeve.shock <= 0) sleeve.stopWork();
|
||||
}
|
||||
|
||||
APICopy() {
|
||||
|
||||
Reference in New Issue
Block a user