This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Olivier Gagnon
committed
Jun 9, 2024
1 parent
58a4719
commit e2e7150
Showing
8 changed files
with
373 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { Glitch } from "@nsdefs"; | ||
|
||
export const glitchMaxLvl: Record<Glitch, number> = { | ||
[Glitch.Segmentation]: 10, | ||
[Glitch.Roaming]: 10, | ||
[Glitch.Encryption]: 7, | ||
[Glitch.Magnetism]: 10, | ||
[Glitch.Rust]: 10, | ||
[Glitch.Friction]: 3, | ||
[Glitch.Isolation]: 3, | ||
[Glitch.Virtualization]: 3, | ||
[Glitch.Jamming]: 3, | ||
}; | ||
|
||
export const giltchMultCoefficients: Record<Glitch, number> = { | ||
[Glitch.Segmentation]: 0, // 1, | ||
[Glitch.Roaming]: 0, // 1, | ||
[Glitch.Encryption]: 0, // 0.1, | ||
[Glitch.Magnetism]: 0.2, | ||
[Glitch.Rust]: 0, // 1, | ||
[Glitch.Friction]: 0.2, | ||
[Glitch.Isolation]: 0.2, | ||
[Glitch.Virtualization]: 0.2, | ||
[Glitch.Jamming]: 0.2, | ||
}; | ||
|
||
export const glitchMult = (glitch: Glitch, lvl: number) => 1 + lvl * giltchMultCoefficients[glitch]; | ||
|
||
// move hinderance | ||
export const frictionMult = (lvl: number) => Math.pow(1.25, lvl); | ||
|
||
// transfer slow down | ||
export const isolationMult = (lvl: number) => Math.pow(2, lvl); | ||
|
||
// install/uninstall slow down | ||
export const virtualizationMult = (lvl: number) => Math.pow(3, lvl); | ||
|
||
// reduce slow down | ||
export const jammingMult = (lvl: number) => Math.pow(1.3, lvl); | ||
|
||
// energy loss | ||
export const magnetismLoss = (lvl: number) => lvl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.