silphius/resources/kitty/interact.js
2024-11-04 11:28:37 -06:00

20 lines
480 B
JavaScript

import * as Math from '@/lib/math.js';
export default function* ({subject}) {
const lines = [
'mrowwr',
'p<shake>rrr</shake>o<wave>wwwww</wave>',
'mew<rate frequency={0.5}> </rate>mew!',
'me<wave>wwwww</wave>',
'\\*pu<shake>rrrrr</shake>\\*',
];
const line = lines[Math.floor(Math.random() * lines.length)];
subject.Interlocutor.dialogue({
body: line,
linger: 2,
offset: {x: 0, y: -16},
origin: 'track',
position: 'track',
});
}