mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
Fix phyzical WKS effects being applied when queued
This commit is contained in:
parent
ab034f6f1a
commit
c03b2d5227
@ -17,7 +17,7 @@ export function calculateSellInformationCashReward(
|
|||||||
Math.pow(difficulty, 3) *
|
Math.pow(difficulty, 3) *
|
||||||
3e3 *
|
3e3 *
|
||||||
levelBonus *
|
levelBonus *
|
||||||
(player.hasAugmentation(AugmentationNames.WKSharmonizer) ? 1.5 : 1) *
|
(player.hasAugmentation(AugmentationNames.WKSharmonizer, true) ? 1.5 : 1) *
|
||||||
BitNodeMultipliers.InfiltrationMoney
|
BitNodeMultipliers.InfiltrationMoney
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -35,7 +35,7 @@ export function calculateTradeInformationRepReward(
|
|||||||
Math.pow(difficulty, 3) *
|
Math.pow(difficulty, 3) *
|
||||||
3e3 *
|
3e3 *
|
||||||
levelBonus *
|
levelBonus *
|
||||||
(player.hasAugmentation(AugmentationNames.WKSharmonizer) ? 1.5 : 1) *
|
(player.hasAugmentation(AugmentationNames.WKSharmonizer, true) ? 1.5 : 1) *
|
||||||
BitNodeMultipliers.InfiltrationMoney
|
BitNodeMultipliers.InfiltrationMoney
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -47,5 +47,7 @@ export function calculateInfiltratorsRepReward(player: IPlayer, faction: Faction
|
|||||||
}, 0);
|
}, 0);
|
||||||
const baseRepGain = (difficulty / maxStartingSecurityLevel) * 5000;
|
const baseRepGain = (difficulty / maxStartingSecurityLevel) * 5000;
|
||||||
|
|
||||||
return baseRepGain * (player.hasAugmentation(AugmentationNames.WKSharmonizer) ? 2 : 1) * (1 + faction.favor / 100);
|
return (
|
||||||
|
baseRepGain * (player.hasAugmentation(AugmentationNames.WKSharmonizer, true) ? 2 : 1) * (1 + faction.favor / 100)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ export function Game(props: IProps): React.ReactElement {
|
|||||||
// it's clear they're not meant to
|
// it's clear they're not meant to
|
||||||
const damage = options?.automated
|
const damage = options?.automated
|
||||||
? player.hp
|
? player.hp
|
||||||
: props.StartingDifficulty * 3 * (player.hasAugmentation(AugmentationNames.WKSharmonizer) ? 0.5 : 1);
|
: props.StartingDifficulty * 3 * (player.hasAugmentation(AugmentationNames.WKSharmonizer, true) ? 0.5 : 1);
|
||||||
if (player.takeDamage(damage)) {
|
if (player.takeDamage(damage)) {
|
||||||
router.toCity();
|
router.toCity();
|
||||||
return;
|
return;
|
||||||
|
@ -24,7 +24,7 @@ interface IProps {
|
|||||||
export function GameTimer(props: IProps): React.ReactElement {
|
export function GameTimer(props: IProps): React.ReactElement {
|
||||||
const player = use.Player();
|
const player = use.Player();
|
||||||
const [v, setV] = useState(100);
|
const [v, setV] = useState(100);
|
||||||
const totalMillis = (player.hasAugmentation(AugmentationNames.WKSharmonizer) ? 1.3 : 1) * props.millis;
|
const totalMillis = (player.hasAugmentation(AugmentationNames.WKSharmonizer, true) ? 1.3 : 1) * props.millis;
|
||||||
|
|
||||||
const tick = 200;
|
const tick = 200;
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user