fix: CHAT_MESSAGE_TYPES -> CHAT_MESSAGE_STYLES (v14 compat)
Foundry v14 utilise style au lieu de type pour ChatMessage et CONST.CHAT_MESSAGE_TYPES n'existe pas. Corrigé dans tarot-deck-manager, sortilege-casting, base-actor-sheet
This commit is contained in:
@@ -196,7 +196,7 @@ export default class HamalronActorSheet extends HandlebarsApplicationMixin(found
|
|||||||
user: game.user.id,
|
user: game.user.id,
|
||||||
speaker: ChatMessage.getSpeaker({ actor }),
|
speaker: ChatMessage.getSpeaker({ actor }),
|
||||||
content,
|
content,
|
||||||
type: CONST.CHAT_MESSAGE_TYPES.OTHER,
|
style: CONST.CHAT_MESSAGE_STYLES.OTHER,
|
||||||
}, { renderSheet: false })
|
}, { renderSheet: false })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ export default class HamalronSortilegeCasting {
|
|||||||
user: game.user.id,
|
user: game.user.id,
|
||||||
speaker: ChatMessage.getSpeaker({ actor }),
|
speaker: ChatMessage.getSpeaker({ actor }),
|
||||||
content: failContent,
|
content: failContent,
|
||||||
type: CONST.CHAT_MESSAGE_TYPES.OTHER,
|
style: CONST.CHAT_MESSAGE_STYLES.OTHER,
|
||||||
})
|
})
|
||||||
|
|
||||||
await deckManager.saveDeckState()
|
await deckManager.saveDeckState()
|
||||||
@@ -276,7 +276,7 @@ export default class HamalronSortilegeCasting {
|
|||||||
user: game.user.id,
|
user: game.user.id,
|
||||||
speaker: ChatMessage.getSpeaker({ actor }),
|
speaker: ChatMessage.getSpeaker({ actor }),
|
||||||
content: chatContent,
|
content: chatContent,
|
||||||
type: CONST.CHAT_MESSAGE_TYPES.OTHER,
|
style: CONST.CHAT_MESSAGE_STYLES.OTHER,
|
||||||
})
|
})
|
||||||
|
|
||||||
await deckManager.saveDeckState()
|
await deckManager.saveDeckState()
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ export default class HamalronTarotDeckManager extends HandlebarsApplicationMixin
|
|||||||
await ChatMessage.create({
|
await ChatMessage.create({
|
||||||
speaker: speaker,
|
speaker: speaker,
|
||||||
content: content,
|
content: content,
|
||||||
type: CONST.CHAT_MESSAGE_TYPES.OTHER,
|
style: CONST.CHAT_MESSAGE_STYLES.OTHER,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -638,7 +638,7 @@ export default class HamalronTarotDeckManager extends HandlebarsApplicationMixin
|
|||||||
await ChatMessage.create({
|
await ChatMessage.create({
|
||||||
speaker: speaker,
|
speaker: speaker,
|
||||||
content: content,
|
content: content,
|
||||||
type: CONST.CHAT_MESSAGE_TYPES.OTHER,
|
style: CONST.CHAT_MESSAGE_STYLES.OTHER,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -676,7 +676,7 @@ export default class HamalronTarotDeckManager extends HandlebarsApplicationMixin
|
|||||||
await ChatMessage.create({
|
await ChatMessage.create({
|
||||||
speaker: speaker,
|
speaker: speaker,
|
||||||
content: content,
|
content: content,
|
||||||
type: CONST.CHAT_MESSAGE_TYPES.OTHER,
|
style: CONST.CHAT_MESSAGE_STYLES.OTHER,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user