Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export function defaultAttributesConfig() {
- return {
- "pf2e": [
- {
- attr: "attributes.hp.value",
- icon: "fas fa-heart",
- units: "HP",
- },
- {
- attr: "attributes.ac.value",
- icon: "fas fa-shield",
- units: "AC",
- },
- {
- attr: "attributes.speed.value",
- icon: "systems/pf2e/icons/default-icons/action.svg",
- units: "ft.",
- },
- {
- attr: "attributes.spellDC.value",
- icon: "fas fa-hand-holding-magic",
- units: "Spell DC",
- },
- ]
- };
- }
- export function generateDescription(actor) {
- const { type, system } = actor;
- switch (game.system.id) {
- case "pf2e":
- switch (type) {
- case "character":
- return `Level ${system.details.level.value} ${system.details.class.name} (${system.details.ancestry.name})`;
- default:
- return null;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement