1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Implement rest of the things causing side-effects

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
Iku-turso 2023-03-15 11:14:29 +02:00
parent d42b369f21
commit 00831edd55
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import { getInjectable } from "@ogre-tools/injectable";
const castDieInjectable = getInjectable({ const castDieInjectable = getInjectable({
id: "cast-die", id: "cast-die",
instantiate: () => () => Promise.resolve(0), instantiate: () => () => Promise.resolve(Math.ceil(Math.random() * 6)),
causesSideEffects: true, causesSideEffects: true,
}); });

View File

@ -4,7 +4,7 @@ import { getInjectable } from "@ogre-tools/injectable";
const messageToPlayerInjectable = getInjectable({ const messageToPlayerInjectable = getInjectable({
id: "message-to-player", id: "message-to-player",
instantiate: () => (message: string) => {}, instantiate: () => (message: string) => window.alert(message),
causesSideEffects: true, causesSideEffects: true,
}); });