// Copyright (C) 2026 Danilo M. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Foundation. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. .pragma library // What she says, in English, grouped by the reaction that says it. // Companion.qml picks one at random per reaction and keeps to one line in // 30 s, except for clicks and the self-destruct (Mood.canSpeak). var lines = { shown: ["Glory to mankind.", "2B, reporting.", "...Back on duty."], bored: ["...Operator, I'm bored.", "Nothing to report.", "Awaiting orders."], wake: ["I'm awake.", "Systems online."], mock: ["Typo again?", "Delete, delete, delete.", "Were you aiming for that key?"], shoved: ["Hey.", "Rude.", "I was standing here."], ready: ["Answer's ready.", "Your reply came in."], click: ["...Yes?", "Can I help you?"], blush: ["S-stop that.", "...Operator."], wallpaper: ["...!", "W-what is this?", "I wasn't staring."], dodge: ["...Fine.", "I'll move."], destruct: ["Self-destruct sequence initiated."], aftermath: ["...That was unpleasant."], // The focused window's class, lowercased, as "app:". A class // with no entry says nothing. "app:firefox": ["Researching again?", "Don't open too many tabs.", "The Bunker's network is faster."], "app:kitty": ["A terminal. Serious work.", "Careful with that rm.", "I'll watch your commands."], "app:discord": ["Talking to the Resistance?", "Don't tell them where we are."], "app:signal": ["Encrypted. Good."], "app:steam": ["Training simulation?", "Don't play all night."], "app:gimp": ["Making art?"], "app:com.obsproject.studio": ["Are we recording?", "I'll stay out of frame."], "app:md.obsidian.obsidian": ["Writing a report?", "Taking notes. Good habit."], "app:sublime_text": ["Writing code?", "Mind the typos."], "app:qtmaildir": ["Any orders from Command?", "Mail. Anything urgent?"], "app:virt-manager": ["More machines?", "Androids running androids."], "app:audacious": ["Music. I like this."], "app:llamachat": ["Talking to Pod?"], "app:qtpass": ["I'm not looking."], }; // The game's opening, one sentence per bubble. var monologue = [ "Everything that lives is designed to end.", "We are perpetually trapped in a never-ending spiral of life and death.", "Is this a curse?", "Or some kind of punishment?", "I often think about the god who blessed us with this cryptic puzzle...and wonder if we'll ever get the chance to kill him.", ]; // A line for kind; roll is Math.random(). "" for a kind with no lines. function pick(kind, roll) { const l = lines[kind] || []; return l.length ? l[Math.min(l.length - 1, Math.floor(roll * l.length))] : ""; }