mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 12:54:16 +02:00
Fixed so that CompendiumBrowserSettings saves source/pack names as slugified version to avoid foundrdy not saving names with dots in the middle
This commit is contained in:
parent
2f589c1b8e
commit
ca29903a56
3 changed files with 11 additions and 6 deletions
|
|
@ -449,12 +449,11 @@ export async function createEmbeddedItemsWithEffects(actor, baseData) {
|
|||
effects: data.effects?.map(effect => effect.toObject())
|
||||
});
|
||||
}
|
||||
|
||||
await actor.createEmbeddedDocuments('Item', effectData);
|
||||
}
|
||||
|
||||
export const slugify = name => {
|
||||
return name.toLowerCase().replaceAll(' ', '-').replaceAll('.', '');
|
||||
return name.toLowerCase().replaceAll(' ', '-').replaceAll('.', '_');
|
||||
};
|
||||
|
||||
export function shuffleArray(array) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue