Fixed technique with a skill set, in a title, now open the DicePicker as intended.
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
Date format : day/month/year
|
Date format : day/month/year
|
||||||
|
|
||||||
|
## 1.7.1 - ??/04/2022 - Spring fixes
|
||||||
|
- PC/NPC sheet :
|
||||||
|
- Fixed technique with a skill set, in a title, now open the DicePicker as intended.
|
||||||
|
|
||||||
## 1.7.0 - 28/03/2022 - Strife, DiceRoller for Techniques & Npc Generator
|
## 1.7.0 - 28/03/2022 - Strife, DiceRoller for Techniques & Npc Generator
|
||||||
- NPC Sheet :
|
- NPC Sheet :
|
||||||
- Added a random generator feature (Demeanor, Clan and Families names courteously authorized by Edge).
|
- Added a random generator feature (Demeanor, Clan and Families names courteously authorized by Edge).
|
||||||
|
|||||||
@@ -613,12 +613,12 @@ export class BaseCharacterSheetL5r5e extends BaseSheetL5r5e {
|
|||||||
* @param {Event} event
|
* @param {Event} event
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
_openDicePickerForTechnique(event) {
|
async _openDicePickerForTechnique(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
const itemId = $(event.currentTarget).data("item-id") || null;
|
// Required for tech in titles, search in sub items
|
||||||
const item = this.actor.items.get(itemId);
|
const item = await game.l5r5e.HelpersL5r5e.getEmbedItemByEvent(event, this.actor);
|
||||||
if (!item || item.type !== "technique" || !item.data.data.skill) {
|
if (!item || item.type !== "technique" || !item.data.data.skill) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
"description": "This is an authorised multilingual game system En|Fr|Es, for Legend of the Five Rings (5th Edition) by <a href='https://edge-studio.net/'>Edge Studio</a> <p> - Join the official Discord server: <a href='https://discord.gg/foundryvtt'> Official Discord</a></p><p> - Rejoignez la communauté Francophone: <a href='https://discord.gg/pPSDNJk'>Francophone Discord</a></p>",
|
"description": "This is an authorised multilingual game system En|Fr|Es, for Legend of the Five Rings (5th Edition) by <a href='https://edge-studio.net/'>Edge Studio</a> <p> - Join the official Discord server: <a href='https://discord.gg/foundryvtt'> Official Discord</a></p><p> - Rejoignez la communauté Francophone: <a href='https://discord.gg/pPSDNJk'>Francophone Discord</a></p>",
|
||||||
"url": "https://gitlab.com/teaml5r/l5r5e",
|
"url": "https://gitlab.com/teaml5r/l5r5e",
|
||||||
"manifest": "https://gitlab.com/teaml5r/l5r5e/-/raw/master/system/system.json",
|
"manifest": "https://gitlab.com/teaml5r/l5r5e/-/raw/master/system/system.json",
|
||||||
"download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.7.0/raw/l5r5e.zip?job=build",
|
"download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.7.1/raw/l5r5e.zip?job=build",
|
||||||
"version": "1.7.0",
|
"version": "1.7.1",
|
||||||
"minimumCoreVersion": "9",
|
"minimumCoreVersion": "9",
|
||||||
"compatibleCoreVersion": "9",
|
"compatibleCoreVersion": "9",
|
||||||
"manifestPlusVersion": "1.0.0",
|
"manifestPlusVersion": "1.0.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user