foundryvtt-wh4-lang-fr-fr/reference_scripts/C69xngEMghfwUx13.js

3 lines
142 B
JavaScript

let easier = ['challenging', 'average', 'easy', 'veasy'];
if (easier.includes(args.fields.difficulty))
args.fields.difficulty = "difficult";