mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 03:00:56 +02:00
INFILTRATION: Add HP and damage to Intro UI (#1242)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { KEY } from "../utils/helpers/keyCodes";
|
||||
import { Player } from "@player";
|
||||
import { AugmentationName } from "@enums";
|
||||
|
||||
export function random(min: number, max: number): number {
|
||||
return Math.random() * (max - min) + min;
|
||||
@@ -27,3 +29,7 @@ export function getArrow(event: KeyboardEvent): Arrow | undefined {
|
||||
return rightArrowSymbol;
|
||||
}
|
||||
}
|
||||
|
||||
export function calculateDamageAfterFailingInfiltration(startingDifficulty: number): number {
|
||||
return startingDifficulty * 3 * (Player.hasAugmentation(AugmentationName.WKSharmonizer, true) ? 0.5 : 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user