mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-28 03:47:03 +02:00
MISC: Refactor favor code (#1321)
This commit is contained in:
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user