mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
cna buy the red pill with negative money
This commit is contained in:
parent
49d081f42e
commit
40d550992a
@ -669,7 +669,7 @@ function purchaseAugmentation(aug, fac, sing=false) {
|
|||||||
var txt = "You must first purchase or install " + aug.prereqs.join(",") + " before you can " +
|
var txt = "You must first purchase or install " + aug.prereqs.join(",") + " before you can " +
|
||||||
"purchase this one.";
|
"purchase this one.";
|
||||||
if (sing) {return txt;} else {dialogBoxCreate(txt);}
|
if (sing) {return txt;} else {dialogBoxCreate(txt);}
|
||||||
} else if (Player.money.lt(aug.baseCost * factionInfo.augmentationPriceMult)) {
|
} else if (aug.baseCost !== 0 && Player.money.lt(aug.baseCost * factionInfo.augmentationPriceMult)) {
|
||||||
let txt = "You don't have enough money to purchase " + aug.name;
|
let txt = "You don't have enough money to purchase " + aug.name;
|
||||||
if (sing) {return txt;}
|
if (sing) {return txt;}
|
||||||
dialogBoxCreate(txt);
|
dialogBoxCreate(txt);
|
||||||
@ -677,7 +677,7 @@ function purchaseAugmentation(aug, fac, sing=false) {
|
|||||||
let txt = "You don't have enough faction reputation to purchase " + aug.name;
|
let txt = "You don't have enough faction reputation to purchase " + aug.name;
|
||||||
if (sing) {return txt;}
|
if (sing) {return txt;}
|
||||||
dialogBoxCreate(txt);
|
dialogBoxCreate(txt);
|
||||||
} else if (Player.money.gte(aug.baseCost * factionInfo.augmentationPriceMult)) {
|
} else if (aug.baseCost === 0 || Player.money.gte(aug.baseCost * factionInfo.augmentationPriceMult)) {
|
||||||
if (Player.firstAugPurchased === false) {
|
if (Player.firstAugPurchased === false) {
|
||||||
Player.firstAugPurchased = true;
|
Player.firstAugPurchased = true;
|
||||||
document.getElementById("augmentations-tab").style.display = "list-item";
|
document.getElementById("augmentations-tab").style.display = "list-item";
|
||||||
|
Loading…
Reference in New Issue
Block a user