Make the system use Proxy and proper subclassing instead of the weird middle-ground polymorphism (closes #86)
This commit is contained in:
parent
745824f6cc
commit
cd98e66484
17 changed files with 322 additions and 351 deletions
|
|
@ -1,10 +1,9 @@
|
|||
/** @this {ItemHandler} */
|
||||
async function _preCreate(_data, _options, _user) {
|
||||
if (this.isEmbedded) {
|
||||
return await this.actor?.preItemEmbed(this);
|
||||
};
|
||||
};
|
||||
import { DotDungeonItem } from "./GenericItem.mjs";
|
||||
|
||||
export default {
|
||||
_preCreate,
|
||||
export class Aspect extends DotDungeonItem {
|
||||
async _preCreate() {
|
||||
if (this.isEmbedded) {
|
||||
return await this.actor?.preItemEmbed(this);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue