Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
v1.181.6
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGiddyLimit committed Jun 16, 2023
1 parent 1365d10 commit a73db2d
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 22 deletions.
5 changes: 5 additions & 0 deletions data/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -2446,5 +2446,10 @@
"ver": "1.181.5",
"date": "2023-06-15",
"txt": "- Fixed DM Screen Clock/Calendar failing to load \n- (Brew) Fixed self-source-referencing `\"_copy\"`s within `\"statblockInline\"`-type entries failing to load\n- (Fixed typos/added tags)"
},
{
"ver": "1.181.6",
"date": "2023-06-16",
"txt": "- (Brew) Fixed loading performance regression\n- (Fixed typos/added tags)"
}
]
6 changes: 4 additions & 2 deletions data/feats.json
Original file line number Diff line number Diff line change
Expand Up @@ -5083,7 +5083,8 @@
],
"entries": [
"You can spend 10 minutes inspiring your companions, shoring up their resolve to fight. When you do so, choose up to six friendly creatures (which can include yourself) within 30 feet of you who can see or hear you and who can understand you. Each creature can gain temporary hit points equal to your level + your Charisma modifier. A creature can't gain temporary hit points from this feat again until it has finished a short or long rest."
]
],
"hasFluffImages": true
},
{
"name": "Investigator",
Expand Down Expand Up @@ -7125,7 +7126,8 @@
"You have learned a number of spells that you can cast as rituals. These spells are written in a ritual book, which you must have in hand while casting one of them.",
"When you choose this feat, you acquire a ritual book holding two 1st-level spells of your choice. Choose one of the following classes: {@filter bard|spells|level=1|class=bard|components & miscellaneous=ritual}, {@filter cleric|spells|level=1|class=cleric|components & miscellaneous=ritual}, {@filter druid|spells|level=1|class=druid|components & miscellaneous=ritual}, {@filter sorcerer|spells|level=1|class=sorcerer|components & miscellaneous=ritual}, {@filter warlock|spells|level=1|class=warlock|components & miscellaneous=ritual}, or {@filter wizard|spells|level=1|class=wizard|components & miscellaneous=ritual}. You must choose your spells from that class's spell list, and the spells you choose must have the ritual tag. The class you choose also determines your spellcasting ability for these spells: Charisma for bard, sorcerer, or warlock; Wisdom for cleric or druid; or Intelligence for wizard.",
"If you come across a spell in written form, such as a magical {@item spell scroll} or a wizard's spellbook, you might be able to add it to your ritual book. The spell must be on the spell list for the class you chose, the spell's level can be no higher than half your level (rounded up), and it must have the ritual tag. The process of copying the spell into your ritual book takes 2 hours per level of the spell, and costs 50 gp per level. The cost represents material components you expend as you experiment with the spell to master it, as well as the fine inks you need to record it."
]
],
"hasFluffImages": true
},
{
"name": "Rune Carver Adept",
Expand Down
26 changes: 26 additions & 0 deletions data/fluff-feats.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,32 @@
"title": "Mages of High Sorcery of the Orders of the Black, Red, and White Robes"
}
]
},
{
"name": "Inspiring Leader",
"source": "PHB",
"images": [
{
"type": "image",
"href": {
"type": "internal",
"path": "feats/PHB/Inspiring Leader.webp"
}
}
]
},
{
"name": "Ritual Caster",
"source": "PHB",
"images": [
{
"type": "image",
"href": {
"type": "internal",
"path": "feats/PHB/Ritual Caster.webp"
}
}
]
}
]
}
28 changes: 14 additions & 14 deletions data/races.json
Original file line number Diff line number Diff line change
Expand Up @@ -18351,15 +18351,7 @@
"raceName": "Half-Elf",
"raceSource": "PHB",
"page": 116,
"speed": {
"walk": 30,
"swim": 30
},
"skillProficiencies": [
{
"any": 2
}
],
"speed": 30,
"entries": [
{
"type": "inset",
Expand All @@ -18385,9 +18377,6 @@
}
}
],
"overwrite": {
"skillProficiencies": true
},
"_versions": [
{
"name": "Variant; Aquatic Elf Descent; Skill Versatility",
Expand All @@ -18405,7 +18394,11 @@
}
}
},
"speed": 30
"skillProficiencies": [
{
"any": 2
}
]
},
{
"name": "Variant; Aquatic Elf Descent; Swim Speed",
Expand All @@ -18423,7 +18416,14 @@
}
}
},
"skillProficiencies": null
"speed": {
"walk": 30,
"swim": 30
},
"skillProficiencies": null,
"overwrite": {
"skillProficiencies": true
}
}
]
},
Expand Down
Binary file added img/feats/PHB/Inspiring Leader.webp
Binary file not shown.
Binary file added img/feats/PHB/Ritual Caster.webp
Binary file not shown.
8 changes: 6 additions & 2 deletions js/utils-brew.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,12 @@ class _BrewUtil2Base {
DEFAULT_AUTHOR;
STYLE_BTN;

_LOCK = new VeLock();
_LOCK = new VeLock({name: this.constructor.name});

_cache_iteration = 0;
_cache_brewsProc = null;
_cache_metas = null;
_cache_brews = null;
_cache_brewsLocal = null;

_isDirty = false;
Expand Down Expand Up @@ -423,6 +424,8 @@ class _BrewUtil2Base {

/** Fetch the raw brew from storage. */
async pGetBrew ({lockToken} = {}) {
if (this._cache_brews) return this._cache_brews;

try {
lockToken = await this._LOCK.pLock({token: lockToken});

Expand All @@ -431,7 +434,7 @@ class _BrewUtil2Base {
...(await this._pGetBrew_pGetLocalBrew({lockToken})),
];

return out
return this._cache_brews = out
// Ensure no brews which lack sources are loaded
.filter(brew => brew?.body?._meta?.sources?.length);
} finally {
Expand Down Expand Up @@ -574,6 +577,7 @@ class _BrewUtil2Base {

if (!isInitialMigration) {
if (this._cache_brewsProc) this._cache_iteration++;
this._cache_brews = null;
this._cache_brewsProc = null;
}
await this._storage.pSet(this._STORAGE_KEY, val);
Expand Down
2 changes: 1 addition & 1 deletion js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// in deployment, `IS_DEPLOYED = "<version number>";` should be set below.
globalThis.IS_DEPLOYED = undefined;
globalThis.VERSION_NUMBER = /* 5ETOOLS_VERSION__OPEN */"1.181.5"/* 5ETOOLS_VERSION__CLOSE */;
globalThis.VERSION_NUMBER = /* 5ETOOLS_VERSION__OPEN */"1.181.6"/* 5ETOOLS_VERSION__CLOSE */;
globalThis.DEPLOYED_STATIC_ROOT = ""; // "https://static.5etools.com/"; // FIXME re-enable this when we have a CDN again
globalThis.DEPLOYED_IMG_ROOT = undefined;
// for the roll20 script to set
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "5etools",
"author": "TheGiddyLimit",
"version": "1.181.5",
"version": "1.181.6",
"license": "MIT",
"description": "A site dedicated to making playing games with your friends as easy as possible.",
"type": "module",
Expand Down

0 comments on commit a73db2d

Please sign in to comment.