Skip to content

Commit

Permalink
Updated Learn Truth cost
Browse files Browse the repository at this point in the history
Updated the cost for Learn Truth in the Netscript functions file
  • Loading branch information
Sphyxis committed Feb 20, 2024
1 parent 0381bf9 commit fb29b2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/NetscriptFunctions/CharityORG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { CharityEvent } from "../CharityORG/CharityEvent";
import { LotteryConstants } from "../Lottery/data/LotteryConstants";
import { buyRandomTicket } from "../Lottery/Lotto";
import { cloneDeep } from "lodash";
import { currentNodeMults } from "../BitNode/BitNodeMultipliers";

export function NetscriptCharityORG(): InternalAPI<ICharityORG> {
/** Functions as an API check and also returns the charityORG object */
Expand Down Expand Up @@ -877,13 +878,14 @@ export function NetscriptCharityORG(): InternalAPI<ICharityORG> {
}
case "see the truth": {
// Not sure if this will stay
const cost = CharityORGConstants.CharityLearnTruthCost * currentNodeMults.CharityORGLearnTruth;
if (Player.hasAugmentation(AugmentationName.TheRedPill, false)) {
return false;
} else if (spend < 5000000000000) {
} else if (spend < cost) {
return false;
} else {
Player.queueAugmentation(AugmentationName.TheRedPill);
Player.karma -= 5000000000000;
Player.karma -= cost;
return true;
}
}
Expand Down

0 comments on commit fb29b2e

Please sign in to comment.