Advertisement
demian94

Untitled

Jun 2nd, 2023
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. export function defaultAttributesConfig() {
  2. return {
  3.  
  4. "pf2e": [
  5. {
  6. attr: "attributes.hp.value",
  7. icon: "fas fa-heart",
  8. units: "HP",
  9. },
  10. {
  11. attr: "attributes.ac.value",
  12. icon: "fas fa-shield",
  13. units: "AC",
  14. },
  15. {
  16. attr: "attributes.speed.value",
  17. icon: "systems/pf2e/icons/default-icons/action.svg",
  18. units: "ft.",
  19. },
  20. {
  21. attr: "attributes.spellDC.value",
  22. icon: "fas fa-hand-holding-magic",
  23. units: "Spell DC",
  24. },
  25. ]
  26. };
  27. }
  28.  
  29. export function generateDescription(actor) {
  30. const { type, system } = actor;
  31. switch (game.system.id) {
  32. case "pf2e":
  33. switch (type) {
  34. case "character":
  35. return `Level ${system.details.level.value} ${system.details.class.name} (${system.details.ancestry.name})`;
  36. default:
  37. return null;
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement