mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
changes all references to "heath reduction to damage reduction"
This commit is contained in:
parent
7f288665d3
commit
90d1c22aca
@ -55,7 +55,7 @@ export interface IConstructorParams {
|
|||||||
infiltration_trade_mult?: number;
|
infiltration_trade_mult?: number;
|
||||||
infiltration_sell_mult?: number;
|
infiltration_sell_mult?: number;
|
||||||
infiltration_timer_mult?: number;
|
infiltration_timer_mult?: number;
|
||||||
infiltration_health_reduction_mult?: number;
|
infiltration_damage_reduction_mult?: number;
|
||||||
|
|
||||||
startingMoney?: number;
|
startingMoney?: number;
|
||||||
programs?: string[];
|
programs?: string[];
|
||||||
@ -380,12 +380,12 @@ function generateStatsDescription(mults: IMap<number>, programs?: string[], star
|
|||||||
<br />+{f(mults.infiltration_timer_mult - 1)} Infiltration time per minigame
|
<br />+{f(mults.infiltration_timer_mult - 1)} Infiltration time per minigame
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
if (mults.infiltration_health_reduction_mult)
|
if (mults.infiltration_damage_reduction_mult)
|
||||||
desc = (
|
desc = (
|
||||||
<>
|
<>
|
||||||
{desc}
|
{desc}
|
||||||
<br />
|
<br />
|
||||||
{f(mults.infiltration_health_reduction_mult - 1)} Infiltration health lost per failed minigame
|
{f(mults.infiltration_damage_reduction_mult - 1)} Infiltration health lost per failed minigame
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -582,8 +582,8 @@ export class Augmentation {
|
|||||||
if (params.infiltration_timer_mult) {
|
if (params.infiltration_timer_mult) {
|
||||||
this.mults.infiltration_timer_mult = params.infiltration_timer_mult;
|
this.mults.infiltration_timer_mult = params.infiltration_timer_mult;
|
||||||
}
|
}
|
||||||
if (params.infiltration_health_reduction_mult) {
|
if (params.infiltration_damage_reduction_mult) {
|
||||||
this.mults.infiltration_health_reduction_mult = params.infiltration_health_reduction_mult;
|
this.mults.infiltration_damage_reduction_mult = params.infiltration_damage_reduction_mult;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.stats === undefined)
|
if (params.stats === undefined)
|
||||||
|
@ -152,7 +152,7 @@ export const initInfiltratorsAugmentations = (): Augmentation[] => [
|
|||||||
name: AugmentationNames.BitaniumArmorAlloy,
|
name: AugmentationNames.BitaniumArmorAlloy,
|
||||||
repCost: 5e2,
|
repCost: 5e2,
|
||||||
moneyCost: 1e6,
|
moneyCost: 1e6,
|
||||||
infiltration_health_reduction_mult: 0.7,
|
infiltration_damage_reduction_mult: 0.7,
|
||||||
info:
|
info:
|
||||||
`Deep in the mines of ${CityName.Ishima} miners found a strange new material, now known as bitanium after ` +
|
`Deep in the mines of ${CityName.Ishima} miners found a strange new material, now known as bitanium after ` +
|
||||||
"many iterations of experimenting it was found to be exceptional at increasing ones amour at absorbing " +
|
"many iterations of experimenting it was found to be exceptional at increasing ones amour at absorbing " +
|
||||||
|
@ -282,9 +282,9 @@ export function PlayerMultipliers(): React.ReactElement {
|
|||||||
1,
|
1,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Infiltration minigame health reduction",
|
"Infiltration minigame damage reduction",
|
||||||
Player.infiltration_health_reduction_mult,
|
Player.infiltration_damage_reduction_mult,
|
||||||
-1 * (1 - Player.infiltration_health_reduction_mult * mults.infiltration_health_reduction_mult),
|
-1 * (1 - Player.infiltration_damage_reduction_mult * mults.infiltration_damage_reduction_mult),
|
||||||
1,
|
1,
|
||||||
],
|
],
|
||||||
].map((data): MultiplierListItemData => (data as any).concat([Settings.theme.primary])),
|
].map((data): MultiplierListItemData => (data as any).concat([Settings.theme.primary])),
|
||||||
|
@ -93,7 +93,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.infiltration_health_reduction_mult;
|
: props.StartingDifficulty * 3 * player.infiltration_damage_reduction_mult;
|
||||||
if (player.takeDamage(damage)) {
|
if (player.takeDamage(damage)) {
|
||||||
router.toCity();
|
router.toCity();
|
||||||
return;
|
return;
|
||||||
|
@ -2479,7 +2479,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
|
|||||||
infiltration_trade_mult: Player.infiltration_trade_mult,
|
infiltration_trade_mult: Player.infiltration_trade_mult,
|
||||||
infiltration_sell_mult: Player.infiltration_sell_mult,
|
infiltration_sell_mult: Player.infiltration_sell_mult,
|
||||||
infiltration_timer_mult: Player.infiltration_timer_mult,
|
infiltration_timer_mult: Player.infiltration_timer_mult,
|
||||||
infiltration_health_reduction_mult: Player.infiltration_health_reduction_mult,
|
infiltration_damage_reduction_mult: Player.infiltration_damage_reduction_mult,
|
||||||
bitNodeN: Player.bitNodeN,
|
bitNodeN: Player.bitNodeN,
|
||||||
totalPlaytime: Player.totalPlaytime,
|
totalPlaytime: Player.totalPlaytime,
|
||||||
playtimeSinceLastAug: Player.playtimeSinceLastAug,
|
playtimeSinceLastAug: Player.playtimeSinceLastAug,
|
||||||
|
@ -129,7 +129,7 @@ export interface IPlayer {
|
|||||||
infiltration_trade_mult: number;
|
infiltration_trade_mult: number;
|
||||||
infiltration_sell_mult: number;
|
infiltration_sell_mult: number;
|
||||||
infiltration_timer_mult: number;
|
infiltration_timer_mult: number;
|
||||||
infiltration_health_reduction_mult: number;
|
infiltration_damage_reduction_mult: number;
|
||||||
|
|
||||||
createProgramReqLvl: number;
|
createProgramReqLvl: number;
|
||||||
factionWorkType: string;
|
factionWorkType: string;
|
||||||
|
@ -102,7 +102,7 @@ export abstract class Person {
|
|||||||
infiltration_trade_mult = 1;
|
infiltration_trade_mult = 1;
|
||||||
infiltration_sell_mult = 1;
|
infiltration_sell_mult = 1;
|
||||||
infiltration_timer_mult = 1;
|
infiltration_timer_mult = 1;
|
||||||
infiltration_health_reduction_mult = 1;
|
infiltration_damage_reduction_mult = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Augmentations
|
* Augmentations
|
||||||
@ -219,7 +219,7 @@ export abstract class Person {
|
|||||||
this.infiltration_trade_mult = 1;
|
this.infiltration_trade_mult = 1;
|
||||||
this.infiltration_sell_mult = 1;
|
this.infiltration_sell_mult = 1;
|
||||||
this.infiltration_timer_mult = 1;
|
this.infiltration_timer_mult = 1;
|
||||||
this.infiltration_health_reduction_mult = 1;
|
this.infiltration_damage_reduction_mult = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -138,7 +138,7 @@ export class PlayerObject implements IPlayer {
|
|||||||
infiltration_trade_mult: number;
|
infiltration_trade_mult: number;
|
||||||
infiltration_sell_mult: number;
|
infiltration_sell_mult: number;
|
||||||
infiltration_timer_mult: number;
|
infiltration_timer_mult: number;
|
||||||
infiltration_health_reduction_mult: number;
|
infiltration_damage_reduction_mult: number;
|
||||||
|
|
||||||
createProgramReqLvl: number;
|
createProgramReqLvl: number;
|
||||||
factionWorkType: string;
|
factionWorkType: string;
|
||||||
@ -476,7 +476,7 @@ export class PlayerObject implements IPlayer {
|
|||||||
this.infiltration_trade_mult = 1;
|
this.infiltration_trade_mult = 1;
|
||||||
this.infiltration_sell_mult = 1;
|
this.infiltration_sell_mult = 1;
|
||||||
this.infiltration_timer_mult = 1;
|
this.infiltration_timer_mult = 1;
|
||||||
this.infiltration_health_reduction_mult = 1;
|
this.infiltration_damage_reduction_mult = 1;
|
||||||
|
|
||||||
// Sleeves & Re-sleeving
|
// Sleeves & Re-sleeving
|
||||||
this.sleeves = [];
|
this.sleeves = [];
|
||||||
|
@ -320,7 +320,7 @@ export function resetMultipliers(this: IPlayer): void {
|
|||||||
this.infiltration_trade_mult = 1;
|
this.infiltration_trade_mult = 1;
|
||||||
this.infiltration_sell_mult = 1;
|
this.infiltration_sell_mult = 1;
|
||||||
this.infiltration_timer_mult = 1;
|
this.infiltration_timer_mult = 1;
|
||||||
this.infiltration_health_reduction_mult = 1;
|
this.infiltration_damage_reduction_mult = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function hasProgram(this: IPlayer, programName: string): boolean {
|
export function hasProgram(this: IPlayer, programName: string): boolean {
|
||||||
|
@ -502,7 +502,7 @@ export function CharacterStats(): React.ReactElement {
|
|||||||
["Infiltration sell", player.infiltration_sell_mult],
|
["Infiltration sell", player.infiltration_sell_mult],
|
||||||
["Infiltration trade", player.infiltration_trade_mult],
|
["Infiltration trade", player.infiltration_trade_mult],
|
||||||
["Infiltration minigame timer", player.infiltration_timer_mult],
|
["Infiltration minigame timer", player.infiltration_timer_mult],
|
||||||
["Infiltration minigame health reduction", -1 * (1 - player.infiltration_health_reduction_mult)],
|
["Infiltration minigame damage reduction", -1 * (1 - player.infiltration_damage_reduction_mult)],
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user