MISC: Refactor favor code (#1321)

This commit is contained in:
catloversg
2024-05-29 02:04:16 +07:00
committed by GitHub
parent b8d3109158
commit c2a56a6150
14 changed files with 117 additions and 68 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export function canGetBonus(): boolean {
export function onExport(): void {
if (!canGetBonus()) return;
for (const facName of Player.factions) {
Factions[facName].favor++;
Factions[facName].setFavor(Factions[facName].favor + 1);
}
LastExportBonus = new Date().getTime();
}