fixes display of liturgies and preliminary styling
parent
2dd920a094
commit
b13fc29791
|
|
@ -14,16 +14,13 @@ export default {
|
||||||
context.liturgies = [];
|
context.liturgies = [];
|
||||||
context.blessings = [];
|
context.blessings = [];
|
||||||
|
|
||||||
Object.values(actorData.items).forEach((item, index) => {
|
actorData.itemTypes.Blessing.forEach((item, index) => {
|
||||||
if (item.type === "Blessing") {
|
|
||||||
context.blessings.push({
|
context.blessings.push({
|
||||||
deity: item.system.gottheit,
|
deity: item.system.gottheit,
|
||||||
value: item.system.wert
|
value: item.system.wert
|
||||||
})
|
})
|
||||||
}
|
|
||||||
})
|
})
|
||||||
Object.values(actorData.items).forEach((item, index) => {
|
actorData.itemTypes.Liturgy.forEach((item, index) => {
|
||||||
if (item.type === "Liturgy") {
|
|
||||||
|
|
||||||
context.blessings.forEach(({deity, value}) => {
|
context.blessings.forEach(({deity, value}) => {
|
||||||
let insertObject = context.liturgies.find(p => p.deity === deity);
|
let insertObject = context.liturgies.find(p => p.deity === deity);
|
||||||
|
|
@ -77,7 +74,6 @@ export default {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,7 @@ export default {
|
||||||
context.skills = {};
|
context.skills = {};
|
||||||
context.flatSkills = [];
|
context.flatSkills = [];
|
||||||
|
|
||||||
actorData.items.forEach((item, index) => {
|
actorData.itemTypes.Skill.forEach((item, index) => {
|
||||||
if (item.type === "Skill") {
|
|
||||||
|
|
||||||
const talentGruppe = item.system.gruppe;
|
const talentGruppe = item.system.gruppe;
|
||||||
const eigenschaften = Object.values(item.system.probe);
|
const eigenschaften = Object.values(item.system.probe);
|
||||||
|
|
@ -68,7 +67,7 @@ export default {
|
||||||
context.skills[talentGruppe].push(obj);
|
context.skills[talentGruppe].push(obj);
|
||||||
context.flatSkills.push(obj);
|
context.flatSkills.push(obj);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
return context
|
return context
|
||||||
|
|
|
||||||
|
|
@ -96,14 +96,14 @@ $deity_colours_tint: (
|
||||||
&::before {
|
&::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: '';
|
content: '';
|
||||||
background-image: url("../../assets/velvet_strip.png");
|
background-image: url("/systems/DSA_4-1/assets/velvet_strip.png");
|
||||||
background-repeat: repeat-y;
|
background-repeat: repeat-y;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
width: 86px;
|
width: 86px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
top: 45px;
|
top: 45px;
|
||||||
left: 12px;
|
left: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::after { /* for tinting the texture */
|
&::after { /* for tinting the texture */
|
||||||
|
|
@ -113,7 +113,7 @@ $deity_colours_tint: (
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
top: 45px;
|
top: 45px;
|
||||||
left: 12px;
|
left: 28px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,10 @@
|
||||||
@mixin tab {
|
@mixin tab {
|
||||||
|
|
||||||
|
|
||||||
|
> div {
|
||||||
|
height: unset;
|
||||||
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-top: unset;
|
border-top: unset;
|
||||||
border-bottom: unset;
|
border-bottom: unset;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<section class="tab {{tabs.liturgies.id}} {{tabs.liturgies.cssClass}}"
|
<section class="tab {{tabs.liturgies.id}} {{tabs.liturgies.cssClass}}"
|
||||||
data-tab="{{tabs.liturgies.id}}"
|
data-tab="{{tabs.liturgies.id}}"
|
||||||
data-group="{{tabs.liturgies.group}}">
|
data-group="{{tabs.liturgies.group}}">
|
||||||
|
<div>
|
||||||
<div class="tab-resources">
|
<div class="tab-resources">
|
||||||
|
|
||||||
<div class="karmapoints">
|
<div class="karmapoints">
|
||||||
|
|
@ -23,7 +23,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{#if this.countO}}
|
|
||||||
<tr>
|
<tr>
|
||||||
<th rowspan="{{this.total}}" class="background"></th>
|
<th rowspan="{{this.total}}" class="background"></th>
|
||||||
<th class="banner-mid" rowspan="{{countO}}">
|
<th class="banner-mid" rowspan="{{countO}}">
|
||||||
|
|
@ -43,7 +42,6 @@
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/if}}
|
|
||||||
{{#if this.countI}}
|
{{#if this.countI}}
|
||||||
<tr>
|
<tr>
|
||||||
<th class="banner-mid" rowspan="{{countI}}">
|
<th class="banner-mid" rowspan="{{countI}}">
|
||||||
|
|
@ -197,6 +195,6 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
Loading…
Reference in New Issue