forked from public/fvtt-yggdrasill
Allow items links in editors
This commit is contained in:
parent
895a722f4c
commit
fa0b989c86
@ -23,7 +23,7 @@ export class YggdrasillActorSheet extends ActorSheet {
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
getData() {
|
||||
async getData() {
|
||||
const objectData = duplicate(this.object)
|
||||
|
||||
let formData = {
|
||||
@ -64,6 +64,10 @@ export class YggdrasillActorSheet extends ActorSheet {
|
||||
optionsDMDP: YggdrasillUtility.createDirectSortedOptionList(-10, +10),
|
||||
optionsBase: YggdrasillUtility.createDirectOptionList(0, 20),
|
||||
optionsFuror: YggdrasillUtility.createDirectOptionList(0, 15),
|
||||
tiragerunes: await TextEditor.enrichHTML(this.object.system.tiragesrunes, {async: true}),
|
||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
||||
notes: await TextEditor.enrichHTML(this.object.system.notes, {async: true}),
|
||||
gmnotes: await TextEditor.enrichHTML(this.object.system.biodata.gmnotes, {async: true}),
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
editScore: this.options.editScore,
|
||||
|
@ -23,7 +23,7 @@ export class YggdrasillFigurantSheet extends ActorSheet {
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
getData() {
|
||||
async getData() {
|
||||
const objectData = duplicate(this.object)
|
||||
|
||||
let formData = {
|
||||
@ -42,6 +42,8 @@ export class YggdrasillFigurantSheet extends ActorSheet {
|
||||
monnaies: this.actor.getMonnaies(),
|
||||
optionsAttr: new Array(41).fill('option'),
|
||||
optionsBase: YggdrasillUtility.createDirectOptionList(0, 20),
|
||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
||||
notes: await TextEditor.enrichHTML(this.object.system.notes, {async: true}),
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
editScore: this.options.editScore,
|
||||
|
@ -56,6 +56,7 @@ export class YggdrasillItemSheet extends ItemSheet {
|
||||
data: foundry.utils.deepClone(this.object.system),
|
||||
optionsBase: YggdrasillUtility.createDirectOptionList(0, 20),
|
||||
optionsNiveaux4: YggdrasillUtility.buildListOptions(1, 5),
|
||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
||||
limited: this.object.limited,
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"title": "Yggdrasill",
|
||||
"description": "Système non-officiel Yggdrasill (7ième Cercle) pour FoundryVTT",
|
||||
"version": "10.0.0",
|
||||
"version": "10.0.1",
|
||||
"esmodules": [
|
||||
"modules/yggdrasill-main.js"
|
||||
],
|
||||
@ -196,7 +196,7 @@
|
||||
"socket": true,
|
||||
"url": "https://www.uberwald.me/gitea/public/fvtt-yggdrasill/",
|
||||
"manifest": "https://www.uberwald.me/gitea/public/fvtt-yggdrasill/raw/branch/v10/system.json",
|
||||
"download": "https://www.uberwald.me/gitea/public/fvtt-yggdrasill/archive/fvtt-yggdrasill-10.0.0.zip",
|
||||
"download": "https://www.uberwald.me/gitea/public/fvtt-yggdrasill/archive/fvtt-yggdrasill-10.0.1.zip",
|
||||
"license": "LICENSE.txt",
|
||||
"id": "fvtt-yggdrasill",
|
||||
"authors": [
|
||||
|
Loading…
Reference in New Issue
Block a user