Skip to content

Commit

Permalink
Last pass on sim
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignose committed Dec 4, 2023
1 parent b4aa24c commit 9fa077d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function sellMiscellaneousItems(): void {
}

export function computeHotRes(): number {
const cloake = have($item`vampyric cloake`) ? 2 : 0;
const cloake = have($item`vampyric cloake`) ? 5 : 0;
const foam =
have($item`Fourth of May Cosplay Saber`) &&
have($item`industrial fire extinguisher`) &&
Expand All @@ -178,7 +178,8 @@ export function computeHotRes(): number {
have($familiar`Exotic Parrot`) && famWt >= 15 ? 2 : have($familiar`Exotic Parrot`) ? 1 : 0;

const extingo = have($item`industrial fire extinguisher`) ? 3 : 0;
const parka = have($item`Jurassic Parka`) ? 1 : 0;
const shield = have($skill`Meteor Shower`) ? 3 : 0;
const parka = have($item`Jurassic Parka`) ? 3 : 0;
const sweatpants = have($item`designer sweatpants`) ? 1 : 0;
const paw = have($item`cursed monkey's paw`) ? 2 : 0;
const crimbo = have($skill`Crimbo Training: Coal Taster`) ? 1 : 0;
Expand All @@ -190,6 +191,7 @@ export function computeHotRes(): number {
60 -
sumNumbers([
cloake,
shield,
foam,
factory,
horse,
Expand Down Expand Up @@ -460,6 +462,7 @@ export function computeBoozeDrop(): number {
const madloot = have($skill`Mad Looting Skillz`) ? 20 : 0;
const guzzlin = have($skill`Always Never Not Guzzling`) ? 25 : 0;
const crimbo = have($skill`Crimbo Training: Bartender`) ? 15 : 0;
const lighthouse = have($item`august scepter`) ? 50 : 0;

const all = sumNumbers([
loded,
Expand Down Expand Up @@ -487,6 +490,7 @@ export function computeBoozeDrop(): number {
madloot,
guzzlin,
crimbo,
lighthouse,
]);

const addWish = all <= 780 ? 200 : 0;
Expand Down
6 changes: 4 additions & 2 deletions src/sim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,9 @@ export function checkRequirements(): void {
}

export function checkTests(): void {
print(`Note: The below does not consider pulls, and assumes stat and HP tests take 1 turn each.`);
print(
`Note: The below does not consider pulls or seeded items, and assumes stat and HP tests take 1 turn each.`
);
const hotResTestTurns = computeHotRes();
print(`Hot Res Test expected to take ${hotResTestTurns} turns.`);

Expand All @@ -636,7 +638,7 @@ export function checkTests(): void {
print(`Weapon Damage Test expected to take ${wDmgTestTurns} turns.`);

const sDmgTestTurns = computeSpellDamage();
print(`Weapon Damage Test expected to take ${sDmgTestTurns} turns.`);
print(`Spell Damage Test expected to take ${sDmgTestTurns} turns.`);

const ncTest = computeCombatFrequency();
const ncTestTurns = Math.max(1, Math.floor((100 + ncTest) / 5));
Expand Down

0 comments on commit 9fa077d

Please sign in to comment.