Vigilante Justice now reduces wanted by a percentage to help players stuck with very high wanted level.

This commit is contained in:
Olivier Gagnon
2021-05-29 12:48:58 -04:00
parent 75b2806c93
commit 60d6d49c43
15 changed files with 29 additions and 39 deletions
+1 -4
View File
@@ -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;
}