localize warning
This commit is contained in:
parent
714efeb4ab
commit
7685efa8a6
2 changed files with 3 additions and 5 deletions
|
@ -101,5 +101,6 @@
|
||||||
"DS4.ProfilHairColor": "Hair Color",
|
"DS4.ProfilHairColor": "Hair Color",
|
||||||
"DS4.ProfileWeight": "Weight",
|
"DS4.ProfileWeight": "Weight",
|
||||||
"DS4.ProfileEyeColor": "Eye Color",
|
"DS4.ProfileEyeColor": "Eye Color",
|
||||||
"DS4.ProfileSpecialCharacteristics": "Special Characteristics"
|
"DS4.ProfileSpecialCharacteristics": "Special Characteristics",
|
||||||
|
"DS4.WarningManageActiveEffectOnOwnedItem": "Managing Active Effects within an Owned Item is not currently supported and will be added in a subsequent update."
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,9 +52,6 @@ export class DS4ItemSheet extends ItemSheet<DS4ItemDataType, DS4Item> {
|
||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
|
|
||||||
private readonly ownedItemActiveEffectWarning =
|
|
||||||
"Managing Active Effects within an Owned Item is not currently supported and will be added in a subsequent update.";
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
|
@ -74,7 +71,7 @@ export class DS4ItemSheet extends ItemSheet<DS4ItemDataType, DS4Item> {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
if (this.item.isOwned) {
|
if (this.item.isOwned) {
|
||||||
return ui.notifications.warn(this.ownedItemActiveEffectWarning);
|
return ui.notifications.warn(game.i18n.localize("DS4.WarningManageActiveEffectOnOwnedItem"));
|
||||||
}
|
}
|
||||||
const a = event.currentTarget;
|
const a = event.currentTarget;
|
||||||
const li = $(a).parents(".effect");
|
const li = $(a).parents(".effect");
|
||||||
|
|
Loading…
Reference in a new issue