System development, WIP

This commit is contained in:
2026-05-05 13:55:42 +02:00
commit c0223977d2
250 changed files with 10362 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import MGNERoll from "./roll.mjs"
import { SYSTEM } from "../config/system.mjs"
export default class MGNEItem extends Item {
prepareBaseData() {
super.prepareBaseData()
const fallbackIcon = SYSTEM.itemTypes[this.type]?.icon
if (!fallbackIcon) return
if (!this._source.img || this._source.img === "icons/svg/item-bag.svg") {
this.updateSource({ img: fallbackIcon })
}
}
async rollUsage() {
return MGNERoll.rollUsage(this)
}
}