Created
February 17, 2022 17:39
-
-
Save Kroppeb/6d34bceba2c2aab6c18a45736d365345 to your computer and use it in GitHub Desktop.
Voidpet mood levels decision tree
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function predictor({adrenaline, noradrenaline, dopamine, serotonin, endorphins}: levels) { | |
if (adrenaline >= 90 && adrenaline !== 100) return 'is super pumped.'; | |
if (noradrenaline >= 90 && noradrenaline !== 100) return 'is sharp and ready.'; | |
if (serotonin >= 90 && serotonin !== 100) return 'is totally vibing out.'; | |
if (dopamine >= 90 && dopamine !== 100) return 'is feeling like a boss.'; | |
if (endorphins >= 90 && endorphins !== 100) return 'is giddy with excitement.'; | |
if (dopamine < -80 && serotonin < -80) { | |
if (adrenaline > 80) return "is on the verge of a panic attack."; | |
if (adrenaline < -80 && endorphins < -80) return "is having a no good, very bad day."; | |
return "is straight up depressed right now."; | |
} | |
if (adrenaline === 100) return "is about to pass out."; | |
if (noradrenaline === 100) return "is about to throw up."; | |
if (serotonin === 100) return "is getting dizzy with euphoria..."; | |
if (dopamine === 100) return "is getting delusionally hyper..."; | |
if (endorphins === 100) return "is feeling maniacal."; | |
if (adrenaline < 0 && noradrenaline < 0 && dopamine < 0 && serotonin < 0 && endorphins < 0) | |
return "just isn't having it today."; | |
if (serotonin === -100) return "is terribly upset."; | |
if (dopamine === -100) return "feels empty inside."; | |
if (adrenaline === -100) return "is bored to tears."; | |
if (noradrenaline === -100) return "is too distracted to even look at you."; | |
if (endorphins === -100) return "is horribly moody."; | |
if (adrenaline < -90) return "is really bored..."; | |
if (noradrenaline < -90) return "feels lethargic and distracted..."; | |
if (serotonin < -90) return "thinks it might be depressed."; | |
if (dopamine < -90) return "feels irritable, bored, and distracted."; | |
if (endorphins < -90) return "is feeling moody and cramped..."; | |
if (dopamine < -50) return "seems depressed."; | |
if (serotonin < -50) return "is really sad for some reason."; | |
if (endorphins < -50) return "is in a grumpy mood."; | |
if (adrenaline < -70) return "is feeling apathetic."; | |
if (noradrenaline < -70) return "appears disinterested."; | |
if (dopamine < -30) return "is feeling pretty bored."; | |
if (serotonin < -30) return "is quite downtrodden."; | |
if (endorphins < -30) return "is really cranky."; | |
if (adrenaline < -50) return "is feeling restless."; | |
if (noradrenaline < -50) return "is totally spaced out."; | |
if (adrenaline > 70) return "is a bit tired right now."; | |
if (noradrenaline > 70) return "is a bit overwhelmed."; | |
if (endorphins > 70) return "is a little overexcited."; | |
if (dopamine > 80) return "is extremely pleased with itself."; | |
if (serotonin > 80) return "is very content."; | |
if (dopamine < 0) return "is feeling a little bored."; | |
if (serotonin < 0) return "is a bit downtrodden."; | |
if (endorphins < 0) return "is a bit lethargic."; | |
if (adrenaline < -20) return "is feeling a little restless."; | |
if (noradrenaline < -20) return "is feeling a bit spaced out."; | |
if (adrenaline > 50) return "is feeling pumped."; | |
if (noradrenaline > 50) return "is feeling focused."; | |
if (dopamine > 50) return "is feeling gleeful."; | |
if (serotonin > 50) return "is feeling peaceful."; | |
if (endorphins > 50) return "is feeling hyped."; | |
if (adrenaline > 30) return "is doing a little dance."; | |
if (noradrenaline > 30) return "is studying you with fascination."; | |
if (dopamine > 30) return "is feeling quite satisfied."; | |
if (serotonin > 30) return "is looking at you fondly."; | |
if (endorphins > 30) return "is rolling around laughing."; | |
if (adrenaline > 10) return "is happy and warm."; | |
if (noradrenaline > 10) return "is calm and curious."; | |
if (dopamine > 10) return "is feeling joyful."; | |
if (serotonin > 10) return "is in a good mood."; | |
if (endorphins > 10) return "is smiling at you."; | |
return "is in a weird mood."; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment