mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Fix indentation
This commit is contained in:
parent
b731b9946e
commit
30f6d157d9
@ -3,12 +3,11 @@
|
|||||||
// for information on how to calculate this
|
// for information on how to calculate this
|
||||||
|
|
||||||
export function favorToRep(f: number): number {
|
export function favorToRep(f: number): number {
|
||||||
const raw = 25000 * (Math.pow(1.02, f) - 1);
|
const raw = 25000 * (Math.pow(1.02, f) - 1);
|
||||||
return Math.round(raw * 10000) / 10000; // round to make things easier.
|
return Math.round(raw * 10000) / 10000; // round to make things easier.
|
||||||
}
|
}
|
||||||
|
|
||||||
export function repToFavor(r: number): number {
|
export function repToFavor(r: number): number {
|
||||||
const raw = Math.log(r / 25000 + 1) / Math.log(1.02);
|
const raw = Math.log(r / 25000 + 1) / Math.log(1.02);
|
||||||
return Math.round(raw * 10000) / 10000; // round to make things easier.
|
return Math.round(raw * 10000) / 10000; // round to make things easier.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user