diff --git a/src/module/sheets/character/liturgies.mjs b/src/module/sheets/character/liturgies.mjs index 062d5966..f31add4e 100644 --- a/src/module/sheets/character/liturgies.mjs +++ b/src/module/sheets/character/liturgies.mjs @@ -14,16 +14,13 @@ export default { context.liturgies = []; context.blessings = []; - Object.values(actorData.items).forEach((item, index) => { - if (item.type === "Blessing") { - context.blessings.push({ - deity: item.system.gottheit, - value: item.system.wert - }) - } + actorData.itemTypes.Blessing.forEach((item, index) => { + context.blessings.push({ + deity: item.system.gottheit, + value: item.system.wert + }) }) - Object.values(actorData.items).forEach((item, index) => { - if (item.type === "Liturgy") { + actorData.itemTypes.Liturgy.forEach((item, index) => { context.blessings.forEach(({deity, value}) => { let insertObject = context.liturgies.find(p => p.deity === deity); @@ -77,7 +74,6 @@ export default { } }) - } }) diff --git a/src/module/sheets/character/skills.mjs b/src/module/sheets/character/skills.mjs index 937633ba..9cf1d9d5 100644 --- a/src/module/sheets/character/skills.mjs +++ b/src/module/sheets/character/skills.mjs @@ -22,8 +22,7 @@ export default { context.skills = {}; context.flatSkills = []; - actorData.items.forEach((item, index) => { - if (item.type === "Skill") { + actorData.itemTypes.Skill.forEach((item, index) => { const talentGruppe = item.system.gruppe; const eigenschaften = Object.values(item.system.probe); @@ -68,7 +67,7 @@ export default { context.skills[talentGruppe].push(obj); context.flatSkills.push(obj); } - } + ) return context diff --git a/src/style/molecules/_liturgy-banner.scss b/src/style/molecules/_liturgy-banner.scss index c2ce6d46..c79f60cb 100644 --- a/src/style/molecules/_liturgy-banner.scss +++ b/src/style/molecules/_liturgy-banner.scss @@ -96,14 +96,14 @@ $deity_colours_tint: ( &::before { position: absolute; content: ''; - background-image: url("../../assets/velvet_strip.png"); + background-image: url("/systems/DSA_4-1/assets/velvet_strip.png"); background-repeat: repeat-y; background-size: cover; width: 86px; height: 100%; top: 45px; - left: 12px; + left: 28px; } &::after { /* for tinting the texture */ @@ -113,7 +113,7 @@ $deity_colours_tint: ( height: 100%; top: 45px; - left: 12px; + left: 28px; } } } diff --git a/src/style/organisms/character-tabs/_liturgies.scss b/src/style/organisms/character-tabs/_liturgies.scss index d780da26..197464df 100644 --- a/src/style/organisms/character-tabs/_liturgies.scss +++ b/src/style/organisms/character-tabs/_liturgies.scss @@ -1,5 +1,10 @@ @mixin tab { + + > div { + height: unset; + } + table { border-top: unset; border-bottom: unset; diff --git a/src/templates/actor/character/tab-liturgies.hbs b/src/templates/actor/character/tab-liturgies.hbs index 886f41bd..fdb869f5 100644 --- a/src/templates/actor/character/tab-liturgies.hbs +++ b/src/templates/actor/character/tab-liturgies.hbs @@ -1,7 +1,7 @@
- +
@@ -23,7 +23,6 @@ - {{#if this.countO}} @@ -43,7 +42,6 @@ {{/each}} - {{/if}} {{#if this.countI}} @@ -197,6 +195,6 @@ {{/each}} - +
\ No newline at end of file