Skip to content

Commit

Permalink
Use fixed job duration
Browse files Browse the repository at this point in the history
  • Loading branch information
minetoblend committed Aug 13, 2024
1 parent 29cd758 commit 8c3a94c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ export class JobsCommand extends Subcommand {
for (const assignment of assignments) {
let duration = 60 * 60 * 1000;

duration *= 1 - (Math.random() * 0.3 + (assignment.card.jobEffort / 240) * 0.3);
if (assignment.card.jobMindblocked) {
duration *= 1.5;
}

await repository.update(
{
Expand Down

0 comments on commit 8c3a94c

Please sign in to comment.