Fixed NMI aug having effect before installing

This commit is contained in:
Mughur 2022-09-14 20:54:03 +03:00
commit 75c738cdb0
5 changed files with 6 additions and 6 deletions

@ -1462,7 +1462,7 @@ export function sourceFileLvl(this: IPlayer, n: number): number {
export function focusPenalty(this: IPlayer): number {
let focus = 1;
if (!this.hasAugmentation(AugmentationNames["NeuroreceptorManager"])) {
if (!this.hasAugmentation(AugmentationNames.NeuroreceptorManager, true)) {
focus = this.focus ? 1 : CONSTANTS.BaseFocusBonus;
}
return focus;

@ -35,7 +35,7 @@ export class CompanyWork extends Work {
getGainRates(player: IPlayer): WorkStats {
let focusBonus = 1;
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager)) {
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager, true)) {
focusBonus = player.focus ? 1 : CONSTANTS.BaseFocusBonus;
}
return scaleWorkStats(calculateCompanyWorkStats(player, player, this.getCompany()), focusBonus);

@ -58,7 +58,7 @@ export class CreateProgramWork extends Work {
process(player: IPlayer, cycles: number): boolean {
let focusBonus = 1;
if (!player.hasAugmentation(AugmentationNames["NeuroreceptorManager"])) {
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager, true)) {
focusBonus = player.focus ? 1 : CONSTANTS.BaseFocusBonus;
}
//Higher hacking skill will allow you to create programs faster

@ -39,7 +39,7 @@ export class FactionWork extends Work {
getReputationRate(player: IPlayer): number {
let focusBonus = 1;
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager)) {
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager,true)) {
focusBonus = player.focus ? 1 : CONSTANTS.BaseFocusBonus;
}
return calculateFactionRep(player, this.factionWorkType, this.getFaction().favor) * focusBonus;
@ -47,7 +47,7 @@ export class FactionWork extends Work {
getExpRates(player: IPlayer): WorkStats {
let focusBonus = 1;
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager)) {
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager,true)) {
focusBonus = player.focus ? 1 : CONSTANTS.BaseFocusBonus;
}
const rate = calculateFactionExp(player, this.factionWorkType);

@ -37,7 +37,7 @@ export class GraftingWork extends Work {
process(player: IPlayer, cycles: number): boolean {
let focusBonus = 1;
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager)) {
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager,true)) {
focusBonus = player.focus ? 1 : CONSTANTS.BaseFocusBonus;
}