-
Notifications
You must be signed in to change notification settings - Fork 24
Add time-based loot drop weight multipliers #568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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>
|
Hab den aktuellen master reingemergt |
| // :shibakek: | ||
| switch (true) { | ||
| case 6 <= hour && hour <= 12: | ||
| return "morning"; | ||
| case 18 <= hour && hour <= 24: | ||
| return "evening"; | ||
| default: | ||
| return undefined; | ||
| } |
There was a problem hiding this comment.
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:
|
Hallo, hier kannst du jetzt deine tolle neue Funktion testen: https://discord.gg/pJjfF6n2ec |
| const hour = zonedNow().hour; | ||
|
|
||
| // :shibakek: | ||
| switch (true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wie unnötig
Morgens (6-12 Uhr): Kaffeemühle, Krankschreibung, Oettinger
Abends (18-24 Uhr): Döner, Ayran, Sahne, Trichter, Gauloises