Adds item-sheet CSS class to item sheets.
This commit is contained in:
Michael Stein
2023-04-19 01:33:04 +02:00
parent f91c64f91f
commit ae3381b3d1
13 changed files with 41 additions and 25 deletions
+10 -10
View File
@@ -236,17 +236,17 @@ export class M5Item extends Item {
return (this as any).getEmbeddedDocument("Item", itemId)
}
override migrateSystemData(): any {
const item = (this as any)
const data = item.system
// migrateSystemData(): any {
// const item = (this as any)
// const data = item.system
if (item.type === "spell") {
if (typeof data.ap !== "string") {
data.ap = Number.isFinite(data.ap) ? "" + data.ap : ""
}
}
// if (item.type === "spell") {
// if (typeof data.ap !== "string") {
// data.ap = Number.isFinite(data.ap) ? "" + data.ap : ""
// }
// }
return super.migrateSystemData()
}
// return super.migrateSystemData()
// }
}