This commit is contained in:
WBHarry 2026-03-15 23:09:26 +01:00
parent 98a28ac7b9
commit 5ee86e258b
6 changed files with 6 additions and 37 deletions

View file

@ -344,7 +344,7 @@ export default class TagTeamDialog extends HandlebarsApplicationMixin(Applicatio
if (!actor) return;
const memberData = this.party.system.tagTeam.members[memberKey];
return await actor.traitDiceRoll(memberData.rollChoice, {
return await actor.rollTrait(memberData.rollChoice, {
skips: {
createMessage: true,
resources: true,

View file

@ -719,8 +719,8 @@ export default class CharacterSheet extends DHBaseActorSheet {
* Rolls an attribute check based on the clicked button's dataset attribute.
* @type {ApplicationClickAction}
*/
static async #rollAttribute(event, button) {
const result = await this.document.traitDiceRoll(button.dataset.attribute);
static async #rollAttribute(_event, button) {
const result = await this.document.rollTrait(button.dataset.attribute);
if (!result) return;
/* This could be avoided by baking config.costs into config.resourceUpdates. Didn't feel like messing with it at the time */

View file

@ -510,7 +510,7 @@ export default class DhpActor extends Actor {
return await rollClass.build(config);
}
async traitDiceRoll(trait, options = {}) {
async rollTrait(trait, options = {}) {
const abilityLabel = game.i18n.localize(abilities[trait].label);
const config = {
event: event,

View file

@ -24,7 +24,7 @@
}
}
.intiator-container {
.initiator-container {
margin-top: 8px;
display: grid;
grid-template-columns: 1fr 1fr;

View file

@ -104,37 +104,6 @@
filter: drop-shadow(0 0 8px var(--golden));
}
}
// width: 100%;
// display: flex;
// align-items: center;
// justify-content: space-evenly;
// .roll-button {
// position: relative;
// display: flex;
// justify-content: center;
// .roll-label {
// position: absolute;
// top: 8px;
// width: 60px;
// text-align: center;
// padding: 2px;
// background: light-dark(darkblue, gold);
// color: light-dark(white, black);
// border-radius: 6px;
// border: 1px solid light-dark(white, black);
// }
// img {
// height: 80px;
// }
// }
// .delete-button i {
// font-size: 40px;
// }
}
.roll-data {

View file

@ -12,7 +12,7 @@
{{/each}}
</div>
<div class="intiator-container {{#if initiatorDisabled}}inactive{{/if}}">
<div class="initiator-container {{#if initiatorDisabled}}inactive{{/if}}">
<div class="form-group">
<label>{{localize "DAGGERHEART.APPLICATIONS.TagTeamSelect.FIELDS.initiator.memberId.label"}}</label>
<div class="form-fields">