mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Compare commits
2 commits
e2fe184833
...
fae7efd023
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fae7efd023 | ||
|
|
df84d0e117 |
2 changed files with 10 additions and 4 deletions
|
|
@ -123,7 +123,7 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV
|
|||
{
|
||||
name: game.i18n.localize('DAGGERHEART.CONFIG.DeathMoves.blazeOfGlory.name'),
|
||||
description: game.i18n.localize('DAGGERHEART.CONFIG.DeathMoves.blazeOfGlory.description'),
|
||||
img: 'icons/magic/movement/abstract-ribbons-red-orange.webp',
|
||||
img: CONFIG.DH.GENERAL.deathMoves.blazeOfGlory.img,
|
||||
changes: [
|
||||
{
|
||||
key: 'system.rules.roll.guaranteedCritical',
|
||||
|
|
@ -143,6 +143,10 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV
|
|||
}
|
||||
|
||||
static async takeMove() {
|
||||
const autoExpandDescription = game.settings.get(
|
||||
CONFIG.DH.id,
|
||||
CONFIG.DH.SETTINGS.gameSettings.appearance
|
||||
).expandRollMessage?.desc;
|
||||
const cls = getDocumentClass('ChatMessage');
|
||||
const msg = {
|
||||
user: game.user.id,
|
||||
|
|
@ -154,7 +158,9 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV
|
|||
author: game.users.get(game.user.id),
|
||||
title: game.i18n.localize(this.selectedMove.name),
|
||||
img: this.selectedMove.img,
|
||||
description: game.i18n.localize(this.selectedMove.description)
|
||||
description: game.i18n.localize(this.selectedMove.description),
|
||||
open: autoExpandDescription ? 'open' : '',
|
||||
chevron: autoExpandDescription ? 'fa-chevron-up' : 'fa-chevron-down'
|
||||
}
|
||||
),
|
||||
title: game.i18n.localize(
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<div class="daggerheart chat downtime">
|
||||
<ul class="downtime-moves-list">
|
||||
<details class="downtime-move">
|
||||
<details class="downtime-move" {{this.open}}>
|
||||
<summary class="downtime-label">
|
||||
<img class="downtime-image" src="{{this.img}}" />
|
||||
<div class="header-label">
|
||||
<h2 class="title">{{this.title}}</h2>
|
||||
<span class="label">{{localize 'DAGGERHEART.UI.Chat.deathMove.title'}}</span>
|
||||
</div>
|
||||
<i class="fa-solid fa-chevron-down"></i>
|
||||
<i class="fa-solid {{this.chevron}}"></i>
|
||||
</summary>
|
||||
<div class="description">
|
||||
{{{this.description}}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue