UI: Make tooltips for CoffeeParty better reflect reality (#269)

This commit is contained in:
David Walker 2023-01-02 06:49:36 -08:00 committed by GitHub
parent aa50378e18
commit fe5344f232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

@ -314,7 +314,12 @@ export function IndustryOffice(props: IProps): React.ReactElement {
{!division.hasResearch("AutoBrew") && (
<>
<Tooltip
title={<Typography>Provide your employees with coffee, increasing their energy by 5%</Typography>}
title={
<Typography>
Provide your employees with coffee, increasing their energy by half the difference to 100%, plus
1.5%
</Typography>
}
>
<span>
<Button

@ -38,11 +38,15 @@ export function ThrowPartyModal(props: IProps): React.ReactElement {
dialogBoxCreate("You don't have enough company funds to throw a party!");
} else {
const mult = ThrowParty(corp, props.office, cost);
// Each 5% multiplier gives an extra flat +1 to morale and happiness to make recovering from low morale easier.
const increase = mult > 1 ? (mult - 1) * 0.2 : 0;
if (mult > 0) {
dialogBoxCreate(
"You threw a party for the office! The morale and happiness of each employee increased by " +
numeralWrapper.formatPercentage(mult - 1),
numeralWrapper.formatPercentage(increase) +
" and was multiplied by " +
numeralWrapper.formatMultiplier(mult),
);
}