mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
UI: Make tooltips for CoffeeParty better reflect reality (#269)
This commit is contained in:
parent
aa50378e18
commit
fe5344f232
@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user