Working on Compatibility for FVTT v10

Removed restriction on technique types on drop (Sheet and 20Q).
Again some missing data->system
This commit is contained in:
Vlyan
2022-07-23 00:02:47 +02:00
parent 8514064722
commit c7476a42c2
11 changed files with 31 additions and 35 deletions

View File

@@ -248,10 +248,10 @@ export class BaseCharacterSheetL5r5e extends BaseSheetL5r5e {
itemData.system.in_curriculum = true;
} else {
// Check if technique is allowed for this character
if (!game.user.isGM && !this.actor.system.techniques[itemData.system.technique_type]) {
ui.notifications.info(game.i18n.localize("l5r5e.techniques.not_allowed"));
return;
}
// if (!game.user.isGM && !this.actor.system.techniques[itemData.system.technique_type]) {
// ui.notifications.info(game.i18n.localize("l5r5e.techniques.not_allowed"));
// return;
// }
// Verify cost
itemData.system.xp_cost =