Add improved capabilities to the Player actor type
This commit is contained in:
parent
02a553e6c9
commit
fec638cb22
2 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { __ID__, filePath } from "../consts.mjs";
|
||||
import { AttributeManager } from "./AttributeManager.mjs";
|
||||
import { attributeSorter } from "../utils/attributeSort.mjs";
|
||||
|
||||
const { HandlebarsApplicationMixin } = foundry.applications.api;
|
||||
const { ActorSheetV2 } = foundry.applications.sheets;
|
||||
|
|
@ -88,7 +89,7 @@ export class PlayerSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
|||
path: `system.attr.${id}`,
|
||||
});
|
||||
};
|
||||
ctx.attrs = attrs.toSorted((a, b) => a.name.localeCompare(b.name));
|
||||
ctx.attrs = attrs.toSorted(attributeSorter);
|
||||
};
|
||||
|
||||
async _prepareContent(ctx) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue