Skip to content

Commit

Permalink
Remove randomness from motivation regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
minetoblend authored Aug 13, 2024
1 parent efa802f commit 29cd758
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/commands/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export class JobsCommand extends Subcommand {

setInterval(() => {
this.updateMotivation();
}, 10 * 60_000);
}, 4 * 60 * 60 * 1000);

this.updateMotivation();
}

registerApplicationCommands(registry: Subcommand.Registry) {
Expand Down Expand Up @@ -395,7 +397,7 @@ export class JobsCommand extends Subcommand {
const alteredCards: Card[] = [];

for (const card of cards) {
if (card.jobMotivation < 7 && Math.random() < 0.2) {
if (card.jobMotivation < 7) {
card.jobMotivation++;
alteredCards.push(card);
}
Expand Down

0 comments on commit 29cd758

Please sign in to comment.