Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/3.3.x' into publish-wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyorl committed Jul 18, 2024
2 parents 071fee9 + 9431dfa commit e1472c8
Show file tree
Hide file tree
Showing 14 changed files with 377 additions and 69 deletions.
1 change: 1 addition & 0 deletions less/elements.less
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ item-list-controls search, .dnd5e2 .filter-element search {

> input[type="text"] {
--input-placeholder-color: var(--color-text-dark-secondary);
color: var(--color-text-dark-primary);
flex: 1;
background: none;
border: none;
Expand Down
14 changes: 14 additions & 0 deletions less/v2/actors.less
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,20 @@
.pill-lg.empty { width: 240px; }
}

/* ---------------------------------- */
/* Pills */
/* ---------------------------------- */

.pills-group .pill > i {
font-family: var(--font-awesome);
font-weight: bold;
font-style: normal;

&.ada::before { content: "\f132"; }
&.mgc::before { content: "\f72b"; }
&.sil::before { content: "\53"; }
}

/* ---------------------------------- */
/* Spells */
/* ---------------------------------- */
Expand Down
14 changes: 1 addition & 13 deletions less/v2/character.less
Original file line number Diff line number Diff line change
Expand Up @@ -828,19 +828,7 @@
> h3 > a { color: var(--dnd5e-color-black); }
}

.pill {
padding: .25rem .5rem;

> i {
font-family: var(--font-awesome);
font-weight: bold;
font-style: normal;

&.ada::before { content: "\f132"; }
&.mgc::before { content: "\f72b"; }
&.sil::before { content: "\53"; }
}
}
.pill { padding: .25rem .5rem; }
}
}

Expand Down
10 changes: 8 additions & 2 deletions less/v2/compendium-browser.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
--icon-size: 32px;
border: none;
background: none;
min-width: 750px;
min-height: 600px;

> header {
background: none;
Expand Down Expand Up @@ -266,4 +264,12 @@
color: var(--color-text-dark-primary);
}
}

&.minimized {
nav.tabs { display: none; }
.window-title { visibility: unset; }
.mode-toggle { display: none; }
.window-content { background: var(--dnd5e-color-dark-gray) url("../../ui/denim075.png"); }
&::after { border-color: var(--dnd5e-color-blue-gray-1); }
}
}
2 changes: 2 additions & 0 deletions less/v2/inventory.less
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@
width: 32px;
height: 32px;
object-fit: cover;
min-width: 32px;
min-height: 32px;
}

/* Item Weight & Price */
Expand Down
4 changes: 3 additions & 1 deletion module/applications/actor/sheet-v2-mixin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export default function ActorSheetV2Mixin(Base) {
const firstButton = header.querySelector(".header-button");
firstButton?.insertAdjacentElement("beforebegin", idLink);
idLink.classList.add("header-button");
idLink.dataset.tooltipDirection = "DOWN";
}

// Render tabs.
Expand Down Expand Up @@ -140,9 +141,10 @@ export default function ActorSheetV2Mixin(Base) {
// Portrait
const showTokenPortrait = this.actor.getFlag("dnd5e", "showTokenPortrait") === true;
const token = this.actor.isToken ? this.actor.token : this.actor.prototypeToken;
const defaultArtwork = Actor.implementation.getDefaultArtwork(context.source)?.img;
context.portrait = {
token: showTokenPortrait,
src: showTokenPortrait ? token.texture.src : this.actor.img,
src: showTokenPortrait ? token.texture.src : this.actor.img ?? defaultArtwork,
// TODO: Not sure the best way to update the parent texture from this sheet if this is a token actor.
path: showTokenPortrait ? this.actor.isToken ? "" : "prototypeToken.texture.src" : "img"
};
Expand Down
48 changes: 21 additions & 27 deletions module/applications/components/checkbox.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,38 +33,32 @@ export default class CheckboxElement extends AdoptedStyleSheetMixin(AbstractForm
width: var(--checkbox-size, 18px);
height: var(--checkbox-size, 18px);
aspect-ratio: 1;
> div {
width: 100%;
height: 100%;
border-radius: var(--checkbox-border-radius, 3px);
border: var(--checkbox-border-width, 2px) solid var(--checkbox-border-color, var(--dnd5e-color-gold));
background: var(--checkbox-empty-color, transparent);
box-sizing: border-box;
}
.checked, .disabled, .indeterminate {
display: none;
height: 100%;
width: 100%;
background: var(--checkbox-fill-color, var(--dnd5e-color-gold));
align-items: center;
justify-content: center;
}
}
:host([checked]) .checked { display: flex; }
:host([indeterminate]) {
.indeterminate { display: flex; }
.checked { display: none; }
:host > div {
width: 100%;
height: 100%;
border-radius: var(--checkbox-border-radius, 3px);
border: var(--checkbox-border-width, 2px) solid var(--checkbox-border-color, var(--dnd5e-color-gold));
background: var(--checkbox-empty-color, transparent);
box-sizing: border-box;
}
:host(:disabled) {
.disabled { display: flex; }
.checked { display: none; }
.indeterminate { display: none; }
:host :is(.checked, .disabled, .indeterminate) {
display: none;
height: 100%;
width: 100%;
background: var(--checkbox-fill-color, var(--dnd5e-color-gold));
align-items: center;
justify-content: center;
}
:host([checked]) .checked { display: flex; }
:host([indeterminate]) .indeterminate { display: flex; }
:host([indeterminate]) .checked { display: none; }
:host(:disabled) .disabled { display: flex; }
:host(:disabled) .checked { display: none; }
:host(:disabled) .indeterminate { display: none; }
`;

/* -------------------------------------------- */
Expand Down
81 changes: 77 additions & 4 deletions packs/_source/spells/3rd-level/conjure-animals.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"scale": false
},
"ability": "",
"actionType": "util",
"actionType": "summ",
"attackBonus": "",
"chatFlavor": "",
"critical": {
Expand Down Expand Up @@ -90,7 +90,80 @@
"somatic",
"concentration"
],
"crewed": false
"crewed": false,
"summons": {
"prompt": true,
"mode": "cr",
"bonuses": {
"ac": "",
"hd": "",
"hp": "",
"attackDamage": "",
"saveDamage": "",
"healing": ""
},
"profiles": [
{
"count": "1 * min(3, floor((@item.level - 1) / 2))",
"cr": "2",
"name": "",
"_id": "L0UhkCz2NI01zinq",
"uuid": "",
"level": {
"min": null,
"max": null
},
"types": [
"beast"
]
},
{
"count": "2 * min(3, floor((@item.level - 1) / 2))",
"cr": "1",
"name": "",
"_id": "CFJttKXu4rVgI4hX",
"uuid": "",
"level": {
"min": null,
"max": null
},
"types": [
"beast"
]
},
{
"count": "4 * min(3, floor((@item.level - 1) / 2))",
"cr": "0.5",
"name": "",
"_id": "D5jhKf0u1tiEPE88",
"uuid": "",
"level": {
"min": null,
"max": null
},
"types": [
"beast"
]
},
{
"count": "8 * min(3, floor((@item.level - 1) / 2))",
"cr": "0.25",
"name": "",
"_id": "04lzPfFqexz2myIV",
"uuid": "",
"level": {
"min": null,
"max": null
},
"types": [
"beast"
]
}
],
"creatureTypes": [
"fey"
]
}
},
"sort": 0,
"flags": {},
Expand All @@ -99,10 +172,10 @@
"folder": "5Si35RRLLaaoWvC3",
"_stats": {
"systemId": "dnd5e",
"systemVersion": "3.0.0",
"systemVersion": "3.3.0",
"coreVersion": "11.315",
"createdTime": 1661787234055,
"modifiedTime": 1704823521528,
"modifiedTime": 1721324536686,
"lastModifiedBy": "dnd5ebuilder0000"
},
"_key": "!items!1Drt0SHxbEAHxprN"
Expand Down
78 changes: 74 additions & 4 deletions packs/_source/spells/4th-level/conjure-minor-elementals.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"scale": false
},
"ability": "",
"actionType": "util",
"actionType": "summ",
"attackBonus": "",
"chatFlavor": "",
"critical": {
Expand Down Expand Up @@ -90,7 +90,77 @@
"somatic",
"concentration"
],
"crewed": false
"crewed": false,
"summons": {
"prompt": true,
"mode": "cr",
"bonuses": {
"ac": "",
"hd": "",
"hp": "",
"attackDamage": "",
"saveDamage": "",
"healing": ""
},
"profiles": [
{
"count": "1 * min(3, floor((@item.level - 2) / 2))",
"cr": "2",
"name": "",
"_id": "GXYOvyt5u1zbrtH5",
"uuid": "",
"level": {
"min": null,
"max": null
},
"types": [
"elemental"
]
},
{
"count": "2 * min(3, floor((@item.level - 2) / 2))",
"cr": "1",
"name": "",
"_id": "ip4lVc7sx8WcM7Vd",
"uuid": "",
"level": {
"min": null,
"max": null
},
"types": [
"elemental"
]
},
{
"count": "4 * min(3, floor((@item.level - 2) / 2))",
"cr": "0.5",
"name": "",
"_id": "1jJHfKlD44tW61sJ",
"uuid": "",
"level": {
"min": null,
"max": null
},
"types": [
"elemental"
]
},
{
"count": "8 * min(3, floor((@item.level - 2) / 2))",
"cr": "0.25",
"name": "",
"_id": "7sGiKZLEAIU83Lqx",
"uuid": "",
"level": {
"min": null,
"max": null
},
"types": [
"elemental"
]
}
]
}
},
"sort": 0,
"flags": {},
Expand All @@ -99,10 +169,10 @@
"folder": "5auWSClKMDUIV5Ni",
"_stats": {
"systemId": "dnd5e",
"systemVersion": "3.0.0",
"systemVersion": "3.3.0",
"coreVersion": "11.315",
"createdTime": 1661787234117,
"modifiedTime": 1704823523272,
"modifiedTime": 1721324756744,
"lastModifiedBy": "dnd5ebuilder0000"
},
"_key": "!items!KgEw3sDr39C6g8nY"
Expand Down
Loading

0 comments on commit e1472c8

Please sign in to comment.