Dragonbane: v1.3 - more calc fixes and increased functionality

This commit is contained in:
Kurohyou
2023-08-16 14:37:14 -06:00
parent 9486b43a57
commit afeb4c19f6
4 changed files with 273 additions and 76 deletions
+95 -5
View File
@@ -436,8 +436,9 @@ body .ui-dialog .tab-content .charsheet :not(label).--parchment__trim.--bottom.-
font-family: var(--contentHeadFont);
font-size: var(--baseFontSize);
--font-icon-outlined: "Material Icons Outlined";
--img-background-trunk: url(https://files.d20.io/images/340967489/C9RG1IgH0wtT-WzHnUp0IQ/original.webp?168357376655);
--img-background-trunk-dm: url(https://s3.amazonaws.com/files.d20.io/images/344388910/6GCWP4m5AFdMGwnaA2CNrg/original.jpg);
--lm-img-background-trunk:url(https://files.d20.io/images/340967489/C9RG1IgH0wtT-WzHnUp0IQ/original.webp?168357376655);
--dm-img-background-trunk: url(https://s3.amazonaws.com/files.d20.io/images/344388910/6GCWP4m5AFdMGwnaA2CNrg/original.jpg);
--img-background-trunk: var(--lm-img-background-trunk);
--img-underline: url(https://s3.amazonaws.com/files.d20.io/images/341105722/SObhoH7fKZsP1EruFOtgxg/original.webp?168366659555);
--img-underline2: url(https://s3.amazonaws.com/files.d20.io/images/341266910/MR-M3Vu6F02csBtlyJmhlA/original.webp?168376894455);
--img-underline3: url(https://s3.amazonaws.com/files.d20.io/images/341267108/hUSdD0xogLL-CNqT-9YfSw/original.webp?168376904155);
@@ -1497,8 +1498,9 @@ body {
font-family: var(--contentHeadFont);
font-size: var(--baseFontSize);
--font-icon-outlined: "Material Icons Outlined";
--img-background-trunk: url(https://files.d20.io/images/340967489/C9RG1IgH0wtT-WzHnUp0IQ/original.webp?168357376655);
--img-background-trunk-dm: url(https://s3.amazonaws.com/files.d20.io/images/344388910/6GCWP4m5AFdMGwnaA2CNrg/original.jpg);
--lm-img-background-trunk:url(https://files.d20.io/images/340967489/C9RG1IgH0wtT-WzHnUp0IQ/original.webp?168357376655);
--dm-img-background-trunk: url(https://s3.amazonaws.com/files.d20.io/images/344388910/6GCWP4m5AFdMGwnaA2CNrg/original.jpg);
--img-background-trunk: var(--lm-img-background-trunk);
--img-underline: url(https://s3.amazonaws.com/files.d20.io/images/341105722/SObhoH7fKZsP1EruFOtgxg/original.webp?168366659555);
--img-underline2: url(https://s3.amazonaws.com/files.d20.io/images/341266910/MR-M3Vu6F02csBtlyJmhlA/original.webp?168376894455);
--img-underline3: url(https://s3.amazonaws.com/files.d20.io/images/341267108/hUSdD0xogLL-CNqT-9YfSw/original.webp?168376904155);
@@ -2724,6 +2726,18 @@ body .ui-dialog .tab-content .charsheet .display-control--inverted:checked + .co
body .ui-dialog .tab-content .charsheet .display-control--non-zero:is([value="0"], :not([value]), [value=""]) + .controlled-display {
display: none;
}
body .ui-dialog .tab-content .charsheet .fade-overlay {
position: absolute;
pointer-events: none;
inset: 0;
z-index: 100;
background-color: transparent;
transition-property: background-color;
transition-duration: 500ms;
}
body .ui-dialog .tab-content .charsheet .fade-control:checked + .fade-overlay {
background-color: rgba(0, 0, 0, 0.321);
}
body .ui-dialog .tab-content .charsheet header {
margin-bottom: var(--half-gap);
align-items: start;
@@ -3390,9 +3404,74 @@ body .ui-dialog .tab-content .charsheet .section--points .death-saves [class^=de
--gridColumnWidth: 230px;
}
}
body .ui-dialog .tab-content .charsheet .section--gm {
display: flex;
flex-wrap: wrap;
gap: var(--normal-gap);
}
body .ui-dialog .tab-content .charsheet .section--gm .repcontainer:empty + .repcontrol {
display: none;
}
body .ui-dialog .tab-content .charsheet .section--gm .repcontrol {
justify-content: end;
padding-right: var(--tiny-gap);
margin-top: var(--half-gap);
}
body .ui-dialog .tab-content .charsheet .section--gm .repcontrol_add {
display: none !important;
}
body .ui-dialog .tab-content .charsheet .section--gm .repcontrol_edit:before {
content: "sort";
}
body .ui-dialog .tab-content .charsheet .section--gm ul {
margin: 0;
}
body .ui-dialog .tab-content .charsheet .section--gm .card {
font-size: var(--size3);
}
body .ui-dialog .tab-content .charsheet .section--gm .hold {
gap: var(--tiny-gap);
}
body .ui-dialog .tab-content .charsheet .section--gm .btn-danger {
display: none !important;
}
body .ui-dialog .tab-content .charsheet .section--gm .subtable-row {
align-items: center;
}
body .ui-dialog .tab-content .charsheet .section--gm ::marker {
content: none;
}
body .ui-dialog .tab-content .charsheet .deck {
outline: 1px solid black;
width: 8rem;
color: var(--fontColor);
background-image: var(--lm-img-background-trunk);
background-size: 100%;
align-self: start;
}
body .ui-dialog .tab-content .charsheet .deck span {
margin-left: var(--half-gap);
order: -1;
align-self: start;
}
body .ui-dialog .tab-content .charsheet .deck:before {
content: "" !important;
display: block;
height: 10rem;
width: 100%;
rotate: 45deg;
margin-block: -1.5rem;
background-image: url("https://files.d20.io/images/354907880/XwVnAkcifiWJYUi7CExF2w/original.png?169220761055");
background-size: contain;
background-position: top center;
background-repeat: no-repeat;
}
body .ui-dialog .tab-content .charsheet .colon:not(:empty):after {
content: ":";
}
body .ui-dialog .tab-content .charsheet .align-items-end {
align-items: end;
}
body .ui-dialog .tab-content .charsheet .disabled {
display: none !important;
}
@@ -3450,6 +3529,17 @@ body .ui-dialog .tab-content .charsheet h4, body .ui-dialog .tab-content .charsh
body .ui-dialog .tab-content .charsheet input {
line-height: 1;
}
body .ui-dialog .tab-content .charsheet .visually-hidden {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
}
body .ui-dialog .tab-content .charsheet .underline {
--underline: var(--img-underline);
background: var(--underline) repeat-x;
@@ -3667,7 +3757,7 @@ body.sheet-darkmode {
--disabledColor:var(--dm-disabledColor);
--fontColor:var(--dm-fontColor);
--selectedTextColor: var(--dm-selectedTextColor);
--img-background-trunk: var(--img-background-trunk-dm);
--img-background-trunk: var(--dm-img-background-trunk);
--img-underline: var(--img-underline-dm);
--img-underline2: var(--img-underline2-dm);
--img-underline3: var(--img-underline3-dm);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+10 -2
View File
@@ -117,6 +117,7 @@
"melee": "melee",
"ranged": "ranged",
"skill": "skill",
"damage bonus": "damage bonus",
"grip": "grip",
"1h-abbreviation": "1h",
"2h-abbreviation": "2h",
@@ -138,7 +139,7 @@
"weight": "weight",
"add table": "add table",
"initiative": "initiative",
"card": "card",
"hold": "hold",
"roll": "roll",
"dragon-result-instructions": "Rolling a Dragon when you cast a spell means that your target must roll a dragon to resist, parry, or dodge the spell, and that you may choose one of the following effects:",
"dragon-spell-1": "The damage or range of the spell is doubled.",
@@ -146,6 +147,9 @@
"dragon-spell-3": "You can immediately cast another spell, but get a bane on the roll.",
"Draw Initiative": "Draw Initiative",
"Reset Initiative Order": "Reset Initiative Order",
"Use your initiative": "Use your initiative",
"Remove": "Remove",
"Swap Initiative": "Swap Initiative",
"New Ability": "New Ability",
"Gesture": "Gesture",
"Instant": "Instant",
@@ -189,5 +193,9 @@
"Heal a condition of your choice": "Heal a condition of your choice",
"are you being cared for": "are you being cared for",
"yes": "yes",
"what power are you casting at": "what power are you casting at"
"what power are you casting at": "what power are you casting at",
"insufficient will": "insufficient will",
"no more cards": "There are no more cards in the deck.",
"reset initiative": "Reset the initiative?",
"swap query": "which initiative would you like to trade with?"
}