Fix Foundry v13/v14 and Babele 2.8+ compatibility breaks
- Remove dead import of babele/script/translated-compendium.js (404, MIME-type block on load) and its unused TranslatedCompendium usage - Replace broken game.babele.converters.X() cross-calls (career_skills, career_careergroup, tableResults) with direct function references, since Babele 2.8+ wraps converters as objects - Rename RollTable fields data.text/results[].text -> .description and documentCollection -> documentUuid to match Babele's current schema - Migrate ActiveEffect label -> name (Foundry v13 requires name) with legacy fallback in process_effects, bestiary_traits, effects and diseases_effects converters - Fix stray bare duplicate() call and a syntax typo in the infighting effect script in config-patch.js - Bump module.json compatibility to minimum 13 / verified 14
This commit is contained in:
@@ -770,10 +770,10 @@ export class WH4FRPatchConfig {
|
||||
let weaponLength = args.item.reachNum
|
||||
if (weaponLength > 3)
|
||||
{
|
||||
let improv = duplicate(game.wfrp4e.config.systemItems.improv)
|
||||
let improv = foundry.utils.duplicate(game.wfrp4e.config.systemItems.improv)
|
||||
improv.system.twohanded.value = args.item.twohanded.value
|
||||
improv.system.offhand.value = args.item.offhand.value
|
||||
args.item.update({"system" : improv.system, name : args.item.name + " (Combat au Contact")})
|
||||
args.item.update({"system" : improv.system, name : args.item.name + " (Combat au Contact)"})
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user