mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 19:37:07 +02:00
Vigilante Justice now reduces wanted by a percentage to help players stuck with very high wanted level.
This commit is contained in:
+1
-4
@@ -1,14 +1,11 @@
|
||||
import { Factions } from "./Faction/Factions";
|
||||
import { IPlayer } from "./PersonObjects/IPlayer";
|
||||
|
||||
export let LastExportBonus: number = 0;
|
||||
export let LastExportBonus = 0;
|
||||
|
||||
const bonusTimer = 24*60*60*1000; // 24h
|
||||
export function canGetBonus(): boolean {
|
||||
const now = (new Date()).getTime()
|
||||
console.log(now);
|
||||
console.log(LastExportBonus);
|
||||
console.log(now - LastExportBonus);
|
||||
if(now - LastExportBonus > bonusTimer) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user