Update actor sheet
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.6 MiB |
+639
-18
@@ -421,54 +421,176 @@ i.prismrpg {
|
|||||||
}
|
}
|
||||||
.prismrpg .tab.character-skills .main-div .skills {
|
.prismrpg .tab.character-skills .main-div .skills {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 4px;
|
gap: 6px;
|
||||||
}
|
}
|
||||||
.prismrpg .tab.character-skills .main-div .skills .skill {
|
.prismrpg .tab.character-skills .main-div .skills .skill {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 8px;
|
||||||
|
padding: 6px 10px;
|
||||||
|
background: rgba(255, 255, 255, 0.3);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .skills .skill:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .skills .skill.is-core-skill {
|
||||||
|
background: rgba(255, 235, 180, 0.4);
|
||||||
|
border-color: #d4a017;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .skills .skill.is-core-skill:hover {
|
||||||
|
background: rgba(255, 235, 180, 0.6);
|
||||||
}
|
}
|
||||||
.prismrpg .tab.character-skills .main-div .skills .skill .item-img {
|
.prismrpg .tab.character-skills .main-div .skills .skill .item-img {
|
||||||
width: 24px;
|
width: 32px;
|
||||||
height: 24px;
|
height: 32px;
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.prismrpg .tab.character-skills .main-div .skills .skill .name {
|
.prismrpg .tab.character-skills .main-div .skills .skill .name {
|
||||||
min-width: 12rem;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .skills .skill .name a {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .skills .skill .name a i {
|
||||||
|
margin-right: 6px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .skills .skill .name a:hover {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .skills .skill .score {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
min-width: 50px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .skills .skill .score .advanced-icon {
|
||||||
|
color: #d4a017;
|
||||||
|
font-size: 18px;
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .skills .skill .controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .skills .skill .controls a {
|
||||||
|
color: #6b6b6b;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: color 0.2s;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .skills .skill .controls a:hover {
|
||||||
|
color: #2c2c2c;
|
||||||
}
|
}
|
||||||
.prismrpg .tab.character-skills .main-div .racial-abilities {
|
.prismrpg .tab.character-skills .main-div .racial-abilities {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 4px;
|
gap: 6px;
|
||||||
}
|
}
|
||||||
.prismrpg .tab.character-skills .main-div .racial-abilities .racial-ability {
|
.prismrpg .tab.character-skills .main-div .racial-abilities .racial-ability {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 8px;
|
||||||
|
padding: 6px 10px;
|
||||||
|
background: rgba(200, 255, 200, 0.2);
|
||||||
|
border: 2px solid #6b9b6b;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .racial-abilities .racial-ability:hover {
|
||||||
|
background: rgba(200, 255, 200, 0.4);
|
||||||
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
||||||
}
|
}
|
||||||
.prismrpg .tab.character-skills .main-div .racial-abilities .racial-ability .item-img {
|
.prismrpg .tab.character-skills .main-div .racial-abilities .racial-ability .item-img {
|
||||||
width: 24px;
|
width: 32px;
|
||||||
height: 24px;
|
height: 32px;
|
||||||
|
border: 2px solid #6b9b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.prismrpg .tab.character-skills .main-div .racial-abilities .racial-ability .name {
|
.prismrpg .tab.character-skills .main-div .racial-abilities .racial-ability .name {
|
||||||
min-width: 12rem;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .racial-abilities .racial-ability .controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .racial-abilities .racial-ability .controls a {
|
||||||
|
color: #6b9b6b;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: color 0.2s;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .racial-abilities .racial-ability .controls a:hover {
|
||||||
|
color: #3c6b3c;
|
||||||
}
|
}
|
||||||
.prismrpg .tab.character-skills .main-div .vulnerabilities {
|
.prismrpg .tab.character-skills .main-div .vulnerabilities {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 4px;
|
gap: 6px;
|
||||||
}
|
}
|
||||||
.prismrpg .tab.character-skills .main-div .vulnerabilities .vulnerability {
|
.prismrpg .tab.character-skills .main-div .vulnerabilities .vulnerability {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 8px;
|
||||||
|
padding: 6px 10px;
|
||||||
|
background: rgba(255, 200, 200, 0.2);
|
||||||
|
border: 2px solid #9b6b6b;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .vulnerabilities .vulnerability:hover {
|
||||||
|
background: rgba(255, 200, 200, 0.4);
|
||||||
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
||||||
}
|
}
|
||||||
.prismrpg .tab.character-skills .main-div .vulnerabilities .vulnerability .item-img {
|
.prismrpg .tab.character-skills .main-div .vulnerabilities .vulnerability .item-img {
|
||||||
width: 24px;
|
width: 32px;
|
||||||
height: 24px;
|
height: 32px;
|
||||||
|
border: 2px solid #9b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.prismrpg .tab.character-skills .main-div .vulnerabilities .vulnerability .name {
|
.prismrpg .tab.character-skills .main-div .vulnerabilities .vulnerability .name {
|
||||||
min-width: 12rem;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .vulnerabilities .vulnerability .controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .vulnerabilities .vulnerability .controls a {
|
||||||
|
color: #9b6b6b;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: color 0.2s;
|
||||||
|
}
|
||||||
|
.prismrpg .tab.character-skills .main-div .vulnerabilities .vulnerability .controls a:hover {
|
||||||
|
color: #6b3c3c;
|
||||||
}
|
}
|
||||||
.prismrpg .tab.character-equipment .main-div {
|
.prismrpg .tab.character-equipment .main-div {
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -756,6 +878,505 @@ i.prismrpg {
|
|||||||
.prismrpg .tab.character-miracles .main-div prose-mirror.active {
|
.prismrpg .tab.character-miracles .main-div prose-mirror.active {
|
||||||
min-height: 150px;
|
min-height: 150px;
|
||||||
}
|
}
|
||||||
|
.prismrpg .character-main-v2 {
|
||||||
|
font-family: var(--font-primary);
|
||||||
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
|
color: var(--color-dark-1);
|
||||||
|
background-image: var(--background-image-base);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 nav.tabs [data-tab] {
|
||||||
|
color: #636060;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 nav.tabs [data-tab].active {
|
||||||
|
color: #252424;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 input:disabled,
|
||||||
|
.prismrpg .character-main-v2 select:disabled {
|
||||||
|
background-color: rgba(0, 0, 0, 0.2);
|
||||||
|
border-color: transparent;
|
||||||
|
color: var(--color-dark-3);
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 input,
|
||||||
|
.prismrpg .character-main-v2 select {
|
||||||
|
height: 1.5rem;
|
||||||
|
background-color: rgba(0, 0, 0, 0.1);
|
||||||
|
border-color: var(--color-dark-6);
|
||||||
|
color: var(--color-dark-2);
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 input[name="name"] {
|
||||||
|
height: 2.5rem;
|
||||||
|
margin-right: 4px;
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
font-size: calc(var(--font-size-standard) * 1.2);
|
||||||
|
font-weight: bold;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 fieldset {
|
||||||
|
margin-bottom: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .form-fields input,
|
||||||
|
.prismrpg .character-main-v2 .form-fields select {
|
||||||
|
text-align: center;
|
||||||
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .form-fields select {
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 legend {
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
font-size: calc(var(--font-size-standard) * 1.2);
|
||||||
|
font-weight: bold;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-sheet-wrapper {
|
||||||
|
background-image: url("../assets/sheet/character-bg.png");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
padding: 8px 10px;
|
||||||
|
min-height: auto;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-header {
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-header .character-name-banner {
|
||||||
|
background-image: url("../assets/sheet/banner-bg.png");
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
height: 60px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-header .character-name-banner input {
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
text-align: center;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
width: 500px;
|
||||||
|
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-header .character-toggle-controls {
|
||||||
|
position: absolute;
|
||||||
|
top: 10px;
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-main-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 300px;
|
||||||
|
gap: 12px;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 12px;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .portrait-hp-column {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
width: 200px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .character-portrait {
|
||||||
|
width: 200px;
|
||||||
|
height: 200px;
|
||||||
|
border: 3px solid #6b6b6b;
|
||||||
|
border-radius: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #d4d4d4;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .character-portrait img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .hp-shields-section {
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .hp-shields-section .hp-shields {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .hp-shields-section .hp-shields .hp-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .hp-shields-section .hp-shields .hp-item .hp-label {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
width: 55px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .hp-shields-section .hp-shields .hp-item .hp-value input {
|
||||||
|
width: 40px;
|
||||||
|
height: 28px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: rgba(255, 255, 255, 0.9);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .hp-shields-section .hp-shields .hp-item .hp-separator {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .hp-shields-section .hp-shields .hp-item .hp-max input {
|
||||||
|
width: 40px;
|
||||||
|
height: 28px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: rgba(200, 220, 255, 0.5);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .character-attributes {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 6px;
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
max-width: 280px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .character-attributes .attribute-shield {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
background: rgba(255, 255, 255, 0.3);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .character-attributes .attribute-shield .attribute-label {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin: 0;
|
||||||
|
min-width: 40px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .character-attributes .attribute-shield .attribute-label a.rollable {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .character-attributes .attribute-shield .attribute-label a.rollable i {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .character-attributes .attribute-shield .attribute-label a.rollable:hover {
|
||||||
|
color: #000;
|
||||||
|
text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .character-attributes .attribute-shield .attribute-label a.rollable:hover i {
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .character-attributes .attribute-shield .attribute-value input {
|
||||||
|
width: 45px;
|
||||||
|
height: 32px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: rgba(255, 255, 255, 0.9);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .character-attributes .attribute-shield .attribute-save {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-left-column .character-attributes .attribute-shield .attribute-save input {
|
||||||
|
width: 45px;
|
||||||
|
height: 32px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: rgba(200, 220, 255, 0.5);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .section-title {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
padding: 5px 10px;
|
||||||
|
background: rgba(255, 255, 255, 0.6);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .race-section .race-box {
|
||||||
|
padding: 10px;
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
border: 3px solid #6b6b6b;
|
||||||
|
border-radius: 8px;
|
||||||
|
min-height: 60px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .race-section .race-box .section-title {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin: 0 0 8px 0;
|
||||||
|
padding: 5px;
|
||||||
|
background: rgba(255, 255, 255, 0.6);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .race-section .race-box .race-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .race-section .race-box .race-item .item-img {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .race-section .race-box .race-item .race-name {
|
||||||
|
flex: 1;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .race-section .race-box .race-item .controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .race-section .race-box .race-item .controls a {
|
||||||
|
color: #6b6b6b;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: color 0.2s;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .race-section .race-box .race-item .controls a:hover {
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .race-section .race-box .race-item .controls a i {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .race-section .race-box .no-race {
|
||||||
|
text-align: center;
|
||||||
|
font-family: "Crimson Text", serif;
|
||||||
|
font-size: 13px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
font-style: italic;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .race-section .race-box input {
|
||||||
|
width: 100%;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .classes-section {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .classes-section .class-box {
|
||||||
|
padding: 10px;
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
border: 3px solid #6b6b6b;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .classes-section .class-box .class-label {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .classes-section .class-box .class-content .class-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .classes-section .class-box .class-content .class-item .item-img {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .classes-section .class-box .class-content .class-item .class-name {
|
||||||
|
flex: 1;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .classes-section .class-box .class-content .class-item .controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .classes-section .class-box .class-content .class-item .controls a {
|
||||||
|
color: #6b6b6b;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: color 0.2s;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .classes-section .class-box .class-content .class-item .controls a:hover {
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .classes-section .class-box .class-content .class-item .controls a i {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .classes-section .class-box .class-content .no-class {
|
||||||
|
text-align: center;
|
||||||
|
font-family: "Crimson Text", serif;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
font-style: italic;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .classes-section .class-box .class-input input {
|
||||||
|
width: 100%;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .origin-section .origin-box {
|
||||||
|
padding: 15px;
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
border: 3px solid #6b6b6b;
|
||||||
|
border-radius: 8px;
|
||||||
|
min-height: 350px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-main-v2 .character-right-column .origin-section .origin-box textarea {
|
||||||
|
width: 100%;
|
||||||
|
min-height: 320px;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
font-family: "Crimson Text", serif;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 1.6;
|
||||||
|
resize: vertical;
|
||||||
|
}
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content .subattributes-list {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content .subattribute-item {
|
||||||
|
background: rgba(0, 0, 0, 0.1);
|
||||||
|
border: 1px solid var(--color-border-dark-secondary);
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 0.75rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content .subattribute-item .subattribute-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content .subattribute-item .subattribute-name {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.1em;
|
||||||
|
color: var(--color-text-dark-primary);
|
||||||
|
}
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content .subattribute-item .subattribute-value input {
|
||||||
|
width: 3em;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.2em;
|
||||||
|
background: rgba(255, 255, 255, 0.1);
|
||||||
|
border: 1px solid var(--color-border-dark-tertiary);
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 0.25rem;
|
||||||
|
color: var(--color-text-dark-primary);
|
||||||
|
}
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content .subattribute-item .subattribute-value input:disabled {
|
||||||
|
opacity: 0.9;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content .subattribute-item .subattribute-details {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.25rem;
|
||||||
|
font-size: 0.9em;
|
||||||
|
color: var(--color-text-dark-secondary);
|
||||||
|
}
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content .subattribute-item .subattribute-parents {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content .subattribute-item .subattribute-parents .parent-char {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
}
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content .subattribute-item .subattribute-parents .parent-char .parent-name {
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--color-text-dark-primary);
|
||||||
|
}
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content .subattribute-item .subattribute-parents .parent-char .parent-value {
|
||||||
|
color: var(--color-text-dark-secondary);
|
||||||
|
}
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content .subattribute-item .subattribute-description {
|
||||||
|
padding-top: 0.25rem;
|
||||||
|
border-top: 1px solid var(--color-border-dark-tertiary);
|
||||||
|
font-size: 0.85em;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.prismrpg .character-subattributes.tab .subattributes-content .subattributes-list {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
}
|
||||||
.prismrpg .monster-content {
|
.prismrpg .monster-content {
|
||||||
font-family: var(--font-primary);
|
font-family: var(--font-primary);
|
||||||
font-size: calc(var(--font-size-standard) * 1);
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
|
|||||||
+65
-2
@@ -78,6 +78,66 @@
|
|||||||
"cha": {
|
"cha": {
|
||||||
"label": "Charisma"
|
"label": "Charisma"
|
||||||
},
|
},
|
||||||
|
"prowess": {
|
||||||
|
"label": "Prowess",
|
||||||
|
"description": "Physical power and combat capability (STR+DEX)"
|
||||||
|
},
|
||||||
|
"vigor": {
|
||||||
|
"label": "Vigor",
|
||||||
|
"description": "Endurance and physical resilience (STR+CON)"
|
||||||
|
},
|
||||||
|
"competence": {
|
||||||
|
"label": "Competence",
|
||||||
|
"description": "Practical application of knowledge (STR+INT)"
|
||||||
|
},
|
||||||
|
"authority": {
|
||||||
|
"label": "Authority",
|
||||||
|
"description": "Command and leadership presence (STR+WIS)"
|
||||||
|
},
|
||||||
|
"presence": {
|
||||||
|
"label": "Presence",
|
||||||
|
"description": "Physical charisma and intimidation (STR+CHA)"
|
||||||
|
},
|
||||||
|
"stamina": {
|
||||||
|
"label": "Stamina",
|
||||||
|
"description": "Athletic endurance (DEX+CON)"
|
||||||
|
},
|
||||||
|
"initiative": {
|
||||||
|
"label": "Initiative",
|
||||||
|
"description": "Reaction speed and alertness (DEX+INT)"
|
||||||
|
},
|
||||||
|
"wit": {
|
||||||
|
"label": "Wit",
|
||||||
|
"description": "Mental agility and cleverness (DEX+WIS)"
|
||||||
|
},
|
||||||
|
"grace": {
|
||||||
|
"label": "Grace",
|
||||||
|
"description": "Social finesse and charm (DEX+CHA)"
|
||||||
|
},
|
||||||
|
"tenacity": {
|
||||||
|
"label": "Tenacity",
|
||||||
|
"description": "Mental and physical toughness (CON+INT)"
|
||||||
|
},
|
||||||
|
"willpower": {
|
||||||
|
"label": "Willpower",
|
||||||
|
"description": "Inner strength and determination (CON+WIS)"
|
||||||
|
},
|
||||||
|
"resilience": {
|
||||||
|
"label": "Resilience",
|
||||||
|
"description": "Ability to endure hardship (CON+CHA)"
|
||||||
|
},
|
||||||
|
"cunning": {
|
||||||
|
"label": "Cunning",
|
||||||
|
"description": "Strategic thinking (INT+WIS)"
|
||||||
|
},
|
||||||
|
"guile": {
|
||||||
|
"label": "Guile",
|
||||||
|
"description": "Deceptive intellect (INT+CHA)"
|
||||||
|
},
|
||||||
|
"sovereignty": {
|
||||||
|
"label": "Sovereignty",
|
||||||
|
"description": "Diplomatic wisdom and influence (WIS+CHA)"
|
||||||
|
},
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
"moneys": {
|
"moneys": {
|
||||||
"tinbit": {
|
"tinbit": {
|
||||||
@@ -454,6 +514,7 @@
|
|||||||
"skill": "Skill",
|
"skill": "Skill",
|
||||||
"skillBonus": "Skill bonus",
|
"skillBonus": "Skill bonus",
|
||||||
"skills": "Skills",
|
"skills": "Skills",
|
||||||
|
"subattributes": "Sub-Attributes",
|
||||||
"spells": "Spells",
|
"spells": "Spells",
|
||||||
"str": "STR",
|
"str": "STR",
|
||||||
"titleChallenge": "Challenge",
|
"titleChallenge": "Challenge",
|
||||||
@@ -743,7 +804,9 @@
|
|||||||
"racialAbilities": "Racial Abilities from your character's race and sub-race"
|
"racialAbilities": "Racial Abilities from your character's race and sub-race"
|
||||||
},
|
},
|
||||||
"Message": {
|
"Message": {
|
||||||
"selectCoreSkill": "You must select a Core Skill for your character. Each character chooses one Core Skill at creation."
|
"selectCoreSkill": "You must select a Core Skill for your character. Each character chooses one Core Skill at creation.",
|
||||||
|
"dropRace": "Drag and drop a Race item here",
|
||||||
|
"dropClass": "Drag and drop a Class item here"
|
||||||
},
|
},
|
||||||
"Miracle": {
|
"Miracle": {
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
@@ -842,7 +905,7 @@
|
|||||||
"save": "Save roll {save}",
|
"save": "Save roll {save}",
|
||||||
"success": "Success",
|
"success": "Success",
|
||||||
"visibility": "Visibility",
|
"visibility": "Visibility",
|
||||||
"favorDisfavor": "Favor/Disfavor"
|
"advantageDisadvantage": "Advantage/Disadvantage"
|
||||||
},
|
},
|
||||||
"Save": {
|
"Save": {
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
import PrismRPGActorSheet from "./base-actor-sheet.mjs"
|
import PrismRPGActorSheet from "./base-actor-sheet.mjs"
|
||||||
import PrismRPGRoll from "../../documents/roll.mjs"
|
import PrismRPGRoll from "../../documents/roll.mjs"
|
||||||
|
import { SYSTEM } from "../../config/system.mjs"
|
||||||
|
|
||||||
export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
||||||
/** @override */
|
/** @override */
|
||||||
static DEFAULT_OPTIONS = {
|
static DEFAULT_OPTIONS = {
|
||||||
classes: ["character"],
|
classes: ["character"],
|
||||||
position: {
|
position: {
|
||||||
width: 972,
|
width: 750,
|
||||||
height: 780,
|
height: 780,
|
||||||
},
|
},
|
||||||
window: {
|
window: {
|
||||||
@@ -36,6 +37,9 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
skills: {
|
skills: {
|
||||||
template: "systems/fvtt-prism-rpg/templates/character-skills.hbs",
|
template: "systems/fvtt-prism-rpg/templates/character-skills.hbs",
|
||||||
},
|
},
|
||||||
|
subattributes: {
|
||||||
|
template: "systems/fvtt-prism-rpg/templates/character-subattributes.hbs",
|
||||||
|
},
|
||||||
combat: {
|
combat: {
|
||||||
template: "systems/fvtt-prism-rpg/templates/character-combat.hbs",
|
template: "systems/fvtt-prism-rpg/templates/character-combat.hbs",
|
||||||
},
|
},
|
||||||
@@ -67,6 +71,7 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
#getTabs() {
|
#getTabs() {
|
||||||
let tabs = {
|
let tabs = {
|
||||||
skills: { id: "skills", group: "sheet", icon: "fa-solid fa-shapes", label: "PRISMRPG.Label.skills" },
|
skills: { id: "skills", group: "sheet", icon: "fa-solid fa-shapes", label: "PRISMRPG.Label.skills" },
|
||||||
|
subattributes: { id: "subattributes", group: "sheet", icon: "fa-solid fa-diagram-project", label: "PRISMRPG.Label.subattributes" },
|
||||||
combat: { id: "combat", group: "sheet", icon: "fa-solid fa-swords", label: "PRISMRPG.Label.combat" },
|
combat: { id: "combat", group: "sheet", icon: "fa-solid fa-swords", label: "PRISMRPG.Label.combat" },
|
||||||
equipment: { id: "equipment", group: "sheet", icon: "fa-solid fa-backpack", label: "PRISMRPG.Label.equipment" },
|
equipment: { id: "equipment", group: "sheet", icon: "fa-solid fa-backpack", label: "PRISMRPG.Label.equipment" },
|
||||||
biography: { id: "biography", group: "sheet", icon: "fa-solid fa-book", label: "PRISMRPG.Label.biography" },
|
biography: { id: "biography", group: "sheet", icon: "fa-solid fa-book", label: "PRISMRPG.Label.biography" },
|
||||||
@@ -90,6 +95,7 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
context.tabs = this.#getTabs()
|
context.tabs = this.#getTabs()
|
||||||
|
context.config = SYSTEM
|
||||||
|
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
@@ -99,6 +105,14 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
const doc = this.document
|
const doc = this.document
|
||||||
switch (partId) {
|
switch (partId) {
|
||||||
case "main":
|
case "main":
|
||||||
|
context.race = doc.itemTypes.race?.[0] || null
|
||||||
|
const classes = doc.itemTypes.class || []
|
||||||
|
// Create 3 class slots
|
||||||
|
context.classSlots = [
|
||||||
|
classes[0] || null,
|
||||||
|
classes[1] || null,
|
||||||
|
classes[2] || null
|
||||||
|
]
|
||||||
break
|
break
|
||||||
case "skills":
|
case "skills":
|
||||||
context.tab = context.tabs.skills
|
context.tab = context.tabs.skills
|
||||||
@@ -106,6 +120,9 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
context.racialAbilities = doc.itemTypes["racial-ability"]
|
context.racialAbilities = doc.itemTypes["racial-ability"]
|
||||||
context.vulnerabilities = doc.itemTypes.vulnerability
|
context.vulnerabilities = doc.itemTypes.vulnerability
|
||||||
break
|
break
|
||||||
|
case "subattributes":
|
||||||
|
context.tab = context.tabs.subattributes
|
||||||
|
break
|
||||||
case "spells":
|
case "spells":
|
||||||
context.tab = context.tabs.spells
|
context.tab = context.tabs.spells
|
||||||
context.spells = doc.itemTypes.spell
|
context.spells = doc.itemTypes.spell
|
||||||
|
|||||||
+18
-18
@@ -135,28 +135,28 @@ export const CHALLENGES = Object.freeze({
|
|||||||
})
|
})
|
||||||
|
|
||||||
export const SAVES = Object.freeze({
|
export const SAVES = Object.freeze({
|
||||||
will: {
|
str: {
|
||||||
id: "will",
|
id: "str",
|
||||||
label: "PRISMRPG.Character.will.label"
|
label: "PRISMRPG.Character.str.label"
|
||||||
},
|
},
|
||||||
dodge: {
|
dex: {
|
||||||
id: "dodge",
|
id: "dex",
|
||||||
label: "PRISMRPG.Character.dodge.label"
|
label: "PRISMRPG.Character.dex.label"
|
||||||
},
|
},
|
||||||
toughness: {
|
con: {
|
||||||
id: "toughness",
|
id: "con",
|
||||||
label: "PRISMRPG.Character.toughness.label"
|
label: "PRISMRPG.Character.con.label"
|
||||||
},
|
},
|
||||||
contagion: {
|
int: {
|
||||||
id: "contagion",
|
id: "int",
|
||||||
label: "PRISMRPG.Character.contagion.label"
|
label: "PRISMRPG.Character.int.label"
|
||||||
},
|
},
|
||||||
poison: {
|
wis: {
|
||||||
id: "poison",
|
id: "wis",
|
||||||
label: "PRISMRPG.Character.poison.label"
|
label: "PRISMRPG.Character.wis.label"
|
||||||
},
|
},
|
||||||
pain: {
|
cha: {
|
||||||
id: "pain",
|
id: "cha",
|
||||||
label: "PRISMRPG.Character.pain.label"
|
label: "PRISMRPG.Character.cha.label"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -56,10 +56,10 @@ export const MORTAL_CHOICES = {
|
|||||||
"halflings": { label: "Halfling", id: "halflings", defenseBonus: 2 }
|
"halflings": { label: "Halfling", id: "halflings", defenseBonus: 2 }
|
||||||
}
|
}
|
||||||
|
|
||||||
export const FAVOR_CHOICES = {
|
export const ADVANTAGE_CHOICES = {
|
||||||
"none": { label: "None", value: "none" },
|
"none": { label: "None", value: "none" },
|
||||||
"favor": { label: "Favor", value: "favor" },
|
"advantage": { label: "Advantage", value: "advantage" },
|
||||||
"disfavor": { label: "Disfavor", value: "disfavor" }
|
"disadvantage": { label: "Disadvantage", value: "disadvantage" }
|
||||||
}
|
}
|
||||||
|
|
||||||
export const MOVEMENT_CHOICES = {
|
export const MOVEMENT_CHOICES = {
|
||||||
@@ -327,7 +327,7 @@ export const SYSTEM = {
|
|||||||
MOVE_DIRECTION_CHOICES,
|
MOVE_DIRECTION_CHOICES,
|
||||||
SIZE_CHOICES,
|
SIZE_CHOICES,
|
||||||
RANGE_CHOICES,
|
RANGE_CHOICES,
|
||||||
FAVOR_CHOICES,
|
ADVANTAGE_CHOICES,
|
||||||
ATTACKER_AIM_CHOICES,
|
ATTACKER_AIM_CHOICES,
|
||||||
MORTAL_CHOICES,
|
MORTAL_CHOICES,
|
||||||
MIRACLE_TYPES,
|
MIRACLE_TYPES,
|
||||||
|
|||||||
@@ -83,6 +83,17 @@ export default class PrismRPGActor extends Actor {
|
|||||||
console.log("Preparing roll", rollType, rollKey, rollDice)
|
console.log("Preparing roll", rollType, rollKey, rollDice)
|
||||||
let rollTarget
|
let rollTarget
|
||||||
switch (rollType) {
|
switch (rollType) {
|
||||||
|
case "characteristic":
|
||||||
|
if (!this.system.characteristics || !this.system.characteristics[rollKey]) {
|
||||||
|
ui.notifications.error(`Characteristic ${rollKey} not found`)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
rollTarget = {
|
||||||
|
...foundry.utils.duplicate(this.system.characteristics[rollKey]),
|
||||||
|
rollKey: rollKey,
|
||||||
|
name: game.i18n.localize(`PRISMRPG.Label.${rollKey}`)
|
||||||
|
}
|
||||||
|
break
|
||||||
case "granted":
|
case "granted":
|
||||||
rollTarget = {
|
rollTarget = {
|
||||||
name: rollKey,
|
name: rollKey,
|
||||||
@@ -183,13 +194,18 @@ export default class PrismRPGActor extends Actor {
|
|||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
ui.notifications.error(game.i18n.localize("PRISMRPG.Notifications.rollTypeNotFound") + String(rollType))
|
ui.notifications.error(game.i18n.localize("PRISMRPG.Notifications.rollTypeNotFound") + String(rollType))
|
||||||
break
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// In all cases
|
// In all cases - verify rollTarget exists
|
||||||
rollTarget.magicUser = this.system.biodata.magicUser
|
if (!rollTarget) {
|
||||||
rollTarget.actorModifiers = foundry.utils.duplicate(this.system.modifiers)
|
console.error("Roll target is undefined for rollType:", rollType)
|
||||||
rollTarget.actorLevel = this.system.biodata.level
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
rollTarget.magicUser = this.system.biodata?.magicUser || false
|
||||||
|
rollTarget.actorModifiers = this.system.modifiers ? foundry.utils.duplicate(this.system.modifiers) : {}
|
||||||
|
rollTarget.actorLevel = this.system.biodata?.level || 1
|
||||||
await this.system.roll(rollType, rollTarget)
|
await this.system.roll(rollType, rollTarget)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
+127
-975
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+42
-73
@@ -43,6 +43,20 @@ export default class PrismRPGCharacter extends foundry.abstract.TypeDataModel {
|
|||||||
}, {}),
|
}, {}),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Sub-Attributes (derived from two parent characteristics)
|
||||||
|
const subAttributeField = (label) => {
|
||||||
|
const schema = {
|
||||||
|
value: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
||||||
|
}
|
||||||
|
return new fields.SchemaField(schema, { label })
|
||||||
|
}
|
||||||
|
schema.subAttributes = new fields.SchemaField(
|
||||||
|
Object.values(SYSTEM.SUB_ATTRIBUTES).reduce((obj, subAttr) => {
|
||||||
|
obj[subAttr.id] = subAttributeField(subAttr.label)
|
||||||
|
return obj
|
||||||
|
}, {}),
|
||||||
|
)
|
||||||
|
|
||||||
// Challenges
|
// Challenges
|
||||||
const challengeField = (label) => {
|
const challengeField = (label) => {
|
||||||
const schema = {
|
const schema = {
|
||||||
@@ -67,50 +81,21 @@ export default class PrismRPGCharacter extends foundry.abstract.TypeDataModel {
|
|||||||
schema.hp = new fields.SchemaField({
|
schema.hp = new fields.SchemaField({
|
||||||
value: new fields.NumberField({ ...requiredInteger, initial: 1, min: 0 }),
|
value: new fields.NumberField({ ...requiredInteger, initial: 1, min: 0 }),
|
||||||
max: new fields.NumberField({ ...requiredInteger, initial: 1, min: 0 }),
|
max: new fields.NumberField({ ...requiredInteger, initial: 1, min: 0 }),
|
||||||
painDamage: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
temp: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
||||||
wounds: new fields.ArrayField(new fields.SchemaField(woundFieldSchema), {
|
|
||||||
initial: [{ description: "", value: 0, duration: 0 }, { description: "", value: 0, duration: 0 },
|
|
||||||
{ description: "", value: 0, duration: 0 }, { description: "", value: 0, duration: 0 }, { description: "", value: 0, duration: 0 }, { description: "", value: 0, duration: 0 },
|
|
||||||
{ description: "", value: 0, duration: 0 }, { description: "", value: 0, duration: 0 }], min: 8
|
|
||||||
}),
|
|
||||||
damageResistance: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
|
||||||
})
|
})
|
||||||
|
|
||||||
schema.perception = new fields.SchemaField({
|
schema.magicPoints = new fields.SchemaField({
|
||||||
value: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
value: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||||
bonus: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
max: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
||||||
})
|
|
||||||
schema.grit = new fields.SchemaField({
|
|
||||||
starting: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
earned: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
current: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
|
||||||
})
|
|
||||||
schema.luck = new fields.SchemaField({
|
|
||||||
earned: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
current: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
|
||||||
})
|
|
||||||
schema.granted = new fields.SchemaField({
|
|
||||||
attackDice: new fields.StringField({ required: true, nullable: false, initial: "0", choices: SYSTEM.GRANTED_DICE_CHOICES }),
|
|
||||||
defenseDice: new fields.StringField({ required: true, nullable: false, initial: "0", choices: SYSTEM.GRANTED_DICE_CHOICES }),
|
|
||||||
damageDice: new fields.StringField({ required: true, nullable: false, initial: "0", choices: SYSTEM.GRANTED_DICE_CHOICES })
|
|
||||||
})
|
})
|
||||||
|
|
||||||
schema.movement = new fields.SchemaField({
|
schema.armorPoints = new fields.SchemaField({
|
||||||
walk: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
value: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||||
jog: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
max: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
||||||
sprint: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
run: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
armorAdjust: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
})
|
|
||||||
schema.jump = new fields.SchemaField({
|
|
||||||
broad: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
running: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
vertical: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
schema.biodata = new fields.SchemaField({
|
schema.biodata = new fields.SchemaField({
|
||||||
class: new fields.StringField({ required: true, initial: "untrained", choices: SYSTEM.CHAR_CLASSES }),
|
|
||||||
level: new fields.NumberField({ ...requiredInteger, initial: 1, min: 1 }),
|
level: new fields.NumberField({ ...requiredInteger, initial: 1, min: 1 }),
|
||||||
mortal: new fields.StringField({ required: true, initial: "mankind", choices: SYSTEM.MORTAL_CHOICES }),
|
|
||||||
alignment: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
alignment: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
age: new fields.NumberField({ ...requiredInteger, initial: 15, min: 6 }),
|
age: new fields.NumberField({ ...requiredInteger, initial: 15, min: 6 }),
|
||||||
height: new fields.NumberField({ ...requiredInteger, initial: 170, min: 10 }),
|
height: new fields.NumberField({ ...requiredInteger, initial: 170, min: 10 }),
|
||||||
@@ -118,16 +103,7 @@ export default class PrismRPGCharacter extends foundry.abstract.TypeDataModel {
|
|||||||
eyes: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
eyes: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
hair: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
hair: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
magicUser: new fields.BooleanField({ initial: false }),
|
magicUser: new fields.BooleanField({ initial: false }),
|
||||||
clericUser: new fields.BooleanField({ initial: false }),
|
clericUser: new fields.BooleanField({ initial: false })
|
||||||
hpPerLevel: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
|
||||||
})
|
|
||||||
|
|
||||||
schema.modifiers = new fields.SchemaField({
|
|
||||||
levelSpellModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
saveModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
levelMiracleModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
intSpellModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
chaMiracleModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
schema.developmentPoints = new fields.SchemaField({
|
schema.developmentPoints = new fields.SchemaField({
|
||||||
@@ -171,14 +147,16 @@ export default class PrismRPGCharacter extends foundry.abstract.TypeDataModel {
|
|||||||
// Core Skill system (Prism RPG)
|
// Core Skill system (Prism RPG)
|
||||||
schema.coreSkill = new fields.SchemaField({
|
schema.coreSkill = new fields.SchemaField({
|
||||||
skill: new fields.StringField({
|
skill: new fields.StringField({
|
||||||
required: true,
|
required: false,
|
||||||
initial: "",
|
nullable: true,
|
||||||
|
initial: null,
|
||||||
choices: SYSTEM.CORE_SKILLS_CHOICES,
|
choices: SYSTEM.CORE_SKILLS_CHOICES,
|
||||||
label: "Selected Core Skill"
|
label: "Selected Core Skill"
|
||||||
}),
|
}),
|
||||||
attributeChoice: new fields.StringField({
|
attributeChoice: new fields.StringField({
|
||||||
required: true,
|
required: false,
|
||||||
initial: "",
|
nullable: true,
|
||||||
|
initial: null,
|
||||||
label: "Attribute Choice for +2 Bonus"
|
label: "Attribute Choice for +2 Bonus"
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -216,43 +194,34 @@ export default class PrismRPGCharacter extends foundry.abstract.TypeDataModel {
|
|||||||
|
|
||||||
prepareDerivedData() {
|
prepareDerivedData() {
|
||||||
super.prepareDerivedData();
|
super.prepareDerivedData();
|
||||||
let grit = 0
|
|
||||||
for (let c in this.characteristics) {
|
// Calculate sub-attributes from parent characteristics
|
||||||
if (SYSTEM.CHARACTERISTICS_MAJOR[c.id]) {
|
// Sub-attribute = lowest ability modifier between the two parent characteristics
|
||||||
grit += this.characteristics[c].value
|
for (let subAttrKey in SYSTEM.SUB_ATTRIBUTES) {
|
||||||
}
|
const subAttr = SYSTEM.SUB_ATTRIBUTES[subAttrKey]
|
||||||
|
const parent1Value = this.characteristics[subAttr.parents[0]].value
|
||||||
|
const parent2Value = this.characteristics[subAttr.parents[1]].value
|
||||||
|
// Calculate D&D 5e style ability modifiers: (ability - 10) / 2
|
||||||
|
const parent1Bonus = Math.floor((parent1Value - 10) / 2)
|
||||||
|
const parent2Bonus = Math.floor((parent2Value - 10) / 2)
|
||||||
|
// Take the lowest modifier
|
||||||
|
this.subAttributes[subAttrKey].value = Math.min(parent1Bonus, parent2Bonus)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.modifiers.saveModifier = Math.floor((Number(this.biodata.level) / 5))
|
// Calculate save modifier locally (not stored)
|
||||||
this.modifiers.levelSpellModifier = Math.floor((Number(this.biodata.level) / 5))
|
const saveModifier = Math.floor((Number(this.biodata.level) / 5))
|
||||||
this.modifiers.levelMiracleModifier = Math.floor((Number(this.biodata.level) / 5))
|
|
||||||
|
|
||||||
this.grit.starting = Math.round(grit / 6)
|
|
||||||
|
|
||||||
let strDef = SYSTEM.CHARACTERISTICS_TABLES.str.find(s => s.value === this.characteristics.str.value)
|
let strDef = SYSTEM.CHARACTERISTICS_TABLES.str.find(s => s.value === this.characteristics.str.value)
|
||||||
this.challenges.str.value = strDef.challenge
|
this.challenges.str.value = strDef.challenge
|
||||||
|
|
||||||
let intDef = SYSTEM.CHARACTERISTICS_TABLES.int.find(s => s.value === this.characteristics.int.value)
|
|
||||||
this.modifiers.intSpellModifier = intDef.arkane_casting_mod
|
|
||||||
|
|
||||||
let dexDef = SYSTEM.CHARACTERISTICS_TABLES.dex.find(s => s.value === this.characteristics.dex.value)
|
let dexDef = SYSTEM.CHARACTERISTICS_TABLES.dex.find(s => s.value === this.characteristics.dex.value)
|
||||||
this.challenges.agility.value = dexDef.challenge
|
this.challenges.agility.value = dexDef.challenge
|
||||||
this.saves.dodge.value = dexDef.dodge + this.modifiers.saveModifier
|
|
||||||
|
|
||||||
let wisDef = SYSTEM.CHARACTERISTICS_TABLES.wis.find(s => s.value === this.characteristics.wis.value)
|
let wisDef = SYSTEM.CHARACTERISTICS_TABLES.wis.find(s => s.value === this.characteristics.wis.value)
|
||||||
this.saves.will.value = wisDef.willpower_save + this.modifiers.saveModifier
|
|
||||||
|
|
||||||
let chaDef = SYSTEM.CHARACTERISTICS_TABLES.cha.find(s => s.value === this.characteristics.cha.value)
|
|
||||||
this.modifiers.chaMiracleModifier = chaDef.divine_miracle_bonus
|
|
||||||
|
|
||||||
let conDef = SYSTEM.CHARACTERISTICS_TABLES.con.find(s => s.value === this.characteristics.con.value)
|
let conDef = SYSTEM.CHARACTERISTICS_TABLES.con.find(s => s.value === this.characteristics.con.value)
|
||||||
this.saves.pain.value = conDef.pain_save + this.modifiers.saveModifier
|
|
||||||
this.saves.toughness.value = conDef.toughness_save + this.modifiers.saveModifier
|
|
||||||
this.challenges.dying.value = conDef.stabilization_dice
|
this.challenges.dying.value = conDef.stabilization_dice
|
||||||
|
|
||||||
this.saves.contagion.value = this.characteristics.con.value;// + this.modifiers.saveModifier
|
|
||||||
this.saves.poison.value = this.characteristics.con.value; // + this.modifiers.saveModifier
|
|
||||||
|
|
||||||
this.combat.attackModifier = 0
|
this.combat.attackModifier = 0
|
||||||
for (let chaKey of SYSTEM.CHARACTERISTIC_ATTACK) {
|
for (let chaKey of SYSTEM.CHARACTERISTIC_ATTACK) {
|
||||||
let chaDef = SYSTEM.CHARACTERISTICS_TABLES[chaKey].find(s => s.value === this.characteristics[chaKey].value)
|
let chaDef = SYSTEM.CHARACTERISTICS_TABLES[chaKey].find(s => s.value === this.characteristics[chaKey].value)
|
||||||
|
|||||||
@@ -170,6 +170,12 @@ export default class PrismRPGUtils {
|
|||||||
Handlebars.registerHelper('countKeys', function (obj) {
|
Handlebars.registerHelper('countKeys', function (obj) {
|
||||||
return Object.keys(obj).length;
|
return Object.keys(obj).length;
|
||||||
})
|
})
|
||||||
|
Handlebars.registerHelper('entries', function (obj) {
|
||||||
|
return Object.entries(obj);
|
||||||
|
})
|
||||||
|
Handlebars.registerHelper('uppercase', function (str) {
|
||||||
|
return str ? str.toUpperCase() : '';
|
||||||
|
})
|
||||||
|
|
||||||
Handlebars.registerHelper('isEnabled', function (configKey) {
|
Handlebars.registerHelper('isEnabled', function (configKey) {
|
||||||
return game.settings.get("bol", configKey);
|
return game.settings.get("bol", configKey);
|
||||||
|
|||||||
@@ -0,0 +1,447 @@
|
|||||||
|
// Character Main Sheet V2 - Based on PNG character sheet design
|
||||||
|
.character-main-v2 {
|
||||||
|
.sheet-common();
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
.character-sheet-wrapper {
|
||||||
|
background-image: url("../assets/sheet/character-bg.png");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
padding: 8px 10px;
|
||||||
|
min-height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Character Header with Banner
|
||||||
|
.character-header {
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
|
||||||
|
.character-name-banner {
|
||||||
|
background-image: url("../assets/sheet/banner-bg.png");
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
height: 60px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
input {
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
text-align: center;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
width: 500px;
|
||||||
|
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.character-toggle-controls {
|
||||||
|
position: absolute;
|
||||||
|
top: 10px;
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Main Grid Layout
|
||||||
|
.character-main-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 300px;
|
||||||
|
gap: 12px;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Left Column - Portrait, Attributes, HP
|
||||||
|
.character-left-column {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 12px;
|
||||||
|
align-items: flex-start;
|
||||||
|
|
||||||
|
.portrait-hp-column {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
width: 200px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.character-portrait {
|
||||||
|
width: 200px;
|
||||||
|
height: 200px;
|
||||||
|
border: 3px solid #6b6b6b;
|
||||||
|
border-radius: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #d4d4d4;
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// HP Shields - below portrait, same width
|
||||||
|
.hp-shields-section {
|
||||||
|
width: 200px;
|
||||||
|
|
||||||
|
.hp-shields {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 6px;
|
||||||
|
|
||||||
|
.hp-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
|
||||||
|
.hp-label {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
width: 55px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hp-value {
|
||||||
|
input {
|
||||||
|
width: 40px;
|
||||||
|
height: 28px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: rgba(255, 255, 255, 0.9);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hp-separator {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hp-max {
|
||||||
|
input {
|
||||||
|
width: 40px;
|
||||||
|
height: 28px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: rgba(200, 220, 255, 0.5);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.character-attributes {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 6px;
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
max-width: 280px;
|
||||||
|
|
||||||
|
.attribute-shield {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
background: rgba(255, 255, 255, 0.3);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
height: auto;
|
||||||
|
|
||||||
|
.attribute-label {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin: 0;
|
||||||
|
min-width: 40px;
|
||||||
|
|
||||||
|
a.rollable {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s;
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #000;
|
||||||
|
text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.attribute-value {
|
||||||
|
input {
|
||||||
|
width: 45px;
|
||||||
|
height: 32px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: rgba(255, 255, 255, 0.9);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.attribute-save {
|
||||||
|
margin-left: auto;
|
||||||
|
|
||||||
|
input {
|
||||||
|
width: 45px;
|
||||||
|
height: 32px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: rgba(200, 220, 255, 0.5);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Right Column - Race, Classes
|
||||||
|
.character-right-column {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 15px;
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
padding: 5px 10px;
|
||||||
|
background: rgba(255, 255, 255, 0.6);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.race-section {
|
||||||
|
.race-box {
|
||||||
|
padding: 10px;
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
border: 3px solid #6b6b6b;
|
||||||
|
border-radius: 8px;
|
||||||
|
min-height: 60px;
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin: 0 0 8px 0;
|
||||||
|
padding: 5px;
|
||||||
|
background: rgba(255, 255, 255, 0.6);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.race-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
|
||||||
|
.item-img {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.race-name {
|
||||||
|
flex: 1;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #6b6b6b;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: color 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-race {
|
||||||
|
text-align: center;
|
||||||
|
font-family: "Crimson Text", serif;
|
||||||
|
font-size: 13px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
font-style: italic;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
width: 100%;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.classes-section {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
|
||||||
|
.class-box {
|
||||||
|
padding: 10px;
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
border: 3px solid #6b6b6b;
|
||||||
|
border-radius: 8px;
|
||||||
|
|
||||||
|
.class-label {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.class-content {
|
||||||
|
.class-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
|
||||||
|
.item-img {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.class-name {
|
||||||
|
flex: 1;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #6b6b6b;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: color 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-class {
|
||||||
|
text-align: center;
|
||||||
|
font-family: "Crimson Text", serif;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
font-style: italic;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.class-input {
|
||||||
|
input {
|
||||||
|
width: 100%;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.origin-section {
|
||||||
|
.origin-box {
|
||||||
|
padding: 15px;
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
border: 3px solid #6b6b6b;
|
||||||
|
border-radius: 8px;
|
||||||
|
min-height: 350px;
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
width: 100%;
|
||||||
|
min-height: 320px;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
font-family: "Crimson Text", serif;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 1.6;
|
||||||
|
resize: vertical;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
// Sub-attributes tab styling
|
||||||
|
|
||||||
|
.character-subattributes.tab {
|
||||||
|
.subattributes-content {
|
||||||
|
padding: 1rem;
|
||||||
|
|
||||||
|
.subattributes-list {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subattribute-item {
|
||||||
|
background: rgba(0, 0, 0, 0.1);
|
||||||
|
border: 1px solid var(--color-border-dark-secondary);
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 0.75rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.5rem;
|
||||||
|
|
||||||
|
.subattribute-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subattribute-name {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.1em;
|
||||||
|
color: var(--color-text-dark-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.subattribute-value {
|
||||||
|
input {
|
||||||
|
width: 3em;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.2em;
|
||||||
|
background: rgba(255, 255, 255, 0.1);
|
||||||
|
border: 1px solid var(--color-border-dark-tertiary);
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 0.25rem;
|
||||||
|
color: var(--color-text-dark-primary);
|
||||||
|
|
||||||
|
&:disabled {
|
||||||
|
opacity: 0.9;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.subattribute-details {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.25rem;
|
||||||
|
font-size: 0.9em;
|
||||||
|
color: var(--color-text-dark-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.subattribute-parents {
|
||||||
|
font-style: italic;
|
||||||
|
|
||||||
|
.parent-char {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
|
||||||
|
.parent-name {
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--color-text-dark-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.parent-value {
|
||||||
|
color: var(--color-text-dark-secondary);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.subattribute-description {
|
||||||
|
padding-top: 0.25rem;
|
||||||
|
border-top: 1px solid var(--color-border-dark-tertiary);
|
||||||
|
font-size: 0.85em;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Responsive adjustments
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.character-subattributes.tab {
|
||||||
|
.subattributes-content {
|
||||||
|
.subattributes-list {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+168
-21
@@ -263,52 +263,199 @@
|
|||||||
}
|
}
|
||||||
.skills {
|
.skills {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 4px;
|
gap: 6px;
|
||||||
.skill {
|
.skill {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 8px;
|
||||||
.item-img {
|
padding: 6px 10px;
|
||||||
width: 24px;
|
background: rgba(255, 255, 255, 0.3);
|
||||||
height: 24px;
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.is-core-skill {
|
||||||
|
background: rgba(255, 235, 180, 0.4);
|
||||||
|
border-color: #d4a017;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(255, 235, 180, 0.6);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-img {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
min-width: 12rem;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
|
||||||
|
a {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #2c2c2c;
|
||||||
|
|
||||||
|
i {
|
||||||
|
margin-right: 6px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.score {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
min-width: 50px;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.advanced-icon {
|
||||||
|
color: #d4a017;
|
||||||
|
font-size: 18px;
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #6b6b6b;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: color 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.racial-abilities {
|
.racial-abilities {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 4px;
|
gap: 6px;
|
||||||
.racial-ability {
|
.racial-ability {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 8px;
|
||||||
.item-img {
|
padding: 6px 10px;
|
||||||
width: 24px;
|
background: rgba(200, 255, 200, 0.2);
|
||||||
height: 24px;
|
border: 2px solid #6b9b6b;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(200, 255, 200, 0.4);
|
||||||
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item-img {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border: 2px solid #6b9b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
min-width: 12rem;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #6b9b6b;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: color 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #3c6b3c;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.vulnerabilities {
|
.vulnerabilities {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 4px;
|
gap: 6px;
|
||||||
.vulnerability {
|
.vulnerability {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 8px;
|
||||||
.item-img {
|
padding: 6px 10px;
|
||||||
width: 24px;
|
background: rgba(255, 200, 200, 0.2);
|
||||||
height: 24px;
|
border: 2px solid #9b6b6b;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(255, 200, 200, 0.4);
|
||||||
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item-img {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border: 2px solid #9b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
min-width: 12rem;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #9b6b6b;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: color 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #6b3c3c;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
.prismrpg {
|
.prismrpg {
|
||||||
@import "mixins.less";
|
@import "mixins.less";
|
||||||
@import "character.less";
|
@import "character.less";
|
||||||
|
@import "character-main-v2.less";
|
||||||
|
@import "character-subattributes.less";
|
||||||
@import "monster.less";
|
@import "monster.less";
|
||||||
@import "skill.less";
|
@import "skill.less";
|
||||||
@import "racial-ability.less";
|
@import "racial-ability.less";
|
||||||
|
|||||||
+249
-412
@@ -1,95 +1,19 @@
|
|||||||
<section
|
<section class="character-main-v2">
|
||||||
class="character-main character-main-{{ifThen isPlayMode 'play' 'edit'}}"
|
{{log "character-main-v2" this}}
|
||||||
>
|
|
||||||
{{log "character-main" this}}
|
|
||||||
|
|
||||||
<fieldset>
|
<div class="character-sheet-wrapper">
|
||||||
<legend>{{localize "PRISMRPG.Label.pc"}}</legend>
|
{{! Character Header with Name }}
|
||||||
<div class="character-pc character-pc-{{ifThen isPlayMode 'play' 'edit'}}">
|
<div class="character-header">
|
||||||
<div class="character-left">
|
<div class="character-name-banner">
|
||||||
<div class="character-left-image">
|
|
||||||
<img
|
|
||||||
class="character-img"
|
|
||||||
src="{{actor.img}}"
|
|
||||||
data-edit="img"
|
|
||||||
data-action="editImage"
|
|
||||||
data-tooltip="{{actor.name}}"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<fieldset class="">
|
|
||||||
<div class="flexrow character-hp">
|
|
||||||
<span class="name">{{localize "PRISMRPG.Label.HP"}}</span>
|
|
||||||
{{formInput
|
|
||||||
systemFields.hp.fields.value
|
|
||||||
value=system.hp.value
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp-value"
|
|
||||||
}}
|
|
||||||
/
|
|
||||||
{{formInput
|
|
||||||
systemFields.hp.fields.max
|
|
||||||
value=system.hp.max
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp-value"
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
<div class="flexrow character-hp">
|
|
||||||
<span class="name">{{localize "PRISMRPG.Label.grit"}}</span>
|
|
||||||
{{formInput
|
|
||||||
systemFields.grit.fields.current
|
|
||||||
value=system.grit.current
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp"
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize "PRISMRPG.Label.earned"}}</span>
|
|
||||||
{{formInput
|
|
||||||
systemFields.grit.fields.earned
|
|
||||||
value=system.grit.earned
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp"
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
<div class="flexrow character-hp">
|
|
||||||
<span class="name">{{localize "PRISMRPG.Label.luck"}}</span>
|
|
||||||
{{formInput
|
|
||||||
systemFields.luck.fields.current
|
|
||||||
value=system.luck.current
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp"
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize "PRISMRPG.Label.earned"}}</span>
|
|
||||||
{{formInput
|
|
||||||
systemFields.luck.fields.earned
|
|
||||||
value=system.luck.earned
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp"
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flexrow">
|
|
||||||
<span class="">{{localize
|
|
||||||
"PRISMRPG.Label.damageResistanceShort"
|
|
||||||
}}</span>
|
|
||||||
{{formInput
|
|
||||||
systemFields.hp.fields.damageResistance
|
|
||||||
value=system.hp.fields.damageResistance
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp"
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="character-right">
|
|
||||||
<div class="character-name">
|
|
||||||
{{formInput
|
{{formInput
|
||||||
fields.name
|
fields.name
|
||||||
value=source.name
|
value=source.name
|
||||||
rootId=partId
|
rootId=partId
|
||||||
disabled=isPlayMode
|
disabled=isPlayMode
|
||||||
|
placeholder="Character Name"
|
||||||
}}
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="character-toggle-controls">
|
||||||
<a
|
<a
|
||||||
class="control"
|
class="control"
|
||||||
data-action="toggleSheet"
|
data-action="toggleSheet"
|
||||||
@@ -99,363 +23,276 @@
|
|||||||
<i class="fa-solid fa-user-{{ifThen isPlayMode 'lock' 'pen'}}"></i>
|
<i class="fa-solid fa-user-{{ifThen isPlayMode 'lock' 'pen'}}"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<fieldset
|
<div class="character-main-grid">
|
||||||
class="character-characteristics character-characteristics-{{ifThen
|
{{! Left Column - Portrait, Attributes & HP }}
|
||||||
isPlayMode
|
<div class="character-left-column">
|
||||||
'play'
|
{{! Portrait + HP column }}
|
||||||
'edit'
|
<div class="portrait-hp-column">
|
||||||
}}"
|
{{! Portrait }}
|
||||||
>
|
<div class="character-portrait">
|
||||||
<legend>{{localize "PRISMRPG.Label.Saves"}}</legend>
|
<img
|
||||||
<div class="character-saves">
|
class="character-img"
|
||||||
<div class="character-save">
|
src="{{actor.img}}"
|
||||||
<span class="name"><a
|
data-edit="img"
|
||||||
class="rollable"
|
data-action="editImage"
|
||||||
data-roll-type="save"
|
data-tooltip="{{actor.name}}"
|
||||||
data-roll-key="will"
|
/>
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>
|
</div>
|
||||||
{{localize "PRISMRPG.Label.saves.will"}}
|
|
||||||
</a></span>
|
{{! HP Shields (3 shields) - Below portrait }}
|
||||||
{{formField
|
<div class="hp-shields-section">
|
||||||
systemFields.saves.fields.will.fields.value
|
<div class="hp-shields">
|
||||||
value=system.saves.will.value
|
<div class="hp-item">
|
||||||
disabled=true
|
<div class="hp-label">HP</div>
|
||||||
|
<div class="hp-value">
|
||||||
|
{{formInput
|
||||||
|
systemFields.hp.fields.value
|
||||||
|
value=system.hp.value
|
||||||
|
disabled=isPlayMode
|
||||||
}}
|
}}
|
||||||
<span class="name">
|
</div>
|
||||||
<a
|
<div class="hp-separator">/</div>
|
||||||
class="rollable"
|
<div class="hp-max">
|
||||||
data-roll-type="save"
|
{{formInput
|
||||||
data-roll-key="dodge"
|
systemFields.hp.fields.max
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>
|
value=system.hp.max
|
||||||
{{localize "PRISMRPG.Label.saves.dodge"}}
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="hp-item">
|
||||||
|
<div class="hp-label">MAGIC</div>
|
||||||
|
<div class="hp-value">
|
||||||
|
{{formInput
|
||||||
|
systemFields.magicPoints.fields.value
|
||||||
|
value=system.magicPoints.value
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="hp-separator">/</div>
|
||||||
|
<div class="hp-max">
|
||||||
|
{{formInput
|
||||||
|
systemFields.magicPoints.fields.max
|
||||||
|
value=system.magicPoints.max
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="hp-item">
|
||||||
|
<div class="hp-label">ARMOR</div>
|
||||||
|
<div class="hp-value">
|
||||||
|
{{formInput
|
||||||
|
systemFields.armorPoints.fields.value
|
||||||
|
value=system.armorPoints.value
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="hp-separator">/</div>
|
||||||
|
<div class="hp-max">
|
||||||
|
{{formInput
|
||||||
|
systemFields.armorPoints.fields.max
|
||||||
|
value=system.armorPoints.max
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Core Attributes (STR, DEX, CON, INT, WIS, CHA) }}
|
||||||
|
<div class="character-attributes">
|
||||||
|
<div class="attribute-shield">
|
||||||
|
<div class="attribute-label">
|
||||||
|
<a class="rollable" data-roll-type="characteristic" data-roll-key="str">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
STR
|
||||||
</a>
|
</a>
|
||||||
</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.saves.fields.dodge.fields.value
|
|
||||||
value=system.saves.dodge.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
<span class="name">
|
|
||||||
<a
|
|
||||||
class="rollable"
|
|
||||||
data-roll-type="save"
|
|
||||||
data-roll-key="toughness"
|
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>
|
|
||||||
{{localize "PRISMRPG.Label.saves.toughness"}}
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.saves.fields.toughness.fields.value
|
|
||||||
value=system.saves.toughness.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="character-save">
|
<div class="attribute-value">
|
||||||
<span class="name">
|
{{formInput
|
||||||
<a
|
|
||||||
class="rollable"
|
|
||||||
data-roll-type="save"
|
|
||||||
data-roll-key="contagion"
|
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>
|
|
||||||
{{localize "PRISMRPG.Label.saves.contagion"}}
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.saves.fields.contagion.fields.value
|
|
||||||
value=system.saves.contagion.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
|
|
||||||
<span class="name">
|
|
||||||
<a
|
|
||||||
class="rollable"
|
|
||||||
data-roll-type="save"
|
|
||||||
data-roll-key="poison"
|
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>
|
|
||||||
{{localize "PRISMRPG.Label.saves.poison"}}
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.saves.fields.poison.fields.value
|
|
||||||
value=system.saves.poison.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
|
|
||||||
<!--
|
|
||||||
<span class="name-pain">
|
|
||||||
<a class="rollable" data-roll-type="save" data-roll-key="pain" data-roll-dice="D12"><i
|
|
||||||
class="lf-roll-small fa-solid fa-dice-d12"></i>
|
|
||||||
{{localize "PRISMRPG.Label.saves.pain"}}
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
<span class="name-pain">
|
|
||||||
<a class="rollable" data-roll-type="save" data-roll-key="pain" data-roll-dice="D20"><i
|
|
||||||
class="lf-roll-small fa-solid fa-dice-d20"></i>
|
|
||||||
{{localize "PRISMRPG.Label.saves.pain"}}
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
{{formField systemFields.saves.fields.pain.fields.value value=system.saves.pain.value disabled=true}}
|
|
||||||
|
|
||||||
<span data-tooltip="Pain save if wound exceeds">
|
|
||||||
{{formField systemFields.hp.fields.painDamage value=system.hp.painDamage disabled=isPlayMode
|
|
||||||
tooltip="Pain Damage"}}
|
|
||||||
</span>
|
|
||||||
-->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset
|
|
||||||
class="character-characteristics character-characteristics-{{ifThen
|
|
||||||
isPlayMode
|
|
||||||
'play'
|
|
||||||
'edit'
|
|
||||||
}}"
|
|
||||||
>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.Challenges"}}</legend>
|
|
||||||
<div class="character-challenges">
|
|
||||||
<div class="character-challenge">
|
|
||||||
<span class="name"><a
|
|
||||||
class="rollable"
|
|
||||||
data-roll-type="challenge"
|
|
||||||
data-roll-key="str"
|
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>{{localize
|
|
||||||
"PRISMRPG.Label.challenges.strength"
|
|
||||||
}}</a></span>
|
|
||||||
{{formField
|
|
||||||
systemFields.challenges.fields.str.fields.value
|
|
||||||
value=system.challenges.str.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
<span class="name"><a
|
|
||||||
class="rollable"
|
|
||||||
data-roll-type="challenge"
|
|
||||||
data-roll-key="agility"
|
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>{{localize
|
|
||||||
"PRISMRPG.Label.challenges.agility"
|
|
||||||
}}</a></span>
|
|
||||||
{{formField
|
|
||||||
systemFields.challenges.fields.agility.fields.value
|
|
||||||
value=system.challenges.agility.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
<span class="name"><a
|
|
||||||
class="rollable"
|
|
||||||
data-roll-type="challenge"
|
|
||||||
data-roll-key="dying"
|
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>{{localize
|
|
||||||
"PRISMRPG.Label.challenges.dying"
|
|
||||||
}}</a></span>
|
|
||||||
{{formField
|
|
||||||
systemFields.challenges.fields.dying.fields.value
|
|
||||||
value=system.challenges.dying.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset
|
|
||||||
class="character-characteristics character-characteristics-{{ifThen
|
|
||||||
isPlayMode
|
|
||||||
'play'
|
|
||||||
'edit'
|
|
||||||
}}"
|
|
||||||
>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.Movement"}}</legend>
|
|
||||||
<div class="character-movements">
|
|
||||||
<div class="character-movement">
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.walk"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.movement.fields.walk
|
|
||||||
value=system.movement.walk
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.jog"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.movement.fields.jog
|
|
||||||
value=system.movement.jog
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.run"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.movement.fields.run
|
|
||||||
value=system.movement.run
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.sprint"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.movement.fields.sprint
|
|
||||||
value=system.movement.sprint
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
<div class="character-movement">
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.jumpBroad"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.jump.fields.broad
|
|
||||||
value=system.jump.broad
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.jumpRunning"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.jump.fields.running
|
|
||||||
value=system.jump.running
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.jumpVertical"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.jump.fields.vertical
|
|
||||||
value=system.jump.vertical
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset
|
|
||||||
class="character-characteristics character-characteristics-{{ifThen
|
|
||||||
isPlayMode
|
|
||||||
'play'
|
|
||||||
'edit'
|
|
||||||
}}"
|
|
||||||
>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.characteristics"}}</legend>
|
|
||||||
<div class="character-characteristic">
|
|
||||||
<span>{{localize "PRISMRPG.Label.str"}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.str.fields.value
|
systemFields.characteristics.fields.str.fields.value
|
||||||
value=system.characteristics.str.value
|
value=system.characteristics.str.value
|
||||||
disabled=isPlayMode
|
disabled=isPlayMode
|
||||||
data-char-id="str"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.str.fields.percent
|
|
||||||
value=system.characteristics.str.percent
|
|
||||||
disabled=isPlayMode
|
|
||||||
type="number"
|
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="character-characteristic">
|
<div class="attribute-save" data-tooltip="Saving">
|
||||||
<span>{{localize "PRISMRPG.Label.int"}}</span>
|
{{formInput
|
||||||
{{formField
|
systemFields.saves.fields.str.fields.value
|
||||||
systemFields.characteristics.fields.int.fields.value
|
value=system.saves.str.value
|
||||||
value=system.characteristics.int.value
|
disabled=true
|
||||||
disabled=isPlayMode
|
|
||||||
data-char-id="int"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.int.fields.percent
|
|
||||||
value=system.characteristics.int.percent
|
|
||||||
disabled=isPlayMode
|
|
||||||
type="number"
|
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="character-characteristic">
|
|
||||||
<span>{{localize "PRISMRPG.Label.wis"}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.wis.fields.value
|
|
||||||
value=system.characteristics.wis.value
|
|
||||||
disabled=isPlayMode
|
|
||||||
data-char-id="wis"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.wis.fields.percent
|
|
||||||
value=system.characteristics.wis.percent
|
|
||||||
disabled=isPlayMode
|
|
||||||
type="number"
|
|
||||||
}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="character-characteristic">
|
<div class="attribute-shield">
|
||||||
<span>{{localize "PRISMRPG.Label.dex"}}</span>
|
<div class="attribute-label">
|
||||||
{{formField
|
<a class="rollable" data-roll-type="characteristic" data-roll-key="dex">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
DEX
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-value">
|
||||||
|
{{formInput
|
||||||
systemFields.characteristics.fields.dex.fields.value
|
systemFields.characteristics.fields.dex.fields.value
|
||||||
value=system.characteristics.dex.value
|
value=system.characteristics.dex.value
|
||||||
disabled=isPlayMode
|
disabled=isPlayMode
|
||||||
data-char-id="wis"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.dex.fields.percent
|
|
||||||
value=system.characteristics.dex.percent
|
|
||||||
disabled=isPlayMode
|
|
||||||
type="number"
|
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="character-characteristic">
|
<div class="attribute-save" data-tooltip="Saving">
|
||||||
<span>{{localize "PRISMRPG.Label.con"}}</span>
|
{{formInput
|
||||||
{{formField
|
systemFields.saves.fields.dex.fields.value
|
||||||
|
value=system.saves.dex.value
|
||||||
|
disabled=true
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-shield">
|
||||||
|
<div class="attribute-label">
|
||||||
|
<a class="rollable" data-roll-type="characteristic" data-roll-key="con">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
CON
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-value">
|
||||||
|
{{formInput
|
||||||
systemFields.characteristics.fields.con.fields.value
|
systemFields.characteristics.fields.con.fields.value
|
||||||
value=system.characteristics.con.value
|
value=system.characteristics.con.value
|
||||||
disabled=isPlayMode
|
disabled=isPlayMode
|
||||||
data-char-id="con"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.con.fields.percent
|
|
||||||
value=system.characteristics.con.percent
|
|
||||||
disabled=isPlayMode
|
|
||||||
type="number"
|
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="character-characteristic">
|
<div class="attribute-save" data-tooltip="Saving">
|
||||||
<span>{{localize "PRISMRPG.Label.cha"}}</span>
|
{{formInput
|
||||||
{{formField
|
systemFields.saves.fields.con.fields.value
|
||||||
|
value=system.saves.con.value
|
||||||
|
disabled=true
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-shield">
|
||||||
|
<div class="attribute-label">
|
||||||
|
<a class="rollable" data-roll-type="characteristic" data-roll-key="int">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
INT
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-value">
|
||||||
|
{{formInput
|
||||||
|
systemFields.characteristics.fields.int.fields.value
|
||||||
|
value=system.characteristics.int.value
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="attribute-save" data-tooltip="Saving">
|
||||||
|
{{formInput
|
||||||
|
systemFields.saves.fields.int.fields.value
|
||||||
|
value=system.saves.int.value
|
||||||
|
disabled=true
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-shield">
|
||||||
|
<div class="attribute-label">
|
||||||
|
<a class="rollable" data-roll-type="characteristic" data-roll-key="wis">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
WIS
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-value">
|
||||||
|
{{formInput
|
||||||
|
systemFields.characteristics.fields.wis.fields.value
|
||||||
|
value=system.characteristics.wis.value
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="attribute-save" data-tooltip="Saving">
|
||||||
|
{{formInput
|
||||||
|
systemFields.saves.fields.wis.fields.value
|
||||||
|
value=system.saves.wis.value
|
||||||
|
disabled=true
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-shield">
|
||||||
|
<div class="attribute-label">
|
||||||
|
<a class="rollable" data-roll-type="characteristic" data-roll-key="cha">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
CHA
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-value">
|
||||||
|
{{formInput
|
||||||
systemFields.characteristics.fields.cha.fields.value
|
systemFields.characteristics.fields.cha.fields.value
|
||||||
value=system.characteristics.cha.value
|
value=system.characteristics.cha.value
|
||||||
disabled=isPlayMode
|
disabled=isPlayMode
|
||||||
data-char-id="cha"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.cha.fields.percent
|
|
||||||
value=system.characteristics.cha.percent
|
|
||||||
disabled=isPlayMode
|
|
||||||
type="number"
|
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
<div class="attribute-save" data-tooltip="Saving">
|
||||||
|
{{formInput
|
||||||
|
systemFields.saves.fields.cha.fields.value
|
||||||
|
value=system.saves.cha.value
|
||||||
|
disabled=true
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{!-- Sub-Attributes (Prism RPG) --}}
|
{{! Right Column - Race, Classes }}
|
||||||
<fieldset
|
<div class="character-right-column">
|
||||||
class="character-subattributes character-subattributes-{{ifThen
|
{{! Race }}
|
||||||
isPlayMode
|
<div class="race-section">
|
||||||
'play'
|
<div class="race-box">
|
||||||
'edit'
|
<h3 class="section-title">Race</h3>
|
||||||
}}"
|
{{#if race}}
|
||||||
>
|
<div class="race-item" data-item-id="{{race.id}}" data-item-uuid="{{race.uuid}}">
|
||||||
<legend>{{localize "PRISMRPG.Label.subAttributes"}}</legend>
|
<img class="item-img" src="{{race.img}}" data-tooltip="{{race.name}}" />
|
||||||
<div class="subattributes-grid">
|
<div class="race-name">{{race.name}}</div>
|
||||||
{{#each config.SUB_ATTRIBUTES as |subAttr|}}
|
<div class="controls">
|
||||||
<div class="character-subattribute" data-tooltip="{{localize subAttr.description}}">
|
<a data-tooltip="{{localize 'PRISMRPG.Edit'}}" data-action="edit" data-item-id="{{race.id}}"
|
||||||
<span class="subattr-label">{{localize subAttr.label}}</span>
|
data-item-uuid="{{race.uuid}}"><i class="fas fa-edit"></i></a>
|
||||||
<span class="subattr-value">{{lookup (lookup ../system.subAttributes subAttr.id) 'value'}}</span>
|
<a data-tooltip="{{localize 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{race.id}}"
|
||||||
<span class="subattr-parents">({{#each subAttr.parents}}{{localize (concat "PRISMRPG.Label." this)}}{{#unless @last}}/{{/unless}}{{/each}})</span>
|
data-item-uuid="{{race.uuid}}"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{else}}
|
||||||
|
<div class="no-race">
|
||||||
|
<p>{{localize "PRISMRPG.Message.dropRace"}}</p>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Classes (Three boxes) }}
|
||||||
|
<div class="classes-section">
|
||||||
|
{{#each classSlots as |classItem index|}}
|
||||||
|
<div class="class-box">
|
||||||
|
<h4 class="class-label">Class {{add index 1}}</h4>
|
||||||
|
<div class="class-content">
|
||||||
|
{{#if classItem}}
|
||||||
|
<div class="class-item" data-item-id="{{classItem.id}}" data-item-uuid="{{classItem.uuid}}">
|
||||||
|
<img class="item-img" src="{{classItem.img}}" data-tooltip="{{classItem.name}}" />
|
||||||
|
<div class="class-name">{{classItem.name}}</div>
|
||||||
|
<div class="controls">
|
||||||
|
<a data-tooltip="{{localize 'PRISMRPG.Edit'}}" data-action="edit" data-item-id="{{classItem.id}}"
|
||||||
|
data-item-uuid="{{classItem.uuid}}"><i class="fas fa-edit"></i></a>
|
||||||
|
<a data-tooltip="{{localize 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{classItem.id}}"
|
||||||
|
data-item-uuid="{{classItem.uuid}}"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{else}}
|
||||||
|
<div class="no-class">
|
||||||
|
<p>{{localize "PRISMRPG.Message.dropClass"}}</p>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -1,68 +1,10 @@
|
|||||||
<section class="tab character-{{tab.id}} {{tab.cssClass}}" data-tab="skills" data-group="sheet">
|
<section class="tab character-{{tab.id}} {{tab.cssClass}}" data-tab="skills" data-group="sheet">
|
||||||
<div class="main-div">
|
<div class="main-div">
|
||||||
|
|
||||||
{{!-- Core Skill Selection (Prism RPG) --}}
|
{{!-- Skills Items --}}
|
||||||
<fieldset class="core-skill-selection">
|
|
||||||
<legend data-tooltip="{{localize 'PRISMRPG.Tooltip.coreSkill'}}" data-tooltip-direction="UP">
|
|
||||||
{{localize "PRISMRPG.Label.coreSkill"}}
|
|
||||||
</legend>
|
|
||||||
<div class="core-skill-info">
|
|
||||||
{{#if system.coreSkill.skill}}
|
|
||||||
<div class="selected-core-skill">
|
|
||||||
<span class="core-skill-name">{{localize (concat "PRISMRPG.CoreSkill." system.coreSkill.skill)}}</span>
|
|
||||||
<span class="core-skill-bonus">+5 {{localize "PRISMRPG.Label.basicChecks"}}</span>
|
|
||||||
{{#if system.coreSkill.attributeChoice}}
|
|
||||||
<span class="attribute-bonus">+2 {{localize (concat "PRISMRPG.Label." system.coreSkill.attributeChoice)}}</span>
|
|
||||||
{{/if}}
|
|
||||||
<span class="advanced-checks">{{localize "PRISMRPG.Label.advancedChecksEnabled"}}</span>
|
|
||||||
</div>
|
|
||||||
{{else}}
|
|
||||||
<div class="no-core-skill">
|
|
||||||
<p>{{localize "PRISMRPG.Message.selectCoreSkill"}}</p>
|
|
||||||
<select name="system.coreSkill.skill" {{#if isPlayMode}}disabled{{/if}}>
|
|
||||||
<option value="">{{localize "PRISMRPG.Label.chooseSkill"}}</option>
|
|
||||||
{{#each config.CORE_SKILLS as |skill skillId|}}
|
|
||||||
<option value="{{skillId}}">{{localize skill.label}}</option>
|
|
||||||
{{/each}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{!-- Available Core Skills Reference --}}
|
|
||||||
<fieldset class="core-skills-list">
|
|
||||||
<legend data-tooltip="{{localize 'PRISMRPG.Tooltip.coreSkills'}}" data-tooltip-direction="UP">
|
|
||||||
{{localize "PRISMRPG.Label.availableCoreSkills"}}
|
|
||||||
</legend>
|
|
||||||
<div class="skills-grid">
|
|
||||||
{{#each config.CORE_SKILLS as |skill skillId|}}
|
|
||||||
<div class="core-skill-item {{#if (eq ../system.coreSkill.skill skillId)}}selected{{/if}}"
|
|
||||||
data-skill-id="{{skillId}}">
|
|
||||||
<div class="skill-header">
|
|
||||||
<span class="skill-name">{{localize skill.label}}</span>
|
|
||||||
{{#if (eq ../system.coreSkill.skill skillId)}}
|
|
||||||
<span class="badge-core">{{localize "PRISMRPG.Label.yourCoreSkill"}}</span>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
<div class="skill-attributes">
|
|
||||||
<span class="attribute-choices-label">{{localize "PRISMRPG.Label.attributeChoices"}}:</span>
|
|
||||||
{{#each skill.attributeChoices as |attr|}}
|
|
||||||
<span class="attribute-choice {{#if (eq ../../system.coreSkill.attributeChoice attr)}}chosen{{/if}}">
|
|
||||||
{{localize (concat "PRISMRPG.Label." attr)}}
|
|
||||||
</span>
|
|
||||||
{{#unless @last}}/{{/unless}}
|
|
||||||
{{/each}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{/each}}
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{!-- Skills Items (if any) --}}
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend data-tooltip="{{localize 'PRISMRPG.Tooltip.skills'}}" data-tooltip-direction="UP">
|
<legend data-tooltip="{{localize 'PRISMRPG.Tooltip.skills'}}" data-tooltip-direction="UP">
|
||||||
{{localize "PRISMRPG.Label.customSkills"}}
|
{{localize "PRISMRPG.Label.skills"}}
|
||||||
</legend>
|
</legend>
|
||||||
<div class="skills">
|
<div class="skills">
|
||||||
{{#each skills as |item|}}
|
{{#each skills as |item|}}
|
||||||
|
|||||||
@@ -0,0 +1,257 @@
|
|||||||
|
<section class="character-subattributes tab" data-group="sheet" data-tab="subattributes">
|
||||||
|
{{log "character-subattributes" this}}
|
||||||
|
|
||||||
|
<div class="subattributes-content">
|
||||||
|
<h2 class="section-header">
|
||||||
|
<i class="fa-solid fa-diagram-project"></i>
|
||||||
|
Sub-Attributes
|
||||||
|
</h2>
|
||||||
|
<p class="section-description">
|
||||||
|
Sub-attributes are derived from the average of two primary characteristics.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="subattributes-list">
|
||||||
|
{{#each (entries config.SUB_ATTRIBUTES) as |entry|}}
|
||||||
|
{{#with entry.1 as |subAttr|}}
|
||||||
|
<div class="subattribute-item">
|
||||||
|
<div class="subattribute-header">
|
||||||
|
<div class="subattribute-name">
|
||||||
|
<i class="fa-solid fa-circle-nodes"></i>
|
||||||
|
<span>{{localize subAttr.label}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="subattribute-value">
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
value="{{lookup ../system.subAttributes subAttr.id 'value'}}"
|
||||||
|
disabled
|
||||||
|
readonly
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="subattribute-details">
|
||||||
|
<div class="subattribute-parents">
|
||||||
|
<span class="parent-label">From:</span>
|
||||||
|
{{#each subAttr.parents as |parentKey|}}
|
||||||
|
<span class="parent-char">
|
||||||
|
{{uppercase parentKey}}
|
||||||
|
({{lookup ../../system.characteristics parentKey 'value'}})
|
||||||
|
</span>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
<div class="subattribute-description">
|
||||||
|
{{localize subAttr.description}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/with}}
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="subattributes-wrapper">
|
||||||
|
{{! Character Header with Age, Length, Weight, Sex, Skin, Hair }}
|
||||||
|
<div class="character-bio-header">
|
||||||
|
<div class="bio-row">
|
||||||
|
<div class="bio-field">
|
||||||
|
<label>Age</label>
|
||||||
|
{{formInput
|
||||||
|
systemFields.bio.fields.age
|
||||||
|
value=system.bio.age
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="bio-field">
|
||||||
|
<label>Length</label>
|
||||||
|
{{formInput
|
||||||
|
systemFields.bio.fields.length
|
||||||
|
value=system.bio.length
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="bio-field">
|
||||||
|
<label>Weight</label>
|
||||||
|
{{formInput
|
||||||
|
systemFields.bio.fields.weight
|
||||||
|
value=system.bio.weight
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="bio-row">
|
||||||
|
<div class="bio-field">
|
||||||
|
<label>Sex</label>
|
||||||
|
{{formInput
|
||||||
|
systemFields.bio.fields.sex
|
||||||
|
value=system.bio.sex
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="bio-field">
|
||||||
|
<label>Skin</label>
|
||||||
|
{{formInput
|
||||||
|
systemFields.bio.fields.skin
|
||||||
|
value=system.bio.skin
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="bio-field">
|
||||||
|
<label>Hair</label>
|
||||||
|
{{formInput
|
||||||
|
systemFields.bio.fields.hair
|
||||||
|
value=system.bio.hair
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Sub-Attributes Table }}
|
||||||
|
<div class="subattributes-section">
|
||||||
|
<h3 class="section-title">Sub-Attribute</h3>
|
||||||
|
<div class="subattributes-table">
|
||||||
|
<div class="subattr-column">
|
||||||
|
<div class="subattr-header">Prowess</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.prowess
|
||||||
|
value=system.subattributes.prowess
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="subattr-header">Vigor</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.vigor
|
||||||
|
value=system.subattributes.vigor
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="subattr-header">Competence</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.competence
|
||||||
|
value=system.subattributes.competence
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="subattr-header">Authority</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.authority
|
||||||
|
value=system.subattributes.authority
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="subattr-header">Presence</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.presence
|
||||||
|
value=system.subattributes.presence
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="subattr-column">
|
||||||
|
<div class="subattr-header">Willpower</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.willpower
|
||||||
|
value=system.subattributes.willpower
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="subattr-header">Resilience</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.resilience
|
||||||
|
value=system.subattributes.resilience
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="subattr-header">Cunning</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.cunning
|
||||||
|
value=system.subattributes.cunning
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="subattr-header">Guile</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.guile
|
||||||
|
value=system.subattributes.guile
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="subattr-header">Sovereignty</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.sovereignty
|
||||||
|
value=system.subattributes.sovereignty
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="subattr-column">
|
||||||
|
<div class="subattr-header">Stamina</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.stamina
|
||||||
|
value=system.subattributes.stamina
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="subattr-header">Initiative</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.initiative
|
||||||
|
value=system.subattributes.initiative
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="subattr-header">Wit</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.wit
|
||||||
|
value=system.subattributes.wit
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="subattr-header">Grace</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.grace
|
||||||
|
value=system.subattributes.grace
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="subattr-header">Tenacity</div>
|
||||||
|
<div class="subattr-cell">
|
||||||
|
{{formInput
|
||||||
|
systemFields.subattributes.fields.tenacity
|
||||||
|
value=system.subattributes.tenacity
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Proficiencies Section }}
|
||||||
|
<div class="proficiencies-section">
|
||||||
|
<h3 class="section-title">Proficiencies</h3>
|
||||||
|
<div class="proficiencies-box">
|
||||||
|
{{formInput
|
||||||
|
systemFields.proficiencies
|
||||||
|
value=system.proficiencies
|
||||||
|
disabled=isPlayMode
|
||||||
|
type="textarea"
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
<section class="character-subattributes tab" data-group="sheet" data-tab="subattributes">
|
||||||
|
<div class="subattributes-content">
|
||||||
|
<h2 class="section-header">
|
||||||
|
<i class="fa-solid fa-diagram-project"></i>
|
||||||
|
Sub-Attributes
|
||||||
|
</h2>
|
||||||
|
<p class="section-description">
|
||||||
|
Sub-attributes are derived from the average of two primary characteristics.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="subattributes-list">
|
||||||
|
{{#each (entries config.SUB_ATTRIBUTES) as |entry|}}
|
||||||
|
{{#with entry.[1] as |subAttr|}}
|
||||||
|
<div class="subattribute-item">
|
||||||
|
<div class="subattribute-header">
|
||||||
|
<div class="subattribute-name">
|
||||||
|
<i class="fa-solid fa-circle-nodes"></i>
|
||||||
|
<span>{{localize subAttr.label}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="subattribute-value">
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
value="{{lookup ../system.subAttributes subAttr.id 'value'}}"
|
||||||
|
disabled
|
||||||
|
readonly
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="subattribute-details">
|
||||||
|
<div class="subattribute-parents">
|
||||||
|
<span class="parent-label">From:</span>
|
||||||
|
{{#each subAttr.parents as |parentKey|}}
|
||||||
|
<span class="parent-char">
|
||||||
|
{{uppercase parentKey}}
|
||||||
|
({{lookup ../../system.characteristics parentKey 'value'}})
|
||||||
|
</span>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
<div class="subattribute-description">
|
||||||
|
{{localize subAttr.description}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/with}}
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
@@ -0,0 +1,119 @@
|
|||||||
|
<div class="prismrpg-roll-dialog">
|
||||||
|
|
||||||
|
<fieldSet class="">
|
||||||
|
<legend>{{localize (concat "PRISMRPG.Label." rollType)}} - {{actorName}}</legend>
|
||||||
|
|
||||||
|
{{#if rollTarget.tokenId}}
|
||||||
|
<div class="dialog-save">
|
||||||
|
<a class="goto-token-button" data-action="gotoToken" data-token-id="{{rollTarget.tokenId}}">{{localize
|
||||||
|
"PRISMRPG.Label.gotoToken"}} </a>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if (match rollType "attack")}}
|
||||||
|
<div class="dialog-save">Attack roll ! - {{rollTarget.name}}</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if (match rollType "defense")}}
|
||||||
|
<div class="dialog-save">Defense roll ! - {{rollTarget.name}}</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if hasModifier}}
|
||||||
|
<div class="dialog-save">{{upperFirst rollName}} : {{baseFormula}} + {{baseValue}}</div>
|
||||||
|
{{else}}
|
||||||
|
<div class="dialog-save">{{upperFirst rollName}} : {{baseFormula}}</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if rollTarget.weapon}}
|
||||||
|
<div class="dialog-save">{{localize "PRISMRPG.Label.baseModifier"}} : {{rollTarget.charModifier}}</div>
|
||||||
|
<div class="dialog-save">{{localize "PRISMRPG.Label.weapon"}} : {{rollTarget.weapon.name}}</div>
|
||||||
|
<div class="dialog-save">{{localize "PRISMRPG.Label.skill"}} : {{rollTarget.name}}</div>
|
||||||
|
<div class="dialog-save">{{localize "PRISMRPG.Label.skillBonus"}} : {{rollTarget.weaponSkillModifier}}</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if (match rollType "attack")}}
|
||||||
|
<div class="dialog-save">Add Granted Attack Dice
|
||||||
|
<input type="checkbox" data-action="selectGranted" name="granted">
|
||||||
|
</div>
|
||||||
|
{{#if rollTarget.weapon}}
|
||||||
|
{{#if (eq rollTarget.weapon.system.weaponType "melee")}}
|
||||||
|
{{else}}
|
||||||
|
<div class="dialog-save">Point Blank Range Attack
|
||||||
|
<input type="checkbox" data-action="selectPointBlank" name="pointBlankV">
|
||||||
|
</div>
|
||||||
|
<div class="dialog-save">Beyond Skill Range Attack
|
||||||
|
<input type="checkbox" data-action="selectBeyondSkill" name="beyondSkillV">
|
||||||
|
</div>
|
||||||
|
<div class="dialog-save">Let it Fly (Pure D20E)
|
||||||
|
<input type="checkbox" data-action="selectLetItFly" name="letItFlyV">
|
||||||
|
</div>
|
||||||
|
<div class="dialog-save">Aiming
|
||||||
|
<select name="attackerAim" data-tooltip-direction="UP">
|
||||||
|
{{selectOptions attackerAimChoices selected=attackerAim}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
{{#if (match rollType "defense")}}
|
||||||
|
<div class="dialog-save">Add Granted Defense Dice
|
||||||
|
<input type="checkbox" data-action="selectGranted" name="granted">
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if (match rollType "damage")}}
|
||||||
|
<div class="dialog-save">Add Granted Damage Dice
|
||||||
|
<input type="checkbox" data-action="selectGranted" name="granted">
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if rollTarget.staticModifier}}
|
||||||
|
<div class="dialog-save">Static modifier : +{{rollTarget.staticModifier}}</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
</fieldSet>
|
||||||
|
|
||||||
|
|
||||||
|
{{#if hasFavor}}
|
||||||
|
<fieldSet class="dialog-favor">
|
||||||
|
<legend>{{localize "PRISMRPG.Roll.favorDisfavor"}}</legend>
|
||||||
|
<select name="favor" class="favor-choice" data-tooltip-direction="UP">
|
||||||
|
{{selectOptions choiceFavor selected=favor}}
|
||||||
|
</select>
|
||||||
|
</fieldSet>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if hasModifier}}
|
||||||
|
<fieldSet class="dialog-modifier">
|
||||||
|
<legend>{{localize "PRISMRPG.Roll.modifierBonusMalus"}}</legend>
|
||||||
|
<select name="modifier" data-tooltip-direction="UP">
|
||||||
|
{{selectOptions choiceModifier selected=modifier}}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
{{#if (eq rollType "save")}}
|
||||||
|
{{#if rollTarget.magicUser}}
|
||||||
|
<div>
|
||||||
|
<span>Save against spell (+{{rollTarget.actorModifiers.saveModifier}}) ?</span>
|
||||||
|
<input type="checkbox" name="saveSpellCheck" data-action="saveSpellCheck">
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
</fieldSet>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if hasChangeDice}}
|
||||||
|
<fieldSet class="dialog-modifier">
|
||||||
|
<legend>{{localize "PRISMRPG.Roll.changeDice"}}</legend>
|
||||||
|
<select name="changeDice" data-tooltip-direction="UP">
|
||||||
|
{{selectOptions choiceDice selected=changeDice}}
|
||||||
|
</select>
|
||||||
|
</fieldSet>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<fieldSet>
|
||||||
|
<legend>{{localize "PRISMRPG.Roll.visibility"}}</legend>
|
||||||
|
<select name="visibility">
|
||||||
|
{{selectOptions rollModes selected=visibility localize=true}}
|
||||||
|
</select>
|
||||||
|
</fieldSet>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
+34
-88
@@ -1,82 +1,48 @@
|
|||||||
<div class="prismrpg-roll-dialog">
|
<div class="prismrpg-roll-dialog">
|
||||||
|
<fieldSet>
|
||||||
<fieldSet class="">
|
<legend>{{localize (concat "PRISMRPG.Label." rollType)}}
|
||||||
<legend>{{localize (concat "PRISMRPG.Label." rollType)}} - {{actorName}}</legend>
|
-
|
||||||
|
{{actorName}}</legend>
|
||||||
{{#if rollTarget.tokenId}}
|
|
||||||
<div class="dialog-save">
|
|
||||||
<a class="goto-token-button" data-action="gotoToken" data-token-id="{{rollTarget.tokenId}}">{{localize
|
|
||||||
"PRISMRPG.Label.gotoToken"}} </a>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if (match rollType "attack")}}
|
|
||||||
<div class="dialog-save">Attack roll ! - {{rollTarget.name}}</div>
|
|
||||||
{{/if}}
|
|
||||||
{{#if (match rollType "defense")}}
|
|
||||||
<div class="dialog-save">Defense roll ! - {{rollTarget.name}}</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if hasModifier}}
|
{{#if hasModifier}}
|
||||||
<div class="dialog-save">{{upperFirst rollName}} : {{baseFormula}} + {{baseValue}}</div>
|
<div class="dialog-save">
|
||||||
|
<strong>{{upperFirst rollName}}</strong>
|
||||||
|
:
|
||||||
|
{{dice}}
|
||||||
|
+
|
||||||
|
{{baseValue}}
|
||||||
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="dialog-save">{{upperFirst rollName}} : {{baseFormula}}</div>
|
<div class="dialog-save">
|
||||||
|
<strong>{{upperFirst rollName}}</strong>
|
||||||
|
:
|
||||||
|
{{dice}}
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if rollTarget.weapon}}
|
{{#if rollTarget.weapon}}
|
||||||
<div class="dialog-save">{{localize "PRISMRPG.Label.baseModifier"}} : {{rollTarget.charModifier}}</div>
|
<div class="dialog-save">
|
||||||
<div class="dialog-save">{{localize "PRISMRPG.Label.weapon"}} : {{rollTarget.weapon.name}}</div>
|
{{localize "PRISMRPG.Label.weapon"}}
|
||||||
<div class="dialog-save">{{localize "PRISMRPG.Label.skill"}} : {{rollTarget.name}}</div>
|
:
|
||||||
<div class="dialog-save">{{localize "PRISMRPG.Label.skillBonus"}} : {{rollTarget.weaponSkillModifier}}</div>
|
{{rollTarget.weapon.name}}
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if (match rollType "attack")}}
|
|
||||||
<div class="dialog-save">Add Granted Attack Dice
|
|
||||||
<input type="checkbox" data-action="selectGranted" name="granted">
|
|
||||||
</div>
|
</div>
|
||||||
{{#if rollTarget.weapon}}
|
<div class="dialog-save">
|
||||||
{{#if (eq rollTarget.weapon.system.weaponType "melee")}}
|
{{localize "PRISMRPG.Label.skill"}}
|
||||||
{{else}}
|
:
|
||||||
<div class="dialog-save">Point Blank Range Attack
|
{{rollTarget.name}}
|
||||||
<input type="checkbox" data-action="selectPointBlank" name="pointBlankV">
|
|
||||||
</div>
|
|
||||||
<div class="dialog-save">Beyond Skill Range Attack
|
|
||||||
<input type="checkbox" data-action="selectBeyondSkill" name="beyondSkillV">
|
|
||||||
</div>
|
|
||||||
<div class="dialog-save">Let it Fly (Pure D20E)
|
|
||||||
<input type="checkbox" data-action="selectLetItFly" name="letItFlyV">
|
|
||||||
</div>
|
|
||||||
<div class="dialog-save">Aiming
|
|
||||||
<select name="attackerAim" data-tooltip-direction="UP">
|
|
||||||
{{selectOptions attackerAimChoices selected=attackerAim}}
|
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{/if}}
|
|
||||||
{{#if (match rollType "defense")}}
|
|
||||||
<div class="dialog-save">Add Granted Defense Dice
|
|
||||||
<input type="checkbox" data-action="selectGranted" name="granted">
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
{{#if (match rollType "damage")}}
|
|
||||||
<div class="dialog-save">Add Granted Damage Dice
|
|
||||||
<input type="checkbox" data-action="selectGranted" name="granted">
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if rollTarget.staticModifier}}
|
|
||||||
<div class="dialog-save">Static modifier : +{{rollTarget.staticModifier}}</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
</fieldSet>
|
</fieldSet>
|
||||||
|
|
||||||
|
{{#if hasAdvantage}}
|
||||||
{{#if hasFavor}}
|
<fieldSet class="dialog-advantage">
|
||||||
<fieldSet class="dialog-favor">
|
<legend>{{localize "PRISMRPG.Roll.advantageDisadvantage"}}</legend>
|
||||||
<legend>{{localize "PRISMRPG.Roll.favorDisfavor"}}</legend>
|
<select
|
||||||
<select name="favor" class="favor-choice" data-tooltip-direction="UP">
|
name="advantage"
|
||||||
{{selectOptions choiceFavor selected=favor}}
|
class="advantage-choice"
|
||||||
|
data-tooltip-direction="UP"
|
||||||
|
>
|
||||||
|
{{selectOptions choiceAdvantage selected=advantage}}
|
||||||
</select>
|
</select>
|
||||||
</fieldSet>
|
</fieldSet>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
@@ -87,24 +53,6 @@
|
|||||||
<select name="modifier" data-tooltip-direction="UP">
|
<select name="modifier" data-tooltip-direction="UP">
|
||||||
{{selectOptions choiceModifier selected=modifier}}
|
{{selectOptions choiceModifier selected=modifier}}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
{{#if (eq rollType "save")}}
|
|
||||||
{{#if rollTarget.magicUser}}
|
|
||||||
<div>
|
|
||||||
<span>Save against spell (+{{rollTarget.actorModifiers.saveModifier}}) ?</span>
|
|
||||||
<input type="checkbox" name="saveSpellCheck" data-action="saveSpellCheck">
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
</fieldSet>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if hasChangeDice}}
|
|
||||||
<fieldSet class="dialog-modifier">
|
|
||||||
<legend>{{localize "PRISMRPG.Roll.changeDice"}}</legend>
|
|
||||||
<select name="changeDice" data-tooltip-direction="UP">
|
|
||||||
{{selectOptions choiceDice selected=changeDice}}
|
|
||||||
</select>
|
|
||||||
</fieldSet>
|
</fieldSet>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
@@ -114,6 +62,4 @@
|
|||||||
{{selectOptions rollModes selected=visibility localize=true}}
|
{{selectOptions rollModes selected=visibility localize=true}}
|
||||||
</select>
|
</select>
|
||||||
</fieldSet>
|
</fieldSet>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user