Skip to content

Commit

Permalink
Fix missing activity on calcMaxTripLength
Browse files Browse the repository at this point in the history
  • Loading branch information
themrrobert committed Feb 4, 2024
1 parent df51415 commit e2b7e99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/baxtorianBathhouses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export async function baxtorianBathhousesStartCommand({
return 'Your minion is busy.';
}
const userBank = user.bank;
const maxTripLength = calcMaxTripLength(user);
const maxTripLength = calcMaxTripLength(user, 'BaxtorianBathhouses');
const durationPerPath = Time.Minute * 10;
const quantity = Math.floor(maxTripLength / durationPerPath);
const duration = quantity * durationPerPath;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/invention/disassemble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export async function handleDisassembly({

// The time it takes to disassemble 1 of this item.
let timePer = Time.Second * 0.33;
const maxTripLength = calcMaxTripLength(user);
const maxTripLength = calcMaxTripLength(user, 'Disassembling');

let messages: string[] = [];
if (bank.has('Dwarven toolkit')) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/invention/research.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export async function researchCommand({
if (!materialTypes.includes(material)) {
return "That's not a valid material.";
}
const maxTripLength = calcMaxTripLength(user);
const maxTripLength = calcMaxTripLength(user, 'Research');
let timePerResearchPerMaterial = Time.Second * 3.59;
const maxQuantity = Math.floor(maxTripLength / timePerResearchPerMaterial);
let quantity = inputQuantity ?? maxQuantity;
Expand Down

0 comments on commit e2b7e99

Please sign in to comment.