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-tursoandJanne Savolainen committed 2023-03-15 11:17:16 +02:00
1 parent d42b369f21
commit 00831edd55
2 files changed
+2 -2

No files matched your search

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