Skip to content

Commit

Permalink
Fix fam/nc order (#33)
Browse files Browse the repository at this point in the history
* Fix bowling

* Fix NC
  • Loading branch information
Ignose authored Nov 12, 2023
1 parent 886d9c2 commit bafd2ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
20 changes: 5 additions & 15 deletions src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ export function camelFightsLeft(): number {
}

export function computeCombatFrequency(): number {
const vipHat = have($item`Clan VIP Lounge key`) ? -5 : 0;
const hat = vipHat;
//const vipHat = have($item`Clan VIP Lounge key`) ? -5 : 0;
//const hat = vipHat;

const protopack = have($item`protonic accelerator pack`) ? -5 : 0;
const back = protopack;
Expand All @@ -491,7 +491,7 @@ export function computeCombatFrequency(): number {
const pants = pantogram;

const kgb = have($item`Kremlin's Greatest Briefcase`) && !args.savekgb ? -5 : 0;
const atlas = get("hasMaydayContract") && !args.savemayday ? -5 : 0;
const atlas = have($item`atlas of local maps`) ? -5 : 0;
const accessories = sumNumbers([kgb, atlas]);

const rose = -20;
Expand Down Expand Up @@ -530,21 +530,11 @@ export function computeCombatFrequency(): number {
const darkHorse = get("horseryAvailable") ? -5 : 0;
const others = darkHorse;

const total = sumNumbers([
hat,
shirt,
back,
offhand,
pants,
accessories,
effects,
familiar,
others,
]);
const total = sumNumbers([shirt, back, offhand, pants, accessories, effects, familiar, others]);

print("Determining if we should run NC before fam test...");
print(
`Hat ${hat}, Shirt ${shirt}, Back ${back}, Offhand ${offhand}, Pants ${pants}, Accessories ${accessories}, Effects ${effects}, Others ${others}`
`Shirt ${shirt}, Back ${back}, Offhand ${offhand}, Pants ${pants}, Accessories ${accessories}, Effects ${effects}, Others ${others}`
);
if (total <= -95) {
print(`Total ${total} <= -95`, "green");
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function main(command?: string): void {

const swapMainStatTest = have($item`Deck of Every Card`) && myPrimestat === $stat`Muscle`;

const swapFamAndNCTests = computeCombatFrequency() <= -95;
const swapFamAndNCTests = computeCombatFrequency() <= -85;

const tasks: Task[] = getTasks([
RunStartQuest,
Expand Down

0 comments on commit bafd2ba

Please sign in to comment.