Working on Skills and some fixes

- Added Skills to character sheet
- Added migration to old skills
- Added icon on skills
- Added actor.isNpc
- Money out of system
This commit is contained in:
Vlyan
2023-01-08 15:12:22 +01:00
parent 1ec9e65ca5
commit 710afd9804
22 changed files with 302 additions and 145 deletions

View File

@@ -7,6 +7,8 @@
.item {
.item-header {
display: flex;
align-items: center;
.item-img {
flex: 0 0 32px;
padding-right: 0.25rem;

View File

@@ -41,29 +41,63 @@
);
}
ul {
flex: 50%;
padding: 0.25rem 0.5rem 0.25rem 0;
flex: 100%;
padding: 0 0.15rem;
li {
text-align: left;
line-height: 2rem;
margin: 0.25rem 0;
&.skill {
text-align: right;
span {
color: $l5r5e-black;
&[data-skill="melee"],
&[data-skill="ranged"],
&[data-skill="unarmed"] {
float: left;
line-height: 1rem;
width: calc(100% - 2rem);
}
}
&.skill-category-skills-list {
img {
width: 32px;
height: 32px;
object-fit: contain;
object-position: 50% 0;
border: none;
padding: 2px 0;
}
input {
text-align: center;
}
.item-header {
flex: 4;
align-items: center;
h4 {
margin: 0;
}
.item-img {
height: 32px;
margin: 0;
flex: 0 0 32px;
}
.item-rank {
flex: 0 0 32px;
text-align: center;
}
.item-edit,
.item-delete {
text-align: center;
line-height: 1rem;
font-size: 0.75rem;
flex: 0 0 1rem;
padding: 0 0.1rem;
color: $black-light;
}
}
}
&.skill-category-ring-actions {
padding: 0.25rem 0 0.25rem 0.5rem;
border-top: 1px dashed $l5r5e-title;
border-left: 1px solid $l5r5e-title;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-content: center;
justify-content: space-evenly;
}
}
input {