New source found from dndbeyond.com
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
DecorationUtils,
|
||||
rulesEngineSelectors,
|
||||
} from "@dndbeyond/character-rules-engine/es";
|
||||
import { IRollContext } from "@dndbeyond/dice";
|
||||
import { RollContext } from "@dndbeyond/pocket-dimension-dice/types";
|
||||
|
||||
import { appEnvSelectors } from "./index";
|
||||
|
||||
@@ -13,14 +13,16 @@ export const getCharacterRollContext = createSelector(
|
||||
appEnvSelectors.getCharacterId,
|
||||
rulesEngineSelectors.getName,
|
||||
rulesEngineSelectors.getDecorationInfo,
|
||||
rulesEngineSelectors.getUserId,
|
||||
],
|
||||
(characterId, name, decorationInfo): IRollContext => {
|
||||
(characterId, name, decorationInfo, userId): RollContext => {
|
||||
return {
|
||||
entityId: characterId ? characterId.toString() : "",
|
||||
entityType: "character",
|
||||
name: name?.toString(),
|
||||
avatarUrl:
|
||||
DecorationUtils.getAvatarInfo(decorationInfo).avatarUrl?.toString(),
|
||||
userId: String(userId),
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user