INFILTRATION: Add HP and damage to Intro UI (#1242)

This commit is contained in:
catloversg
2024-05-09 07:10:20 +07:00
committed by GitHub
parent 6a1691fe54
commit 6f009679ad
4 changed files with 22 additions and 3 deletions
+6
View File
@@ -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);
}