Skip to content

Add time-based loot drop weight multipliers#568

Merged
holzmaster merged 7 commits intomasterfrom
feature/time-based-loot-weights
Feb 4, 2026
Merged

Add time-based loot drop weight multipliers#568
holzmaster merged 7 commits intomasterfrom
feature/time-based-loot-weights

Conversation

@PatchRequest
Copy link
Collaborator

Morgens (6-12 Uhr): Kaffeemühle, Krankschreibung, Oettinger
Abends (18-24 Uhr): Döner, Ayran, Sahne, Trichter, Gauloises

Morgens (6-12 Uhr): Kaffeemühle, Krankschreibung, Oettinger
Abends (18-24 Uhr): Döner, Ayran, Sahne, Trichter, Gauloises

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@holzmaster
Copy link
Collaborator

Hab den aktuellen master reingemergt

Comment on lines +370 to +378
// :shibakek:
switch (true) {
case 6 <= hour && hour <= 12:
return "morning";
case 18 <= hour && hour <= 24:
return "evening";
default:
return undefined;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bevor du es anstreichst:
Ich wollte es erst als ternary untereinander schreiben, aber das wurde vom formatter immer in eine einzige Zeile formatiert, weils zu kurz war. Das wollte ich so nicht lassen
Und 2 if-statements waren zu uncool, daher der hack :harold:

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

Hallo, hier kannst du jetzt deine tolle neue Funktion testen: https://discord.gg/pJjfF6n2ec

const hour = zonedNow().hour;

// :shibakek:
switch (true) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wie unnötig

@holzmaster holzmaster merged commit 9f50aab into master Feb 4, 2026
4 checks passed
@holzmaster holzmaster deleted the feature/time-based-loot-weights branch February 4, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants