Skip to content

Commit

Permalink
Set mindblock duration to fixed 12 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
minetoblend authored Aug 13, 2024
1 parent be44537 commit efa802f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export class JobsCommand extends Subcommand {
outcomeMessage.push(messages[Math.floor(Math.random() * messages.length)]);

if (Math.random() < 0.2) {
card.jobMindblockedUntil = new Date(Date.now() + (12 + Math.random() * 24) * 60 * 60 * 1000);
card.jobMindblockedUntil = new Date(Date.now() + /* 12 hours */ 12 * 60 * 60 * 1000);
card.jobMotivation = Math.max(1, Math.min(card.jobMotivation - 2, 4));

await tx.getRepository(Card).save(card);
Expand Down

0 comments on commit efa802f

Please sign in to comment.