]>
git.r.bdr.sh - rbdr/corona-regeln/blob - lib/rules/business.js
afcc25653073b4eadc66641b57544f4221df4a7d
9 'clothes incineration facilities',
13 'windfarm analysis consultancies',
18 'gong bath facilities',
21 'paint your own pottery centers',
26 'condom inspection facilities',
27 'high school newspapers',
29 'mink breeding centers',
38 'are required to work from home',
39 'require mandatory testing',
42 'must offer 50% covid discounts',
43 'must become vaccination centers',
44 'must pay staff 3x on thursdays',
45 'can only meet with one other household',
46 'must share facilities',
47 'are exempt from mask rules',
52 const firstPart
= array
.slice(0, -1).join(', ')
53 const lastPart
= array
.slice(-1)
55 const conjunction
= array
.length
<= 1 ? '' : ', and '
57 return [firstPart
, lastPart
].join(conjunction
)
61 module
.exports
= () => {
63 const businesses
= internals
.businesses
65 .sort(() => Math
.random() - 0.5)
66 .slice(0, Math
.floor(Math
.random() * 3) + 1)
67 const restriction
= internals
.restrictions
[Math
.floor(Math
.random() * internals
.restrictions
.length
)];
68 const text
= `${internals.join(businesses)} ${restriction}`
72 text: text
.charAt(0).toUpperCase() + text
.slice(1)