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,11 +1,10 @@
|
|||
/** @this {Actor} */
|
||||
function getRollData() {
|
||||
const data = {
|
||||
initiative: this.system.initiative ?? 0,
|
||||
};
|
||||
return data;
|
||||
};
|
||||
import { DotDungeonActor } from "./GenericActor.mjs";
|
||||
|
||||
export default {
|
||||
getRollData,
|
||||
export class Mob extends DotDungeonActor {
|
||||
getRollData() {
|
||||
const data = {
|
||||
initiative: this.system.initiative ?? 0,
|
||||
};
|
||||
return data;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue