Update the brace format from 1tbs to stroustrup
This commit is contained in:
parent
1c7308e188
commit
3dd3139281
13 changed files with 31 additions and 16 deletions
|
|
@ -115,7 +115,8 @@ export class CraftCardV1 extends GenericAppMixin(HandlebarsApplicationMixin(Acto
|
|||
const length = crafts.length;
|
||||
if (length >= limit) {
|
||||
crafts = crafts.slice(0, limit);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
crafts = crafts
|
||||
.concat(Array(limit - length).fill(null))
|
||||
.slice(0, limit);
|
||||
|
|
|
|||
|
|
@ -194,7 +194,8 @@ export class SkillsCardV1 extends GenericAppMixin(HandlebarsApplicationMixin(Act
|
|||
const length = ctx.skills[ability].length;
|
||||
if (length >= limit) {
|
||||
ctx.skills[ability] = ctx.skills[ability].slice(0, limit);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
ctx.skills[ability] = ctx.skills[ability]
|
||||
.concat(Array(limit - length).fill(null))
|
||||
.slice(0, limit);
|
||||
|
|
|
|||
|
|
@ -88,7 +88,8 @@ export class DelveDiceHUD extends HandlebarsApplicationMixin(ApplicationV2) {
|
|||
const existing = document.getElementById(element.id);
|
||||
if (existing) {
|
||||
existing.replaceWith(element);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
const parent = document.getElementById(`ui-top`);
|
||||
parent.prepend(element);
|
||||
};
|
||||
|
|
@ -292,7 +293,8 @@ export class DelveDiceHUD extends HandlebarsApplicationMixin(ApplicationV2) {
|
|||
if (delta === 0 || !shouldUpdateSands) { return };
|
||||
if (game.user.isActiveGM) {
|
||||
ui.delveDice.sandsOfFateDelta(delta);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
game.socket.emit(`system.ripcrypt`, {
|
||||
event: `updateSands`,
|
||||
payload: { delta },
|
||||
|
|
|
|||
|
|
@ -51,7 +51,8 @@ export function StyledShadowElement(Base) {
|
|||
const stylePath = this.constructor._stylePath;
|
||||
if (this.constructor._styles.has(stylePath)) {
|
||||
this._style.innerHTML = this.constructor._styles.get(stylePath);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
fetch(`./systems/${game.system.id}/templates/${stylePath}`)
|
||||
.then(r => r.text())
|
||||
.then(t => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue