Traductions + fix v12
This commit is contained in:
@ -167,7 +167,7 @@ const __auto_patch_translation_journal_compendium = async (compmod) => {
|
||||
compData.locked = false;
|
||||
let translEntries = await compData.getContent();
|
||||
for (let entryData of translEntries) {
|
||||
let mydata = duplicate(entryData.data);
|
||||
let mydata = foundry.utils.duplicate(entryData.data);
|
||||
mydata.content = mydata.content.replace(/wfrp4e-content/g, compmod);
|
||||
entryData.update(mydata);
|
||||
}
|
||||
@ -264,13 +264,13 @@ const __check_fix_wrong_modules = (chatFlag, patchFinished) => {
|
||||
}
|
||||
|
||||
const __history = [
|
||||
"Nouveautés 7.0.28: <ul><li>Traduction des items du Starter Set (Ashbury77)</li><li>Traduction des items du d'Archives of the Empire (Bimkiz)</li></ul>"
|
||||
"Nouveautés 7.1.6: <ul><li>Traduction des acteurs de EiS et Middenheim grâce à Eltrys et Kyllian !</li></ul>"
|
||||
]
|
||||
|
||||
/************************************************************************************/
|
||||
const convertColumnToMulti = (table) => {
|
||||
let columns = table.columns;
|
||||
let newTable = duplicate(table)
|
||||
let newTable = foundry.utils.duplicate(table)
|
||||
|
||||
delete newTable.columns;
|
||||
newTable.rows = table.rows.map(i => { return { range: {} } })
|
||||
@ -423,7 +423,7 @@ Hooks.once('ready', () => {
|
||||
if ( !sorted[spell.data.data.lore.value]) {
|
||||
sorted[spell.data.data.lore.value] = [];
|
||||
}
|
||||
sorted[spell.data.data.lore.value].push( duplicate(spell.data) );
|
||||
sorted[spell.data.data.lore.value].push( foundry.utils.duplicate(spell.data) );
|
||||
}
|
||||
console.log("SORTED", sorted);
|
||||
});*/
|
||||
|
Reference in New Issue
Block a user