Working on Compatibility for FVTT v10

token.img -> token.texture.src
some missing data/system
comp.keys() -> comp.index.keys()
This commit is contained in:
Vlyan
2022-07-22 12:43:48 +02:00
parent 894cdba28b
commit b92d2b3112
8 changed files with 86 additions and 91 deletions

View File

@@ -74,7 +74,7 @@ export class RollL5r5e extends Roll {
set targetInfos(targetToken) {
this.l5r5e.targetInfos = targetToken
? {
img: targetToken.img,
img: targetToken.texture.src || null,
name: targetToken.name,
}
: null;
@@ -287,8 +287,7 @@ export class RollL5r5e extends Roll {
isPublicRoll: !isPrivate,
tooltip: isPrivate ? "" : await this.getTooltip({ from: "render" }),
total: isPrivate ? "?" : this.total,
//data: this.data,
profileImg: this.l5r5e.actor?.img ? this.l5r5e.actor?.img : "icons/svg/mystery-man.svg",
profileImg: this.l5r5e.actor?.img || "icons/svg/mystery-man.svg",
l5r5e: isPrivate
? {}
: {