mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 01:32:55 +02:00
Added sf minus 1, exploits
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
*/
|
||||
|
||||
export enum Exploit {
|
||||
UndocumentedFunctionCall = 'UndocumentedFunctionCall',
|
||||
EditSaveFile = 'EditSaveFile',
|
||||
PrototypeTampering = 'PrototypeTampering'
|
||||
}
|
||||
|
||||
const names: {
|
||||
[key: string]: string;
|
||||
} = {
|
||||
'UndocumentedFunctionCall': 'by looking beyond the documentation.',
|
||||
'EditSaveFile': 'by editing your save file.',
|
||||
'PrototypeTampering': 'by tampering with Numbers prototype.',
|
||||
}
|
||||
|
||||
|
||||
export function ExploitName(exploit: string): string {
|
||||
return names[exploit];
|
||||
}
|
||||
|
||||
export function sanitizeExploits(exploits: string[]): string[] {
|
||||
return exploits.filter((e: string) => Object.keys(Exploit).includes(e));
|
||||
}
|
||||
Reference in New Issue
Block a user