mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
goals were toooo smalls
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
id: 'assignmentRoulette',
|
id: 'assignmentRoulette',
|
||||||
name: 'Rover Reassignment',
|
name: 'Rover Reassignment',
|
||||||
goal: 70,
|
goal: 500,
|
||||||
async run(ctx) {
|
async run(ctx) {
|
||||||
const moved = ctx.rerollAssignments();
|
const moved = ctx.rerollAssignments();
|
||||||
ctx.sendAlert({
|
ctx.sendAlert({
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const STEPS = 10;
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
id: 'cameraWhiplash',
|
id: 'cameraWhiplash',
|
||||||
name: 'Camera Wiggle',
|
name: 'Camera Wiggle',
|
||||||
goal: 35,
|
goal: 160,
|
||||||
async run(ctx) {
|
async run(ctx) {
|
||||||
const rovers = ctx
|
const rovers = ctx
|
||||||
.listOnlineRovers()
|
.listOnlineRovers()
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ function randLetter() {
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
id: 'chatSpam',
|
id: 'chatSpam',
|
||||||
name: 'Chat Spam',
|
name: 'Chat Spam',
|
||||||
goal: 100,
|
goal: 320,
|
||||||
async run(ctx) {
|
async run(ctx) {
|
||||||
const nickname = randLetter();
|
const nickname = randLetter();
|
||||||
const messageCount = 100;
|
const messageCount = 100;
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ function startDarkness(ctx, effect) {
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
id: 'darkness',
|
id: 'darkness',
|
||||||
name: 'Darkness',
|
name: 'Darkness',
|
||||||
goal: 65,
|
goal: 650,
|
||||||
async run(ctx) {
|
async run(ctx) {
|
||||||
const entities = ctx.getHomeAssistantEntities();
|
const entities = ctx.getHomeAssistantEntities();
|
||||||
const prevLights = entities.map((entity) => ({ id: entity.id, state: entity.state === 'on' ? 'on' : 'off' }));
|
const prevLights = entities.map((entity) => ({ id: entity.id, state: entity.state === 'on' ? 'on' : 'off' }));
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
id: 'discordStalkerPing',
|
id: 'discordStalkerPing',
|
||||||
name: 'Stalker Ping',
|
name: 'Stalker Ping',
|
||||||
goal: 150,
|
goal: 900,
|
||||||
async run(ctx) {
|
async run(ctx) {
|
||||||
ctx.publishEvent({
|
ctx.publishEvent({
|
||||||
source: 'buttonBoxReward',
|
source: 'buttonBoxReward',
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ const DOCK_COMMAND_BASE64 = Buffer.from([143]).toString('base64');
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
id: 'dockPanic',
|
id: 'dockPanic',
|
||||||
name: 'All Dock',
|
name: 'All Dock',
|
||||||
goal: 30,
|
goal: 180,
|
||||||
async run(ctx) {
|
async run(ctx) {
|
||||||
const rovers = ctx.listOnlineRovers();
|
const rovers = ctx.listOnlineRovers();
|
||||||
rovers.forEach((rover) => {
|
rovers.forEach((rover) => {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ const TICK_MS = 180;
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
id: 'ghostTypingSpam',
|
id: 'ghostTypingSpam',
|
||||||
name: 'Typing Spam',
|
name: 'Typing Spam',
|
||||||
goal: 40,
|
goal: 220,
|
||||||
async run(ctx) {
|
async run(ctx) {
|
||||||
let tick = 0;
|
let tick = 0;
|
||||||
const active = new Set();
|
const active = new Set();
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ function startStrobe(ctx, effect = {}) {
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
id: 'lightStrobe',
|
id: 'lightStrobe',
|
||||||
name: 'Light Strobe',
|
name: 'Light Strobe',
|
||||||
goal: 55,
|
goal: 360,
|
||||||
async run(ctx) {
|
async run(ctx) {
|
||||||
startStrobe(ctx, { endsAt: Date.now() + STROBE_MS, on: false });
|
startStrobe(ctx, { endsAt: Date.now() + STROBE_MS, on: false });
|
||||||
ctx.sendAlert({ color: '#ffc107', title: 'Light Strobe', message: 'Room light strobe started.' });
|
ctx.sendAlert({ color: '#ffc107', title: 'Light Strobe', message: 'Room light strobe started.' });
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ function scheduleRestore(ctx, effect = {}) {
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
id: 'modeJam',
|
id: 'modeJam',
|
||||||
name: 'Admin Mode',
|
name: 'Admin Mode',
|
||||||
goal: 200,
|
goal: 1200,
|
||||||
async run(ctx) {
|
async run(ctx) {
|
||||||
const prevMode = ctx.getMode();
|
const prevMode = ctx.getMode();
|
||||||
const prevReason = ctx.getAdminReasonText();
|
const prevReason = ctx.getAdminReasonText();
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const TITLES = ['RARARARARARARARARE', 'CHIRPET CHIRPET CHIRPET', 'meowmowmoowmom
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
id: 'rogueEventSpam',
|
id: 'rogueEventSpam',
|
||||||
name: 'Event Flood',
|
name: 'Event Flood',
|
||||||
goal: 45,
|
goal: 260,
|
||||||
async run(ctx) {
|
async run(ctx) {
|
||||||
for (let i = 0; i < 500; i += 1) {
|
for (let i = 0; i < 500; i += 1) {
|
||||||
const color = COLORS[Math.floor(Math.random() * COLORS.length)];
|
const color = COLORS[Math.floor(Math.random() * COLORS.length)];
|
||||||
|
|||||||
Reference in New Issue
Block a user