Skip to content

Commit

Permalink
(amend)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunomiac committed May 1, 2024
1 parent 21461b9 commit 6ea6d59
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions src/ts/classes/BladesChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ class BladesChat extends ChatMessage {
const msgData = {
speaker: bladesRoll.getSpeaker(BladesChat.getSpeaker()),
content: await renderTemplate(bladesRoll.chatTemplate, bladesRoll.data),
type: CONST.CHAT_MESSAGE_TYPES.ROLL,
flags: {
type: CONST.CHAT_MESSAGE_TYPES.ROLL,
flags: {
"eunos-blades": {
template: bladesRoll.chatTemplate,
rollData: bladesRoll.data
Expand Down Expand Up @@ -230,21 +230,21 @@ class BladesChat extends ChatMessage {
> = {
[Position.controlled]: {
[RollResult.critical]: {},
[RollResult.success]: {},
[RollResult.partial]: {},
[RollResult.fail]: {}
[RollResult.success]: {},
[RollResult.partial]: {},
[RollResult.fail]: {}
},
[Position.risky]: {
[RollResult.critical]: {},
[RollResult.success]: {},
[RollResult.partial]: {},
[RollResult.fail]: {}
[RollResult.success]: {},
[RollResult.partial]: {},
[RollResult.fail]: {}
},
[Position.desperate]: {
[RollResult.critical]: {},
[RollResult.success]: {},
[RollResult.partial]: {},
[RollResult.fail]: {}
[RollResult.success]: {},
[RollResult.partial]: {},
[RollResult.fail]: {}
}
};
const {consequenceData} = this.flagData.rollData ?? {};
Expand Down
4 changes: 2 additions & 2 deletions src/ts/sheets/actor/BladesFactionSheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class BladesFactionSheet extends BladesActorSheet {
}) as ActorSheet.Options;
}

override getData() {
const context = super.getData();
override async getData() {
const context = await super.getData();
if (!BladesActor.IsType(this.actor, BladesActorType.faction)) { return context; }

const sheetData: BladesActorDataOfType<BladesActorType.faction> = {
Expand Down

0 comments on commit 6ea6d59

Please sign in to comment.