forked from public/foundryvtt-wh4-lang-fr-fr
Sync to latest WFRP release
This commit is contained in:
18
scripts/lQOu46YmOiQNhCZR.js
Normal file
18
scripts/lQOu46YmOiQNhCZR.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const balanced = game.i18n.localize("WFRP4E.YenluiBalanced");
|
||||
const light = game.i18n.localize("WFRP4E.YenluiLight");
|
||||
const dark = game.i18n.localize("WFRP4E.YenluiDark");
|
||||
|
||||
let newName;
|
||||
|
||||
if (this.effect.name === game.i18n.localize("WFRP4E.YenluiBalanced")) {
|
||||
newName = game.i18n.localize("WFRP4E.YenluiDark");
|
||||
newDescription = game.i18n.localize("WFRP4E.YenluiDarkDesc");
|
||||
} else if (this.effect.name === game.i18n.localize("WFRP4E.YenluiLight")) {
|
||||
newName = game.i18n.localize("WFRP4E.YenluiBalanced");
|
||||
newDescription = game.i18n.localize("WFRP4E.YenluiBalancedDesc");
|
||||
}
|
||||
|
||||
if (newName) {
|
||||
await this.effect.update({name: newName});
|
||||
await this.item.update({name: newName, "system.description.value": newDescription});
|
||||
}
|
||||
Reference in New Issue
Block a user