Simplified some booleans and if elses

This commit is contained in:
BB
2022-03-01 20:37:47 +01:00
parent 570b8caf78
commit 0eced1b9f2
10 changed files with 15 additions and 48 deletions
+1 -2
View File
@@ -6,8 +6,7 @@ export let LastExportBonus = 0;
const bonusTimer = 24 * 60 * 60 * 1000; // 24h
export function canGetBonus(): boolean {
const now = new Date().getTime();
if (now - LastExportBonus > bonusTimer) return true;
return false;
return now - LastExportBonus > bonusTimer;
}
export function onExport(p: IPlayer): void {