mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-06 23:57:49 +02:00
MISC: Refactor favor code (#1321)
This commit is contained in:
@@ -24,6 +24,7 @@ import { companyNameAsLocationName } from "../../Company/utils";
|
||||
import { JobSummary } from "../../Company/ui/JobSummary";
|
||||
import { StatsTable } from "../../ui/React/StatsTable";
|
||||
import { JobListings } from "../../Company/ui/JobListings";
|
||||
import { calculateFavorAfterResetting } from "../../Faction/formulas/favor";
|
||||
|
||||
interface IProps {
|
||||
companyName: CompanyName;
|
||||
@@ -98,7 +99,6 @@ export function CompanyLocation(props: IProps): React.ReactElement {
|
||||
}
|
||||
|
||||
const isEmployedHere = currentPosition != null;
|
||||
const favorGain = company.getFavorGain();
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -120,8 +120,9 @@ export function CompanyLocation(props: IProps): React.ReactElement {
|
||||
key="repLabel"
|
||||
title={
|
||||
<>
|
||||
You will have <Favor favor={company.favor + favorGain} /> company favor upon resetting after
|
||||
installing Augmentations
|
||||
You will have{" "}
|
||||
<Favor favor={calculateFavorAfterResetting(company.favor, company.playerReputation)} /> company
|
||||
favor upon resetting after installing Augmentations
|
||||
</>
|
||||
}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user