From fac272e6e8f8754d6a3f9ccc89f3bdc6d7a598ac Mon Sep 17 00:00:00 2001 From: Vlyan Date: Fri, 25 Dec 2020 11:14:09 +0100 Subject: [PATCH] Fix fixed word 'Nope!' to a localized word for techniques --- system/scripts/actors/base-sheet.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/scripts/actors/base-sheet.js b/system/scripts/actors/base-sheet.js index 5bbee74..ffe60ae 100644 --- a/system/scripts/actors/base-sheet.js +++ b/system/scripts/actors/base-sheet.js @@ -56,7 +56,7 @@ export class BaseSheetL5r5e extends ActorSheet { !this.actor.data.data.techniques[item.data.data.technique_type] ) { new Dialog({ - title: "Nope !", + title: game.i18n.localize("l5r5e.techniques.title"), content: game.i18n.localize("l5r5e.techniques.not_allowed"), buttons: { ok: { @@ -68,6 +68,8 @@ export class BaseSheetL5r5e extends ActorSheet { return Promise.resolve(); } + // TODO dropped a item with same id as one owned, add qte instead + // Ok add item return super._onDrop(event); }