less copy protection, more size visualization
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

82 lines
2.1 KiB

  1. function makeFen() {
  2. const views = {
  3. body: {
  4. attributes: {
  5. height: {
  6. name: "Height",
  7. power: 1,
  8. type: "length",
  9. base: math.unit(2.2428, "meter")
  10. },
  11. weight: {
  12. name: "Weight",
  13. power: 3,
  14. type: "mass",
  15. base: math.unit(124.738, "kg")
  16. }
  17. },
  18. image: {
  19. source: "./media/characters/fen/back.svg",
  20. bottom: 0.01,
  21. top: 0.93
  22. },
  23. name: "Body"
  24. },
  25. paw: {
  26. attributes: {
  27. height: {
  28. name: "Length",
  29. power: 1,
  30. type: "length",
  31. base: math.unit(20, "centimeter")
  32. },
  33. width: {
  34. name: "Length",
  35. power: 1,
  36. type: "length",
  37. base: math.unit(20, "centimeter")
  38. },
  39. area: {
  40. name: "Area",
  41. power: 2,
  42. type: "area",
  43. base: math.unit(0.04, "meter^2")
  44. }
  45. },
  46. image: {
  47. source: "./media/characters/generic/paw.svg"
  48. },
  49. name: "Paw"
  50. }
  51. };
  52. return makeEntity("Fen", "Fen", views);
  53. }
  54. function makeMan() {
  55. const views = {
  56. body: {
  57. attributes: {
  58. height: {
  59. name: "Height",
  60. power: 1,
  61. type: "length",
  62. base: math.unit(2, "meter")
  63. },
  64. weight: {
  65. name: "Weight",
  66. power: 3,
  67. type: "mass",
  68. base: math.unit(80, "kg")
  69. }
  70. },
  71. image: {
  72. source: "./man.svg"
  73. },
  74. name: "Body"
  75. }
  76. };
  77. return makeEntity("Man", "Fen", views);
  78. }