fix something about covenant sleeve purchases

This commit is contained in:
Olivier Gagnon 2021-11-05 21:57:41 -04:00
parent eb6f016ac1
commit 58d652da54
5 changed files with 6 additions and 6 deletions

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 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);
if (p.inGang()) {

@ -198,7 +198,7 @@ export const RamCosts: IMap<any> = {
installBackdoor: RamCostConstants.ScriptSingularityFn1RamCost,
getStats: RamCostConstants.ScriptSingularityFn1RamCost / 4,
getCharacterInformation: RamCostConstants.ScriptSingularityFn1RamCost / 4,
getPlayer: RamCostConstants.ScriptSingularityFn5RamCost,
getPlayer: RamCostConstants.ScriptSingularityFn1RamCost / 4,
hospitalize: RamCostConstants.ScriptSingularityFn1RamCost / 4,
isBusy: RamCostConstants.ScriptSingularityFn1RamCost / 4,
stopAction: RamCostConstants.ScriptSingularityFn1RamCost / 2,

@ -30,7 +30,7 @@ export function CovenantPurchasesRoot(props: IProps): React.ReactElement {
* Get the cost to purchase a new Duplicate Sleeve
*/
function purchaseCost(): number {
return (player.sleevesFromCovenant + 1) * BaseCostPerSleeve;
return Math.pow(10, player.sleevesFromCovenant) * BaseCostPerSleeve;
}
/**