mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-22 23:43:37 +02:00
Fixes
This commit is contained in:
parent
98a28ac7b9
commit
5ee86e258b
6 changed files with 6 additions and 37 deletions
|
|
@ -344,7 +344,7 @@ export default class TagTeamDialog extends HandlebarsApplicationMixin(Applicatio
|
||||||
if (!actor) return;
|
if (!actor) return;
|
||||||
|
|
||||||
const memberData = this.party.system.tagTeam.members[memberKey];
|
const memberData = this.party.system.tagTeam.members[memberKey];
|
||||||
return await actor.traitDiceRoll(memberData.rollChoice, {
|
return await actor.rollTrait(memberData.rollChoice, {
|
||||||
skips: {
|
skips: {
|
||||||
createMessage: true,
|
createMessage: true,
|
||||||
resources: true,
|
resources: true,
|
||||||
|
|
|
||||||
|
|
@ -719,8 +719,8 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
||||||
* Rolls an attribute check based on the clicked button's dataset attribute.
|
* Rolls an attribute check based on the clicked button's dataset attribute.
|
||||||
* @type {ApplicationClickAction}
|
* @type {ApplicationClickAction}
|
||||||
*/
|
*/
|
||||||
static async #rollAttribute(event, button) {
|
static async #rollAttribute(_event, button) {
|
||||||
const result = await this.document.traitDiceRoll(button.dataset.attribute);
|
const result = await this.document.rollTrait(button.dataset.attribute);
|
||||||
if (!result) return;
|
if (!result) return;
|
||||||
|
|
||||||
/* This could be avoided by baking config.costs into config.resourceUpdates. Didn't feel like messing with it at the time */
|
/* This could be avoided by baking config.costs into config.resourceUpdates. Didn't feel like messing with it at the time */
|
||||||
|
|
|
||||||
|
|
@ -510,7 +510,7 @@ export default class DhpActor extends Actor {
|
||||||
return await rollClass.build(config);
|
return await rollClass.build(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
async traitDiceRoll(trait, options = {}) {
|
async rollTrait(trait, options = {}) {
|
||||||
const abilityLabel = game.i18n.localize(abilities[trait].label);
|
const abilityLabel = game.i18n.localize(abilities[trait].label);
|
||||||
const config = {
|
const config = {
|
||||||
event: event,
|
event: event,
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.intiator-container {
|
.initiator-container {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
|
|
|
||||||
|
|
@ -104,37 +104,6 @@
|
||||||
filter: drop-shadow(0 0 8px var(--golden));
|
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 {
|
.roll-data {
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="intiator-container {{#if initiatorDisabled}}inactive{{/if}}">
|
<div class="initiator-container {{#if initiatorDisabled}}inactive{{/if}}">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>{{localize "DAGGERHEART.APPLICATIONS.TagTeamSelect.FIELDS.initiator.memberId.label"}}</label>
|
<label>{{localize "DAGGERHEART.APPLICATIONS.TagTeamSelect.FIELDS.initiator.memberId.label"}}</label>
|
||||||
<div class="form-fields">
|
<div class="form-fields">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue