mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
fix something about covenant sleeve purchases
This commit is contained in:
parent
eb6f016ac1
commit
58d652da54
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -104,7 +104,7 @@ function MainPage({ faction, rerender, onAugmentations }: IMainProps): React.Rea
|
|||||||
const favorToDonate = Math.floor(CONSTANTS.BaseFavorToDonate * BitNodeMultipliers.RepToDonateToFaction);
|
const favorToDonate = Math.floor(CONSTANTS.BaseFavorToDonate * BitNodeMultipliers.RepToDonateToFaction);
|
||||||
const canDonate = faction.favor >= favorToDonate;
|
const canDonate = faction.favor >= favorToDonate;
|
||||||
|
|
||||||
const canPurchaseSleeves = faction.name === "The Covenant" && p.bitNodeN >= 10 && SourceFileFlags[10];
|
const canPurchaseSleeves = faction.name === "The Covenant" && p.bitNodeN === 10;
|
||||||
|
|
||||||
let canAccessGang = p.canAccessGang() && GangNames.includes(faction.name);
|
let canAccessGang = p.canAccessGang() && GangNames.includes(faction.name);
|
||||||
if (p.inGang()) {
|
if (p.inGang()) {
|
||||||
|
@ -198,7 +198,7 @@ export const RamCosts: IMap<any> = {
|
|||||||
installBackdoor: RamCostConstants.ScriptSingularityFn1RamCost,
|
installBackdoor: RamCostConstants.ScriptSingularityFn1RamCost,
|
||||||
getStats: RamCostConstants.ScriptSingularityFn1RamCost / 4,
|
getStats: RamCostConstants.ScriptSingularityFn1RamCost / 4,
|
||||||
getCharacterInformation: RamCostConstants.ScriptSingularityFn1RamCost / 4,
|
getCharacterInformation: RamCostConstants.ScriptSingularityFn1RamCost / 4,
|
||||||
getPlayer: RamCostConstants.ScriptSingularityFn5RamCost,
|
getPlayer: RamCostConstants.ScriptSingularityFn1RamCost / 4,
|
||||||
hospitalize: RamCostConstants.ScriptSingularityFn1RamCost / 4,
|
hospitalize: RamCostConstants.ScriptSingularityFn1RamCost / 4,
|
||||||
isBusy: RamCostConstants.ScriptSingularityFn1RamCost / 4,
|
isBusy: RamCostConstants.ScriptSingularityFn1RamCost / 4,
|
||||||
stopAction: RamCostConstants.ScriptSingularityFn1RamCost / 2,
|
stopAction: RamCostConstants.ScriptSingularityFn1RamCost / 2,
|
||||||
|
@ -30,7 +30,7 @@ export function CovenantPurchasesRoot(props: IProps): React.ReactElement {
|
|||||||
* Get the cost to purchase a new Duplicate Sleeve
|
* Get the cost to purchase a new Duplicate Sleeve
|
||||||
*/
|
*/
|
||||||
function purchaseCost(): number {
|
function purchaseCost(): number {
|
||||||
return (player.sleevesFromCovenant + 1) * BaseCostPerSleeve;
|
return Math.pow(10, player.sleevesFromCovenant) * BaseCostPerSleeve;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user